All skills
acedergren avatar

/stitch-prompt-engineer

@9d099e9

Use when enhancing, polishing, or fixing Stitch UI generation prompts. Adds UI/UX keywords, injects design system tokens, structures page hierarchy, and enforces hex color formatting. Triggers on: Stitch prompt, improve prompt, better output, redesign, multi-screen consistency, design system, DESIGN.md. Triggers on "improve Stitch prompt" or "polish UI prompt".

Use this Skill: https://skilld.dev/gh/acedergren/agentic-tools/stitch-prompt-engineer

This session only. Nothing lands on disk.

SKILL.md

β‰ˆ97 tokens always: the name and description. β‰ˆ1k when used: this file.

Enhance Prompt for Stitch

When to Use

Load this skill when the user request matches the frontmatter description for Enhance Prompt for Stitch.

NEVER

  • NEVER output colors as names ("blue", "green") β€” always Descriptive Name (#hexcode) for role
  • NEVER skip DESIGN.md for multi-page projects β€” consistency requires explicit tokens across screens
  • NEVER bundle unrelated enhancements in one pass β€” layout changes and color changes are separate asks
  • NEVER ignore an outdated DESIGN.md β€” surface the conflict to the user before proceeding
  • NEVER enhance without understanding intent β€” vague prompt often means unclear goal, not just poor wording
  • NEVER assume platform β€” if "web" vs "mobile" isn't clear, ask

Decision: Single Screen vs Multi-Page

Working on multiple screens?
β”‚
β”œβ”€ YES β†’ Find DESIGN.md in project root
β”‚   β”œβ”€ Found β†’ Read it; include design system block as "DESIGN SYSTEM (REQUIRED)"
β”‚   └─ Not found β†’ Create it with `stitch-design-system` skill first
β”‚
└─ NO β†’ Skip DESIGN.md; proceed directly to enhancement

Assessment Checklist

Before enhancing, identify what's missing:

Element If missing...
Platform Ask or infer from context
Page type Infer ("landing page", "form", etc.)
Structure Add numbered sections
Visual style Add mood adjectives
Colors Add hex-coded design tokens
Components Replace vague nouns with UI vocabulary

Vocabulary Upgrades

Vague Enhanced
"menu at the top" "navigation bar with logo and menu items"
"button" "primary call-to-action button"
"list of items" "card grid layout" or "vertical list with thumbnails"
"form" "form with labeled input fields and submit button"
"picture area" "hero section with full-width image"
"modern" "clean, minimal, with generous whitespace"
"professional" "sophisticated, trustworthy, with subtle shadows"
"dark mode" "dark theme with high-contrast accents on deep backgrounds"

Output Structure

[One-line description of page purpose and vibe]

**DESIGN SYSTEM (REQUIRED):**
- Platform: [Web/Mobile], [Desktop/Mobile]-first
- Theme: [Light/Dark], [style descriptors]
- Background: [Name] (#hex)
- Primary Accent: [Name] (#hex) for [role]
- Text Primary: [Name] (#hex)
- Buttons: [corner radius], [width behavior]
- Cards: [corner radius], [elevation style]

**Page Structure:**
1. **[Section]:** [description]
2. **[Section]:** [description]

For targeted edits (not full-page prompts), include:

  • Exact location in UI
  • Style spec with hex codes
  • "Context: This is a targeted edit. Make only this change."

Troubleshooting

Symptom Fix
Output doesn't match prompt Add numbered section structure for visual hierarchy
Colors apply inconsistently Create/reference DESIGN.md with explicit hex tokens
Layout breaks across screens Add "mobile-first" or "desktop-first" explicitly
Components look generic Replace "modern" with specific mood adjectives
Still poor results after enhance Return to DESIGN.md and validate consistency first

Output Format

Return enhanced prompt as text by default. If user requests file output: write next-prompt.md (for use with stitch-loop skill).

Arguments

$ARGUMENTS: Optional user-provided target, path, environment, symptom, or constraint. When empty, infer the narrowest safe scope from the current repository context and ask only if multiple high-impact choices remain.

Source: SKILL.md on GitHub

No alerts5mo4 checks Β· Risk SAFE
  • Gen Agent Trust Hub6mo

    The skill is a legitimate prompt engineering tool designed to optimize UI generation prompts for the Stitch platform. It employs a structured framework for prompt enhancement and references official documentation from a trusted source. No malicious patterns, data exfiltration risks, or unauthorized command execution were detected.

  • Socket6mo

    No alerts

  • Snyk6mo

    Risk: LOW Β· No issues

  • ZeroLeaks5mo

    1 finding Β· Score: 86/100

Signed by skilld at 9d099e9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 4 months ago

README badge

README badge for acedergren/agentic-tools/stitch-prompt-engineer