stitch-mcp
Agent Integration

Agent Skills

What Agent Skills are, why they pair with Stitch, and the existing skills ecosystem.

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-4xl but the design specifies 44px — should be text-[44px]
  • “The card grid has gap-4 but the design uses 24px gap — should be gap-6
  • “The CTA button background is #3b82f6 but 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:

SkillWhat it does
react-componentsConverts Stitch screens into React component systems with design token consistency
design-mdAnalyzes a Stitch project and generates a DESIGN.md documenting the design system
stitch-loopGenerates complete multi-page websites from a single prompt
enhance-promptTransforms vague UI ideas into polished, Stitch-optimized generation prompts
remotionGenerates walkthrough videos from Stitch projects with transitions and overlays
shadcn-uiIntegrates 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:

  1. Metadata (~100 tokens) — name and description loaded at startup for all installed skills
  2. Instructions (< 5000 tokens) — the full SKILL.md body loaded only when activated
  3. 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.