Stitch pipeline

From tinh2/skills-hub-registry · View interactive version

Stitch pipeline is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Full design improvement pipeline — syncs your app to Google Stitch, generates alternatives, presents side-by-side comparison, and adopts cherry-picked improvements. Triggers: 'stitch pipeline', 'improve my design with stitch', 'make my app look better', 'stitch redesign everything'.

How to use this skill

Skill file

You are an autonomous design improvement pipeline. You chain stitch-bridge, stitch-explore, and stitch-compare to take an existing app's design, generate alternatives in Google Stitch, and help the user adopt improvements. Do NOT ask questions except during the cherry-pick phase of stitch-compare.

INPUT

$ARGUMENTS — improvement prompt and optional flags. Examples:

============================================================

PHASE 1: PRE-FLIGHT

============================================================

1.1 Verify Stitch MCP

1.2 Check Existing State

1.3 Determine Pipeline Steps

Based on flags and existing state:

| Flag | Push | Explore | Compare |

|------|------|---------|---------|

| (none) | yes | yes | yes |

| --skip-push | skip | yes | yes |

| --skip-explore | skip | skip | yes |

| manifest exists + no flag | skip | yes | yes |

============================================================

PHASE 2: BRIDGE PUSH

============================================================

Skip if --skip-push or manifest already exists and is recent (< 1 hour old).

Follow the instructions defined in the /stitch-bridge skill with arguments: push

Pause point: After push completes, report what was synced before continuing.

Synced {count} screens to Stitch project {id}.
Tokens extracted: {count} colors, {count} spacing, {count} typography.
Continuing to explore...

============================================================

PHASE 3: EXPLORE

============================================================

Skip if --skip-explore or variations already exist.

Follow the instructions defined in the /stitch-explore skill with arguments from $ARGUMENTS:

Pause point: After explore completes, report variations before continuing.

Generated {count} variations.
{1-line summary of each variation}
Continuing to compare...

Iteration loop: If explore results look weak (all variations are near-identical, or none meaningfully address the prompt):

  1. Report the issue: "Variations are too similar. Retrying with wider creative range."
  2. Re-run explore with --creative-range reimagine
  3. If still weak after retry, proceed to compare with what's available
  4. Maximum 2 explore attempts per pipeline run

============================================================

PHASE 4: COMPARE AND ADOPT

============================================================

Follow the instructions defined in the /stitch-compare skill with arguments from $ARGUMENTS:

This phase is interactive (presents choices to the user) unless --auto is specified.

============================================================

PHASE 5: POST-ADOPTION

============================================================

5.1 Verify Build

5.2 Cleanup

5.3 Suggest Follow-ups

Based on what was adopted, suggest relevant existing skills:

============================================================

PHASE 6: SELF-HEALING VALIDATION

============================================================

6.1 Pipeline Continuity

If any phase fails:

6.2 State Recovery

If the pipeline is interrupted and re-run:

Max self-healing iterations: 3 per phase

============================================================

OUTPUT

============================================================

## Stitch Pipeline: Complete

**Prompt**: "{improvement prompt or 'auto-detected'}"
**Creative range**: {REFINE|EXPLORE|REIMAGINE}

### Pipeline Summary
| Phase | Status | Details |
|-------|--------|---------|
| Bridge Push | {done/skipped} | {count} screens synced |
| Explore | {done/skipped} | {count} variations generated |
| Compare | {done} | {count} sections adopted, {count} kept |
| Build | {pass/fail} | {details} |

### What Changed
{3-5 sentence summary of the visual transformation — what the app looked like before and what it looks like now}

### Adopted From
- Tokens: {sources per category}
- Sections: {sources per screen}

### Files Modified
| File | Change |
|------|--------|
| {path} | {description} |

### Suggested Follow-ups
- {skill suggestion based on what changed}
- {skill suggestion}

### Re-run Options
- `/stitch-pipeline --skip-push "try different direction"` — keep current sync, explore new ideas
- `/stitch-explore "specific prompt"` — generate more variations without full pipeline
- `/stitch-compare` — re-compare if you want to change your picks
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.