stitch-a11y
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Meta-skill for creating new stitch-kit skills. Enforces naming conventions, SKILL.md structure, examples format, and the Design-First SOP. Use when adding new framework support, a new domain-specific prompt architect, or any new capability to the stitch-kit plugin.
$ npx -y skills add gabelul/stitch-kit --skill stitch-skill-creator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/stitch-skill-creatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Meta-skill for creating new stitch-kit skills. Enforces naming conventions, SKILL.md structure, examples format, and the Design-First SOP. Use when adding new framework support, a new domain-specific prompt architect, or any new capability to the stitch-kit plugin.
name: stitch-skill-creator description: Meta-skill for creating new stitch-kit skills. Enforces naming conventions, SKILL.md structure, examples format, and the Design-First SOP. Use when adding new framework support, a new domain-specific prompt architect, or any new capability to the stitch-kit plugin. allowed-tools: - "Bash" - "Read" - "Write"
A factory for creating new **stitch-kit skills**. Enforces standard structure, naming conventions, and the plugin's architectural patterns.
---
| Skill type | Name pattern | Example | |------------|-------------|---------| | Framework conversion | `stitch-[framework]-components` | `stitch-astro-components` | | Domain prompt architect | `stitch-ui-[domain]-architect` | `stitch-ui-ecommerce-architect` | | MCP wrapper | `stitch-mcp-[tool-name]` | `stitch-mcp-edit-screen` | | Quality / analysis tool | `stitch-[capability]` | `stitch-performance` | | Meta / utility | `stitch-[name]` | `stitch-setup` |
**Rules:**
---
skills/[skill-name]/ ├── SKILL.md ← Required: frontmatter + workflow (keep under 500 lines) ├── examples/ │ └── usage.md ← Required: 2+ worked examples ├── resources/ ← Optional: templates, checklists, reference tables │ ├── component-template.[ext] │ └── architecture-checklist.md ├── scripts/ ← Optional: bash scripts │ └── fetch-stitch.sh ← Copy from stitch-mcp-get-screen/scripts/ if needed └── references/ ← Optional: style guides, contracts, long reference docs
---
--- name: stitch-[skill-name] description: [One clear sentence — when to use this skill and what it does. This is used for routing by the orchestrator and for marketplace display.] allowed-tools: - "stitch*:*" # Include if skill calls Stitch MCP tools - "Bash" # Include if skill runs shell commands - "Read" # Usually yes - "Write" # Usually yes --- # Stitch → [Target] [Type] **Constraint:** Only use this skill when the user explicitly mentions "Stitch" [and any additional trigger condition]. [One sentence explaining what this skill does and who the agent "is" while using it.] ## When to use this skill vs. similar skills [Table comparing this skill to its nearest alternatives — help the orchestrator route correctly] ## Prerequisites [What the user/environment needs before this skill can run] ## Step 1: Retrieve the design 1. Run `list_tools` → find Stitch MCP prefix 2. Call `[prefix]:get_screen` with numeric `projectId` and `screenId` 3. Download HTML: `bash scripts/fetch-stitch.sh "[htmlCode.downloadUrl]" "temp/source.html"` ## Step 2: [Core conversion / workflow] [The main logic of this skill] ## Step N: Output [What the skill produces — files, code, commands] ## Troubleshooting | Issue | Fix | |-------|-----| ## References - `resources/component-template.[ext]` — [description] - `resources/architecture-checklist.md` — Pre-ship checklist - `scripts/fetch-stitch.sh` — Reliable GCS HTML downloader
---
# [Skill Name] — Usage Examples ## Example 1: [Scenario title] **User:** "[Specific user request]" **Skill activates because:** [Why this triggers the skill] **What the skill does:** 1. [Step 1] 2. [Step 2] 3. ... **Output:** [Description or code snippet of what gets generated] --- ## Example 2: [Different scenario] [Same format]
---
Adapt this to the target platform/framework:
# [Framework] Components — Architecture Checklist Run through this checklist before marking the task complete. ## Structure - [ ] [Project structure check] - [ ] Components are in separate files ## [Framework-specific category] - [ ] [Framework-specific check] ## TypeScript / Types - [ ] No `any` types - [ ] All props have Readonly<> wrapper ## Dark mode - [ ] Theme tokens used everywhere — no hardcoded colors ## Accessibility - [ ] All interactive elements are keyboard accessible - [ ] Images have descriptive alt text ## Performance - [ ] No console.log in production code
---
For a new framework (e.g. Astro):
mkdir -p skills/stitch-astro-components/resources mkdir -p skills/stitch-astro-components/examples mkdir -p skills/stitch-astro-components/scripts
cp skills/stitch-mcp-get-screen/scripts/fetch-stitch.sh \ skills/stitch-astro-components/scripts/fetch-stitch.sh
Use the template above. Key sections for framework skills:
Write `resources/component-template.[ext]` — a working boilerplate component that demonstrates:
Write `resources/architectu
Your coding agent writes decent code and designs terrible UI. stitch-kit fixes the second half — it wires agents into Google Stitch (text prompts → genuinely beautiful screens) and teaches them to drive it properly.
Repo: gabelul/stitch-kit
Audits Stitch-generated components for WCAG 2.1 AA accessibility issues and applies fixes — semantic HTML, ARIA attributes, keyboard navigation, focus…
Adds a purposeful animation layer to Stitch-generated components — CSS transitions, Framer Motion (React/Next.js), or Svelte transitions. Always respects…
Analyzes a Stitch project's screens and synthesizes a natural-language DESIGN.md — visual atmosphere, color palette with hex values, typography rules, and…
Extracts a Stitch design and generates production code artifacts — CSS custom properties with dark mode tokens, a Tailwind v4 @theme block, and a semantic…
Converts a Stitch screen, a local HTML file, or a URL into clean, platform-agnostic HTML5 + CSS — semantic markup, CSS custom properties for theming, dark mode…
Conversational design ideation agent that researches trends, explores visual directions, and refines ideas through adaptive questioning — then produces a rich…