stitch-skill-creator
$
npx mdskill add partme-ai/full-stack-skills/stitch-skill-creatorGenerates new Stitch Scenario Skills for specific domains using a design-first workflow.
- Helps add new domains like music apps or social networks to the Stitch ecosystem.
- Integrates with Read, Write, and Bash tools for automated or manual creation.
- Decides based on the Stitch Design SOP, ensuring trigger safety and self-contained prompts.
- Presents results as SKILL.md templates, directory structures, and examples for developers.
SKILL.md
.github/skills/stitch-skill-creatorView on GitHub ↗
---
name: stitch-skill-creator
description: "Factory skill for creating new Stitch Scenario Skills with the Design First, Execute Last SOP. Use when you need to add a new domain (e.g. Music Apps, Social Networks, Login Pages) to the Stitch ecosystem. Generates SKILL.md templates, directory structure, and examples via automated script or manual workflow."
license: Complete terms in LICENSE.txt
allowed-tools: "Read, Write, Bash"
---
# Stitch Skill Creator
This skill guides the creation of new **Stitch Scenario Skills**. A Scenario Skill is a specialized "Prompt Architect" for a specific domain (e.g., `stitch-ui-music-designer`, `stitch-ui-blog-designer`).
## Core Philosophy
All Stitch Skills created by this creator **MUST** adhere to the **Stitch Design SOP**:
1. **Trigger Safety**: The skill must ONLY trigger when the user explicitly mentions "Stitch".
2. **Design First**: Never execute. Always construct a high-quality prompt first.
3. **Self-Contained**: The skill should act as a specialized "Prompt Template" that encapsulates domain knowledge (e.g., a Music App needs a "Play Button", "Cover Art").
## Workflow (Progressive Disclosure)
Keep this file concise. Use bundled references when you need full details:
- Workflow: `references/workflows.md`
- Output patterns: `references/output-patterns.md`
## Quick start (Automated Creation)
### Option A: Automated Creation (Recommended)
Use the bundled script to automatically generate the skill structure, `SKILL.md` (with Golden Template), and `examples/usage.md`.
```bash
# Usage: ./scripts/init_stitch_skill.py <scenario-name> --path <skills-directory>
./scripts/init_stitch_skill.py music-designer --path skills/
```
This will automatically:
1. Create `skills/stitch-ui-music-designer`.
2. Populate `SKILL.md` with the required SOP and Templates.
3. Create `examples/usage.md`.
### Option B: Manual Creation (Only if needed)
Follow: `references/workflows.md` -> Manual creation.
### Step 1: Define the Scenario
Identify the domain and name the skill following the strict naming convention: `stitch-ui-<scenario>-designer`.
* *Example Scenario*: "Music Apps"
* *Skill Name*: `stitch-ui-music-designer` (MUST start with `stitch-ui-`)
* *Example Scenario*: "Login Pages"
* *Skill Name*: `stitch-ui-login-designer`
### Step 2: Create Directory Structure
```bash
mkdir -p skills/stitch-ui-<scenario>-designer/examples
```
### Step 3: Write `SKILL.md` (The Golden Template)
You **MUST** use the following template for the new skill. It enforces the required SOP.
````markdown
---
# <Scenario> Screen Designer
**Constraint**: Only use this skill when the user explicitly mentions "Stitch" or when orchestrating a Stitch design task.
This skill helps you construct high-quality prompts for <Scenario> flows to be used by the Stitch Orchestrator.
## Functionality
It encapsulates best practices for <Scenario> UI design and translates user intent into a structured Stitch prompt.
## Integration with Stitch Designer SOP
This skill is part of the **Stitch UI Orchestration** flow.
1. **Orchestrator**: `stitch-ui-designer` calls this skill when a scenario-specific prompt is needed.
2. **Guidelines**: You MUST apply principles from `stitch-ued-guide` (e.g., visual vocabulary, device constraints).
3. **Output**: You do NOT execute. You return a prompt only.
## Prompt Template
When the user asks for a <Scenario> screen, use this template to construct the prompt:
```text
[Context]
[Device] <Scenario> screen for [App Name]. [Style] aesthetic.
[Layout]
Header: [...]
Body: [...]
Footer: [...]
[Components]
- [...]
- [...]
```
## Output Format (STRICT)
Return exactly one code block and no extra prose:
```text
[Context]
...
[Layout]
...
[Components]
...
```
## Usage in Orchestrator
This skill is designed to be called by `stitch-ui-designer`. It does NOT execute; it returns a prompt only.
````
### Step 4: Write `examples/usage.md`
Provide at least 2 distinct examples of how this skill transforms a vague request into a detailed prompt.
## Best Practices for New Skills
1. **Domain Specificity**: The value of a Scenario Skill is in its *specific knowledge*.
* *Bad*: "A page with text."
* *Good (Music)*: "A player view with a scrubbing bar, album art, and waveform visualization."
2. **Device Awareness**: Ensure the template supports Mobile (default) and Desktop.
3. **No Direct Execution**: The Scenario Skill must not call any MCP tool. It produces the prompt that the Orchestrator uses.
## References
- [Examples](examples/usage.md)
- [Workflows](references/workflows.md)
- [Output Patterns](references/output-patterns.md)
- [Init Script](scripts/init_stitch_skill.py)
More from partme-ai/full-stack-skills
- adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
- angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
- ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
- ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
- ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
- ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
- ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
- api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
- appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
- ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."