stitch-kit
AGENTS.md45 starsChanged 8 months agoApache-2.0View on GitHub
Guidance for Claude Code, Cursor, Copilot, Codex CLI, and other AI agents working with this plugin. A collection of Claude Code skills — 36 packaged instructions and scripts that extend AI agents with Stitch-specific capabilities: text-to-UI generation, design iteration (edit, variants, design systems), design token extraction, and multi-framework conversion. Think of it as a Stitch co-pilot that wraps all 15 Stitch MCP tools and knows the footguns so you don't have to learn them the hard way. Each skill directory…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository36 other files it gives its agents.
- stitch-a11ySkill
- stitch-animateSkill
- stitch-design-mdSkill
- stitch-design-systemSkill
- stitch-html-componentsSkill
- stitch-ideateSkill
- stitch-loopSkill
- stitch-mcp-apply-design-systemSkill
- stitch-mcp-create-design-system-from-design-mdSkill
- stitch-mcp-create-design-systemSkill
- stitch-mcp-create-projectSkill
- stitch-mcp-delete-projectSkill
- stitch-mcp-edit-screensSkill
- stitch-mcp-generate-screen-from-textSkill
- stitch-mcp-generate-variantsSkill
- stitch-mcp-get-projectSkill
- stitch-mcp-get-screenSkill
- stitch-mcp-list-design-systemsSkill
- stitch-mcp-list-projectsSkill
- stitch-mcp-list-screensSkill
- stitch-mcp-update-design-systemSkill
- stitch-mcp-upload-design-mdSkill
- stitch-nextjs-componentsSkill
- stitch-orchestratorSkill
- stitch-react-componentsSkill
- stitch-react-native-componentsSkill
- stitch-remotionSkill
- stitch-setupSkill
- stitch-shadcn-uiSkill
- stitch-skill-creatorSkill
- stitch-svelte-componentsSkill
- stitch-swiftui-componentsSkill
- stitch-ued-guideSkill
- stitch-ui-design-spec-generatorSkill
- stitch-ui-design-variantsSkill
- stitch-ui-prompt-architectSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 76
Use $stitch-kit to invoke the agent or $stitch-orchestrator to run a skill directly.
- Very specific: line 101
All 15 Stitch MCP tools wrapped: create_project, get_project, delete_project, list_projects, generate_screen_from_text, edit_screens, …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Guidance for Claude Code, Cursor, Copilot, Codex CLI, and other AI agents working with this plugin.
What this repo is
A collection of Claude Code skills — 36 packaged instructions and scripts that extend AI agents with Stitch-specific capabilities: text-to-UI generation, design iteration (edit, variants, design systems), design token extraction, and multi-framework conversion. Think of it as a Stitch co-pilot that wraps all 15 Stitch MCP tools and knows the footguns so you don't have to learn them the hard way.
Skill structure
Each skill directory follows the Agent Skills standard:
skills/{skill-name}/
├── SKILL.md ← Required: activation instructions and workflow
├── examples/ ← Required: worked examples (gold-standard reference)
├── resources/ ← Optional: templates, checklists, mapping tables
├── scripts/ ← Optional: bash scripts (fetch-stitch.sh, init_stitch_skill.py, etc.)
└── references/ ← Optional: style guides, contracts- SKILL.md: YAML frontmatter (
name,description,allowed-tools) + markdown instructions - examples/: Load for few-shot context when needed
- resources/, scripts/: Progressive disclosure — reference only when relevant
Quick install (both platforms)
npx @booplex/stitch-kitAuto-detects Claude Code and/or Codex CLI and installs to the right places. Also tells you if Stitch MCP needs configuring.
To update later: npx @booplex/stitch-kit update (npx always fetches the latest version).
To check what's installed: npx @booplex/stitch-kit status.
Installing (Claude Code)
Stitch MCP first (remote HTTP server — needs an API key from stitch.withgoogle.com/settings):
claude mcp add stitch --transport http https://stitch.googleapis.com/mcp \
--header "X-Goog-Api-Key: YOUR-API-KEY" -s userThen the plugin:
/plugin marketplace add https://github.com/gabelul/stitch-kit.git
/plugin install stitch-kit@stitch-kitInstalling (Codex CLI)
npx @booplex/stitch-kitOr clone and run the installer manually:
git clone https://github.com/gabelul/stitch-kit.git
cd stitch-kit && bash install-codex.shThen wire up Stitch MCP in ~/.codex/config.toml:
[mcp_servers.stitch]
url = "https://stitch.googleapis.com/mcp"
[mcp_servers.stitch.headers]
X-Goog-Api-Key = "YOUR-API-KEY"Use $stitch-kit to invoke the agent or $stitch-orchestrator to run a skill directly.
Agent definition
agents/stitch-kit.md defines the stitch-kit specialist agent. Works in both Claude Code and Codex. It knows the full skill set (including edit-screens, generate-variants, design systems), handles Stitch URL parsing, and routes to the right skill automatically.
Recommended entry point
For Stitch-based UI generation, load stitch-orchestrator or invoke the stitch-kit agent — both coordinate the full workflow end-to-end. Start here unless you have a specific reason to go manual.
Architecture (4 layers)
| Layer | Count | Purpose |
Brain (stitch-ui-*, stitch-ideate) | 5 | Design intelligence — ideation agent, specs, prompts, variants, UED guide |
Hands (stitch-mcp-*) | 15 | MCP wrappers — one per Stitch API tool, handles ID format rules |
| Conversion | 7+ | Stitch HTML → framework components (Next.js, Svelte, React, HTML, RN, SwiftUI, shadcn) |
| Quality | 3 | Design tokens, accessibility audit, animations |
MCP prerequisite
Skills marked allowed-tools: ["stitch*:*"] require the Stitch MCP Server configured in your client. Without it, the generation steps won't work.
Setup guide: https://stitch.withgoogle.com/docs/mcp/setup
All 15 Stitch MCP tools wrapped: create_project, get_project, delete_project, list_projects, generate_screen_from_text, edit_screens, generate_variants, list_screens, get_screen, create_design_system, update_design_system, list_design_systems, apply_design_system, upload_design_md, create_design_system_from_design_md
Without MCP: the orchestrator falls back to prompt-only mode (generates ready-to-copy Stitch prompts instead of running the full workflow — still useful, just slower).
Key skills reference
| Skill | When to invoke |
stitch-orchestrator | "Use Stitch to design X" — handles everything |
stitch-ideate | "Help me brainstorm", "ideate a UI", vague requests → conversational design agent → PRD → batch generation |
stitch-ui-design-spec-generator | User request → structured JSON design spec |
stitch-ui-prompt-architect | Design spec → structured Stitch prompt |
stitch-mcp-edit-screens | Edit existing screens with text prompts (iteration) |
stitch-mcp-generate-variants | Generate design alternatives with creativity controls |
stitch-mcp-create-design-system | Create reusable Stitch Design Systems |
stitch-mcp-upload-design-md | Upload a DESIGN.md into a project (pairs with the next row) |
stitch-mcp-create-design-system-from-design-md | Turn an uploaded DESIGN.md into a design system |
stitch-mcp-apply-design-system | Apply design systems to screens |
stitch-mcp-get-screen | Retrieve screen HTML + screenshot by ID |
stitch-design-system | Extract design tokens → CSS + Tailwind files |
stitch-nextjs-components | Convert to Next.js 15 App Router |
stitch-svelte-components | Convert to Svelte 5 / SvelteKit |
stitch-html-components | Convert to HTML5 + CSS (WebView / Capacitor) |
stitch-react-native-components | Convert to React Native / Expo |
stitch-swiftui-components | Convert to SwiftUI (iOS) |
stitch-loop | Iterative multi-page site building |
stitch-shadcn-ui | Add shadcn/ui components to React output |
stitch-animate | Add animations to generated components |
stitch-a11y | WCAG 2.1 AA accessibility audit and fixes |
stitch-setup | Install Stitch MCP + this plugin |
Full docs reference
See docs/ for:
skills-index.md— complete skills table with descriptions and layersmcp-schemas/— JSON Schema for all 15 Stitch MCP toolscolor-prompt-guide.md— 8 ready-to-use color palette prompts for Stitchtailwind-reference.md— Tailwind utility class reference for conversionsmcp-naming-convention.md— MCP tool name → skill name mappingprd-to-stitch-workflow.md— PRD-driven design workflow guide
Context efficiency
Skills load on demand — only the relevant SKILL.md gets loaded per request. Resources and examples are loaded progressively when the skill needs them. Keep SKILL.md focused (under 500 lines) and use references/ for detail.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

