Agent Skills
Agent Skills
Your agent can already call Stitch tools. But every time it does, you’re writing the same prompts from scratch — “fetch the screen, compare it to my code, tell me what’s off.” Agent Skills let you write those instructions once and reuse them forever.
An Agent Skill is a directory with a SKILL.md file. No SDK, no runtime, no build step. Just markdown that any coding agent — Claude Code, Cursor, Gemini CLI, Codex — can discover and execute.
Why Stitch + Agent Skills
Stitch gives agents design context through MCP tools — screen HTML, images, project metadata. That’s the raw material. Agent Skills are the recipes that tell an agent what to do with it.
The built-in tools handle atomic operations: fetch a screen, list projects, get an image. But the interesting work happens when you combine them with agent intelligence — reviewing implementations against designs, extracting component patterns across screens, generating design system documentation.
Without a skill, you explain that workflow every session. With one, the agent already knows it. You say “review my header against the Stitch design” and it runs.
What this looks like in practice
Say you’ve implemented a landing page and want to verify it matches the original Stitch design. A design review skill gives the agent a playbook for this.
The skill retrieves the design HTML via get_screen_code — every color value, spacing token, font stack, and layout decision the designer made. Then it fetches a visual reference via get_screen_image, giving the agent a screenshot of the intended design the way a human would see it.
With both in hand, the agent reads your src/pages/index.tsx, diffs the computed styles against the design HTML, compares the screenshot against your running dev server, and reports:
- “The hero heading uses
text-4xlbut the design specifies44px— should betext-[44px]” - “The card grid has
gap-4but the design uses24pxgap — should begap-6” - “The CTA button background is
#3b82f6but the design uses#2563eb”
Two tool calls gave the agent eyes. The skill told it where to look.
Existing skills
The stitch-skills repository has production-ready skills you can install and study:
| Skill | What it does |
|---|---|
react-components | Converts Stitch screens into React component systems with design token consistency |
design-md | Analyzes a Stitch project and generates a DESIGN.md documenting the design system |
stitch-loop | Generates complete multi-page websites from a single prompt |
enhance-prompt | Transforms vague UI ideas into polished, Stitch-optimized generation prompts |
remotion | Generates walkthrough videos from Stitch projects with transitions and overlays |
shadcn-ui | Integrates shadcn/ui components with Stitch design output |
Installation instructions are in the stitch-skills repository.
How agents load skills
Skills are designed for progressive disclosure. Agents load content in three stages, so a large skill doesn’t bloat every conversation:
- Metadata (~100 tokens) —
nameanddescriptionloaded at startup for all installed skills - Instructions (< 5000 tokens) — the full
SKILL.mdbody loaded only when activated - Resources (on demand) —
scripts/,references/,assets/loaded only when referenced
This means the description field is the only thing every session pays for. The rest loads on demand.
Next steps
Ready to create your own? See Build an Agent Skill for the full walkthrough.