stitch-skill-creator
Skill45 starsChanged 8 months agoApache-2.0View on GitHub
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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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-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 skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Always starts with stitch-
- Distinctive: line 195
Use the template above. Key sections for framework skills:
- Very specific: line 205
Write resources/component-template.[ext] — a working boilerplate component that demonstrates:
- Very specific: line 214
Write resources/architecture-checklist.md with framework-specific checks.
- Very specific: line 222
Add to the appropriate plugin group in .claude-plugin/marketplace.json:
- Distinctive: line 229
Add the new skill to the table.
- Distinctive: line 233
Add to the appropriate layer table.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Stitch Skill Creator
A factory for creating new stitch-kit skills. Enforces standard structure, naming conventions, and the plugin's architectural patterns.
When to use this skill
- Adding support for a new framework (e.g. "Astro", "Qwik", "Flutter")
- Creating a domain-specific prompt architect (e.g.
stitch-ui-ecommerce-architect) - Adding a new quality tool (e.g.
stitch-performance,stitch-seo) - Any time you need a new SKILL.md that integrates with the stitch-kit ecosystem
Naming conventions
| 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:
- Always kebab-case
- Always starts with
stitch- - Framework conversion skills end with
-components - MCP wrappers follow
stitch-mcp-{snake_case_tool → kebab}fromdocs/mcp-naming-convention.md
Required directory structure
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 docsSKILL.md template
---
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 downloaderExamples template (examples/usage.md)
# [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]Architecture checklist template (resources/architecture-checklist.md)
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 codeCreating a framework conversion skill
For a new framework (e.g. Astro):
1. Create the directory
mkdir -p skills/stitch-astro-components/resources
mkdir -p skills/stitch-astro-components/examples
mkdir -p skills/stitch-astro-components/scripts2. Copy the fetch script
cp skills/stitch-mcp-get-screen/scripts/fetch-stitch.sh \
skills/stitch-astro-components/scripts/fetch-stitch.sh3. Write SKILL.md
Use the template above. Key sections for framework skills:
- When to use vs. similar skills — distinguish from Next.js, Svelte, etc.
- Project structure — show the file layout
- HTML → Framework mapping — table of HTML/CSS patterns → framework equivalents
- Design tokens — how to handle Stitch's CSS variables in this framework
- Dark mode — how this framework handles it
- Accessibility — framework-specific ARIA patterns
4. Create component template
Write resources/component-template.[ext] — a working boilerplate component that demonstrates:
- Props interface
- Theme token usage
- Dark mode
- Accessibility attributes
- Conditional rendering patterns
5. Create architecture checklist
Write resources/architecture-checklist.md with framework-specific checks.
6. Write examples
At least 2 examples in examples/usage.md.
7. Register in marketplace.json
Add to the appropriate plugin group in .claude-plugin/marketplace.json:
- Web frameworks →
stitch-frameworks - Mobile →
stitch-mobile - New category → create a new group
8. Update docs/skills-index.md
Add the new skill to the table.
9. Update README.md
Add to the appropriate layer table.
Creating a domain-specific prompt architect
For a new domain (e.g. e-commerce):
The skill name: stitch-ui-ecommerce-architect
This skill does not generate or execute — it produces a structured Stitch prompt. Pattern:
- Identify domain-specific components (product card, cart, checkout flow, review stars, etc.)
- Define the
[Context] [Layout] [Components]prompt template for this domain - Reference
stitch-ued-guidefor visual vocabulary - Output is: a ready-to-use prompt for
stitch-mcp-generate-screen-from-text
References
docs/skills-index.md— existing skills (check before creating duplicates)docs/mcp-naming-convention.md— MCP tool naming rulesstitch-nextjs-components/SKILL.md— reference for a well-structured framework conversion skillstitch-swiftui-components/SKILL.md— reference for a mobile platform skill
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.

