agentleFS
gabelulgabelul/stitch-kit/AGENTS.md

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…

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
  1. Very specific:

    Use $stitch-kit to invoke the agent or $stitch-orchestrator to run a skill directly.

    line 76
  2. Very specific:

    All 15 Stitch MCP tools wrapped: create_project, get_project, delete_project, list_projects, generate_screen_from_text, edit_screens, …

    line 101

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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-kit

Auto-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 user

Then the plugin:

/plugin marketplace add https://github.com/gabelul/stitch-kit.git
/plugin install stitch-kit@stitch-kit

Installing (Codex CLI)

npx @booplex/stitch-kit

Or clone and run the installer manually:

git clone https://github.com/gabelul/stitch-kit.git
cd stitch-kit && bash install-codex.sh

Then 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)

LayerCountPurpose
Brain (stitch-ui-*, stitch-ideate)5Design intelligence — ideation agent, specs, prompts, variants, UED guide
Hands (stitch-mcp-*)15MCP wrappers — one per Stitch API tool, handles ID format rules
Conversion7+Stitch HTML → framework components (Next.js, Svelte, React, HTML, RN, SwiftUI, shadcn)
Quality3Design 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

SkillWhen 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-generatorUser request → structured JSON design spec
stitch-ui-prompt-architectDesign spec → structured Stitch prompt
stitch-mcp-edit-screensEdit existing screens with text prompts (iteration)
stitch-mcp-generate-variantsGenerate design alternatives with creativity controls
stitch-mcp-create-design-systemCreate reusable Stitch Design Systems
stitch-mcp-upload-design-mdUpload a DESIGN.md into a project (pairs with the next row)
stitch-mcp-create-design-system-from-design-mdTurn an uploaded DESIGN.md into a design system
stitch-mcp-apply-design-systemApply design systems to screens
stitch-mcp-get-screenRetrieve screen HTML + screenshot by ID
stitch-design-systemExtract design tokens → CSS + Tailwind files
stitch-nextjs-componentsConvert to Next.js 15 App Router
stitch-svelte-componentsConvert to Svelte 5 / SvelteKit
stitch-html-componentsConvert to HTML5 + CSS (WebView / Capacitor)
stitch-react-native-componentsConvert to React Native / Expo
stitch-swiftui-componentsConvert to SwiftUI (iOS)
stitch-loopIterative multi-page site building
stitch-shadcn-uiAdd shadcn/ui components to React output
stitch-animateAdd animations to generated components
stitch-a11yWCAG 2.1 AA accessibility audit and fixes
stitch-setupInstall Stitch MCP + this plugin

Full docs reference

See docs/ for:

  • skills-index.md — complete skills table with descriptions and layers
  • mcp-schemas/ — JSON Schema for all 15 Stitch MCP tools
  • color-prompt-guide.md — 8 ready-to-use color palette prompts for Stitch
  • tailwind-reference.md — Tailwind utility class reference for conversions
  • mcp-naming-convention.md — MCP tool name → skill name mapping
  • prd-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.