foundry/modules/stitch-prompt-enhancement/SKILL.md
Transform rough UI intent into compact, Stitch-ready prompts that encode visual direction, component structure, design-system context, and constrained change scope.
npx skillsauth add cubetiq/cubis-foundry stitch-prompt-enhancementInstall 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.
Improve UI prompts before they reach Stitch. This skill turns vague product or design requests into compact structured briefs that Stitch can interpret reliably without wasting requests on low-quality prompts.
Start from the real task, not a generic design template — Restate the actual screen, route, audience, and product goal before writing the Stitch prompt.
Pull the visual direction from frontend-design plus canonical design state — Use the chosen direction name, style contract, thesis set, token language, and any downstream screen brief instead of inventing an unrelated aesthetic.
Read docs/foundation/DESIGN.md and overlays when they exist — Use the canonical design context plus any relevant page, flow, or mobile overlay as the source of truth, then treat the Stitch-facing design mirror only as the remote copy of the resolved state.
Keep prompts compact and structured — Name platform, page purpose, visual style, component hierarchy, and the exact requested change. Do not dump raw repo context or large docs into the prompt.
Use design language Stitch understands — Prefer concrete UI terms like navigation bar, hero section, card grid, settings form, primary CTA, sticky filter rail, or mobile tab bar over vague requests like “make it nicer”.
For edits, ask Stitch for one or two deltas at a time — Do not bundle unrelated redesign requests into a single edit prompt once a screen already exists.
Inject design-system details semantically — Describe token roles and component styles in natural language backed by exact values only when needed.
End with a tool-ready prompt block — The output should be ready for generate_screen_from_text, edit_screens, or generate_variants without another rewriting pass.
Deliver:
| File | Load when |
| --- | --- |
| references/prompt-structure.md | Need the preferred structure for a Stitch-ready prompt. |
| ../design/references/visual-direction.md | Need the product mood and compositional voice before prompting Stitch. |
| ../design/references/design-tokens.md | Need semantic token language for colors, spacing, radius, and typography. |
| ../design/references/execution-contract.md | Need the modern route split before composing a prompt. |
| File | Use when |
| --- | --- |
| examples/01-dashboard-prompt.md | Converting a vague dashboard request into a compact structured Stitch prompt. |
tools
Use when investigating latest vendor behavior, comparing tools or platforms, verifying claims beyond the repo, or gathering external evidence before implementation.
documentation
Use when designing database schemas, normalization strategies, indexing plans, query optimization, and migration workflows for relational, document, or hybrid data stores.
development
Use when writing, reviewing, or refactoring modern C#/.NET code, including minimal APIs, records, async streams, pattern matching, DI lifetimes, and memory-efficient performance tuning.
development
Use when conducting code reviews, building review checklists, calibrating review depth, providing structured feedback, or establishing team review practices. Covers review methodology, feedback patterns, automated checks, and batch review strategies.