stitch/skills/stitch-prompt/SKILL.md
Compose optimized prompts for Google Stitch screen generation. Reads DESIGN.md Section 6 context, applies Stitch Effective Prompting best practices, and outputs ready-to-use prompts. Use when: 'stitch prompt', 'compose prompt', 'create stitch prompt', 'prompt for stitch'.
npx skillsauth add murillodutt/cellm stitch/skills/stitch-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Compose optimized prompts for Stitch screen generation and editing. Uses DESIGN.md context to ensure visual consistency across all generated screens.
Every Stitch prompt MUST follow this 4-part structure:
Synthesize a design context block from the 5 canonical DESIGN.md sections:
Format as a context preamble:
Design System Context:
- Primary: #HEXCODE (role)
- Secondary: #HEXCODE (role)
- Font: FamilyName, weights: 400/500/600/700
- Radius: 0.Xrem default
- Style: [aesthetic description from Section 1]
Describe WHAT the screen shows, not HOW to build it. Stitch responds best to:
Always specify one of:
| Device | Use When |
|--------|----------|
| DESKTOP | Dashboard, admin, content-heavy pages |
| MOBILE | Mobile-first flows, responsive previews |
| TABLET | Hybrid layouts |
Always append:
Maintain exact visual consistency with the design system above.
Use the specified color palette and typography — do not introduce new colors or fonts.
[Design Context Block]
Create a landing page with:
- Hero section: bold headline using display font, subtitle in body font, primary CTA button
- Feature grid: 3 cards showing key benefits with icons
- Social proof section: testimonials or partner logos
- Footer with navigation links and contact info
Device: DESKTOP
Maintain exact visual consistency with the design system above.
[Design Context Block]
Create a dashboard page with:
- Left sidebar navigation with icon + label items, active state highlighted
- Top bar with search input, notification bell, user avatar
- Main content area: summary stats in 4 metric cards, data table below
- Cards use surface elevation with subtle shadows
Device: DESKTOP
Maintain exact visual consistency with the design system above.
[Design Context Block]
Create a form page with:
- Page title and description at top
- Form fields: text inputs, select dropdowns, date pickers
- Grouped in logical sections with section headers
- Action buttons at bottom: primary submit, secondary cancel
- Inline validation states for required fields
Device: DESKTOP
Maintain exact visual consistency with the design system above.
[Design Context Block]
Edit the current screen to [ONE specific change]:
- [describe the single change clearly]
Do not modify any other elements. Keep all existing styling and layout intact.
Maintain exact visual consistency with the design system above.
| Rule | Reason | |------|--------| | One aspect per edit prompt | Stitch handles single-focus edits better than multi-change prompts | | Descriptive over technical | "A warm, inviting hero" beats "div with bg-primary p-8 flex" | | Always include design context | Without context, Stitch defaults to its own palette and fonts | | Specify device type explicitly | Prevents layout mismatches between desktop and mobile | | Reference existing screens | "Match the style of the login page" improves consistency | | Avoid CSS class names in prompts | Stitch generates its own Tailwind classes from descriptions |
.stitch/DESIGN.md — extract design context.stitch/SITE.md (if exists) — understand page purpose in sitemapstitch:invoke or manual useConsult these files for detailed guidance:
generate_screen_from_text takes 1-2 minutes — do not retry if no immediate responsedata-ai
Prose override — temporarily disable quantization and respond in readable prose. Use when relational density matters, for safety-critical explanations, onboarding handoffs, or when token economy is not the priority.
development
Govern explicit weekly Super PRs or maintainer-requested PR merges. Evaluates a 10-criterion readiness checklist and performs governed merge only when a user-requested PR is READY. Never creates or keeps permanent PRs. Use when: 'pr-check', 'pr-merge', 'merge this PR safely', 'is PR ready', 'guard merge', or /sk-git delegates pr-merge.
data-ai
Operational surface for the compress-llm Layer-1 token I/O compressor. Enable, disable, switch mode, and inspect status without editing config files. Use when tuning compression pressure for the current session or project.
tools
Generate structured upstream feedback for the CELLM engineering team. Produces evidence-first Markdown at docs/evidence/<date>-cellm-feedback-*.md for bugs, anti-patterns, deprecation gaps, and harness surprises, with optional atom registration via knowledge_ops. Use when: 'feedback for CELLM', 'send to CELLM team', 'register this as atom', 'document this anti-pattern', 'report this bug upstream'. Trigger proactively on MCP schema/runtime mismatches, mechanical edit loops (>=3 sequential edits), short deprecation windows (<6 weeks), or reusable harness surprises. Do NOT trigger for routine feature work or project-local bugs.