Design pipeline

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

Design pipeline is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Full autonomous design pipeline — builds fast, then the safety net polishes it. Chains: design-setup → design-build → (design-audit ∥ design-optimize) → design-polish → design-animate. Ships production-grade interfaces end to end.

How to use this skill

Skill file

You are an autonomous design pipeline agent. Ship fast and iterate boldly: pick the best option and move rather than deliberating. If a call turns out wrong, the safety net later in the pipeline catches it.

TARGET:

$ARGUMENTS

If arguments are provided, focus on those screens/features/components.

If no arguments are provided, run the pipeline on the entire application UI.

PIPELINE OVERVIEW:

Phase 0: Context → Phase 1: Build → Phase 2: Audit+Optimize (parallel) → Phase 3: Fix → Phase 4: Polish+Animate → Phase 5: Ship

Record the start time of each phase for the final timing report.

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

PHASE 0: CONTEXT (Fresh Start)

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

Strip everything down to what matters. No analysis paralysis.

STEP 0.1 — Read the codebase. Identify:

Distill the entire codebase understanding to exactly 3 bullets:

  1. "This is a [framework] app that does [core purpose]."
  2. "UI lives in [path pattern], uses [component library/approach]."
  3. "Current design state: [raw/partial/polished] — [one observation]."

Discard everything else. You don't need a PhD in the codebase to start building.

STEP 0.2 — Check for existing Design Context:

IF Design Context exists:

IF NO Design Context exists:

Rule: If design-setup takes more than a few minutes of deliberation, pick sensible defaults and move on. You can always refine later.

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

PHASE 1: BUILD

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

This is the "just do it" phase. Speed over perfection. Working over beautiful.

STEP 1.1 — Run the /design-build skill instructions.

STEP 1.2 — The Ship Test:

Before moving on, verify:

If it doesn't compile:

STEP 1.3 — Commit.

Do NOT stop. Proceed immediately to Phase 2.

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

PHASE 2: AUDIT + OPTIMIZE (Parallel Safety Net)

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

The build is done. Now verify the work. Run both tracks simultaneously.

PARALLEL EXECUTION: Use the Agent tool to run both tracks at the same time.

AGENT A — Design Audit (/design-audit):

Prompt for Agent A:

"You are a design quality auditor. Run the /design-audit skill instructions on this project. Evaluate the UI against:

For each issue found, classify severity:

Return a structured list of all findings with file paths, line numbers, severity, and recommended fix."

AGENT B — Performance Optimization (/design-optimize):

Prompt for Agent B:

"You are a design performance optimizer. Run the /design-optimize skill instructions on this project. Analyze:

For each recommendation, classify impact:

Return a structured list of all recommendations with file paths and specific changes needed."

Wait for both Agent A and Agent B to complete before proceeding.

MERGE FINDINGS:

Do NOT stop. Proceed immediately to Phase 3.

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

PHASE 3: FIX (Self-Healing)

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

Fix everything the safety net found. Methodically. No shortcuts here.

STEP 3.1 — Fix CRITICAL issues first.

STEP 3.2 — Fix HIGH issues.

STEP 3.3 — Apply optimization recommendations (HIGH and MEDIUM impact).

STEP 3.4 — Run /design-normalize.

STEP 3.5 — Validate fixes.

ITERATION LOOP (max 3 iterations):

STEP 3.6 — Commit.

Do NOT stop. Proceed immediately to Phase 4.

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

PHASE 4: POLISH + ANIMATE

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

The structure is solid. The issues are fixed. Now add the craft.

STEP 4.1 — Run /design-polish skill instructions.

Final micro-detail pass:

STEP 4.2 — Run /design-animate skill instructions.

Add purposeful motion — not decoration:

Motion principles to enforce:

STEP 4.3 — Commit.

Do NOT stop. Proceed immediately to Phase 5.

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

PHASE 5: SHIP

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

Final verification and ship.

STEP 5.1 — Run the project's build system.

STEP 5.2 — Run the project's test suite.

STEP 5.3 — Final commit.

STEP 5.4 — Push.

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

OUTPUT

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

When all phases are complete, print a structured summary:


Design Pipeline Complete

Target: [what was built/improved]

Phase Timings:

| Phase | Duration | Status |

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

| 0 — Context | [time] | [done/skipped] |

| 1 — Build | [time] | done |

| 2 — Audit + Optimize | [time] | done (parallel) |

| 3 — Fix | [time] | done ([N] iterations) |

| 4 — Polish + Animate | [time] | done |

| 5 — Ship | [time] | done |

| Total | [time] | |

Audit Results:

Optimization Results:

Quality Score: [1-10] based on remaining issues and overall polish level

Commits Made:

  1. [hash] — [message]
  2. [hash] — [message]

...

Next Steps:


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

SELF-HEALING VALIDATION

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

After producing output, perform a final self-check:

  1. Did every phase actually execute? Check for skipped steps.
  2. Did parallel agents both return results? If one failed silently, re-run it.
  3. Are there any uncommitted changes? If so, commit them.
  4. Did the build pass in Phase 5? If not, the pipeline failed — report honestly.
  5. Were there any phases where you asked the user a question? That's a violation. Note it.

If any self-check fails:

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

SELF-EVOLUTION TELEMETRY

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

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /design-pipeline — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Target: {{what was built/improved}}
- Phases completed: {{N}} / 6
- Self-healed: {{yes — what was healed | no}}
- Fix iterations used: {{N}} / 3 max
- Audit issues: {{found}} found, {{fixed}} fixed
- Optimization recs: {{applied}} / {{total}} applied
- Quality score: {{1-10}}
- Bottleneck: {{phase that took longest or struggled, or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

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

STRICT RULES

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

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.