Communitygithub.com

design-debate-pipeline

Design and mock up a whole app, area or new feature with parallel AI agents through multiple rounds of designer-vs-critic debate, owner rulings, one reconciled facts base, parallel board builders, separate reviewers, cross-checks and the lead's own screenshot review, then build from the approved boards. Use when the user asks to design, redesign, mock up or critically review many screens, a whole app, a new feature area, or says "design debate", "designer and critic", "mockup pipeline", "do it like last time for every screen". Works in any project; it discovers the project's own design system, personas and app first.

O que é design-debate-pipeline?

design-debate-pipeline is a Claude Code agent skill that design and mock up a whole app, area or new feature with parallel AI agents through multiple rounds of designer-vs-critic debate, owner rulings, one reconciled facts base, parallel board builders, separate reviewers, cross-checks and the lead's own screenshot review, then build from the approved boards. Use when the user asks to design, redesign, mock up or critically review many screens, a whole app, a new feature area, or says "design debate", "designer and critic", "mockup pipeline", "do it like last time for every screen". Works in any project; it discovers the project's own design system, personas and app first.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/khangkhangg/design-debate-pipeline/tree/HEAD

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Design debate pipeline

A method that produced a whole app's worth of consistent, defensible screens: roughly 120 critic objections answered one by one, 12 builders and 12 reviewers in parallel, numbers that agree everywhere, and nothing published until the lead had looked. It is independent of any one project. Everything project-specific is discovered in Phase 0.

Templates for every agent brief are in references/. Copy them, fill the <placeholders>, keep each brief short and point agents at files instead of pasting content.

Roles

  • Lead (you, the main session): owns the workspace, the rulings, the facts, the final look. Never delegates the decision or the final screenshot review.
  • Designer (one per section): studies the live app, researches competitors, writes specs and a state-board list. Defends or concedes.
  • Critic (one per section, a different agent): attacks every spec line with evidence.
  • Builder (one per board family): builds boards from final specs only.
  • Reviewer (one per family, never the builder): checks and fixes the boards.
  • Cross-checkers (two): numbers across families; shell, tokens and components.
  • Implementers (later): build the approved boards for real, test first, in parallel worktrees.

The user is the owner. Disputes the lead cannot settle from evidence go to the owner as questions; the lead never invents a ruling and never reports an agent's claim as fact without checking.

Phase 0: workspace and inputs (lead)

  1. Create a workspace folder (the session scratchpad is fine) with: specs/ (final specs), specs/critique/, specs/response/, build/project/ (boards), FACTS*.md, RULINGS.md, DECISIONS.md, LOG.md.
  2. Find and read the project's own sources of truth: design system and rules files, personas, target model, existing specs and plans, tokens, shared components. If there is no design system or personas file, STOP and write them first (or ask the owner); agents cannot design against nothing.
  3. Extract the real component list and behaviours from the app's code into COMPONENTS.md (sizes, colours, states, what exists). Builders copy from this; they never invent controls.
  4. Write the demo/sample dataset into FACTS.md (names, dates, rooms/items, money, counts). Every board takes numbers from here.
  5. Write the owner's rules into the designer brief (references/designer-brief.md has a blank list). Add every correction the owner ever made as a numbered rule; these are what past work was rejected for.
  6. Make sure a runnable copy of the app (demo data, logins for every role) exists so designers can look at real screens. Use ports the owner does not use.

Phase 1: designers (parallel, one per section)

Each designer: opens every screen of its section in every role and at every width (desktop, tablet, phone, plus long-language and right-to-left where relevant), describes what exists today, does its own competitor research (cites URLs, says what it could not verify), then writes per screen a spec of about 550 words (format in references/designer-brief.md): who/when/device/one decision; first screenful; every section with form, component, evidence, what is left out; every control; interactions with exact placement; the list of state boards (default, panel open, empty, loading, error, no access, offline, phone, tablet, long text, RTL); data sources; change versus today; two rejected alternatives; backend needed. Plus a _cross-<area>.md and FACTS-<area>.md (new facts must not contradict FACTS.md).

Phase 2: critic round (parallel, separate agents)

One critic per section reads the same inputs plus every spec. Every objection quotes the spec line, gives the objection, evidence (rule number, competitor URL, observed real behaviour, or a concrete failure for a named role on a named device), an alternative, severity (blocker, major, minor) and a verdict KEEP, CHANGE or CUT. "I would prefer" is rejected. The critic also lists "What the designer got right" and the points it expects the designer to resist. Template: references/critic-brief.md.

Phase 3: answer rounds (2, sometimes 3)

The designer answers every objection one by one in specs/response/<Spec>.md: ACCEPT (spec changed), REJECT (with evidence) or COUNTER (new proposal). It rewrites the spec. If a point is still open, the critic gets one more short round. Anything still disputed comes to the lead as a numbered question. Template: references/designer-response-brief.md.

Phase 4: rulings and facts rebuild (lead)

  1. Rule on every open dispute, in RULINGS.md, numbered, later entries win, each with the reason. Ask the owner for anything that is theirs to decide (money, legal, brand, role privacy).
  2. Spawn one reconciliation agent that rebuilds each FACTS-<area>.md so every number agrees across areas and with the rulings, logs every change in LOG.md, and lists conflicts it could not settle. Resolve those yourself or with the owner. Template: references/facts-and-rulings.md.
  3. Specs that conflict with facts or rulings are corrected before any board is built.

Phase 5: builders (parallel, one per family)

Each builder builds EVERY board and state board its specs list, from final specs, facts, rulings, real component markup. Boards are written to a separate output folder; nothing is published, the repo and old boards are not touched. Fixed phone frames, fluid desktop, measured heights. Builder looks at its own screenshots and fixes, then reports what it could not build, numbers that disagree and every invented value (labelled "sample" on the board). Template: references/builder-brief.md.

Phase 6: reviewers (parallel, never the builder)

One reviewer per family checks each board against its spec, the rules by number, the facts and the component list, with real renders at the right width, fixes faults in place and reports what it fixed and what it could not. Template: references/reviewer-brief.md.

Phase 7: cross-checks (two agents)

  • Numbers: every figure on every board against the facts and against the same figure on other families' boards (totals, counts, times, prices, dates, names, roles per room/person). Output: a list of mismatches and fixes made.
  • Shells and tokens: the same sidebar, header, tabs, spacing, radii, type scale, colours and component markup on every family; menus per role agree with the shell spec. Output: a list of drift and fixes made. Template: references/crosscheck-brief.md.

Phase 8: lead's own review (never skipped)

Take full-page screenshots of every board yourself (or at minimum every family's default, panel, phone and one state board each, then sample the rest), read them, and send faults back to the builder or reviewer with the screenshot path. Agents' own screenshots do not count, and neither do their reports. Never publish a board nobody has looked at. Then publish to the review canvas only with the owner's say-so, and ask before any push to a remote.

Phase 9: implementation plan and build

  1. For approved families, write an implementation plan: units (one per board family or backend slice), reserved database migration number ranges per unit, shared hot files that need additive edits only, interfaces between units, order of merge. Keep units independent so they can run in parallel.
  2. One implementer per unit in its own git worktree and branch. Strict test first (watch each test fail), reuse shared components and tokens, permission and data-isolation tests per role, one end-to-end journey with accessibility and no sideways scroll at phone and tablet widths, and a short audit entry by design-system rule number.
  3. The lead merges locally one unit at a time, running the full suites after each, resolves the hot-file conflicts keeping both sides, then looks at the merged screens in a real browser against the boards. Nothing is pushed or deployed without the owner's explicit yes.
  4. Wire the cross-unit interfaces left open (stubs that return zero are tracked on a list until wired).

Rules that kept this honest

  • Agents write only to their own output folders. One agent never builds and reviews the same board. One writer per set of files.
  • Long agent prompts: point at files (specs, briefs) instead of pasting; some environments rewrite long prompts into image briefs, and the first call may be denied for review. Re-issue with exactly the rewritten input.
  • Every agent report ends with: files written, what was not looked at, numbers that disagree, invented values, anything it could not do. The lead reads these as claims to check, not as proof.
  • Sample values: ask the owner once whether invented people and records count as real test data. If yes (the default for a mimic-real-life demo), put them in the facts once, use them identically everywhere and do not label them; keep marking only invented legal, tax, payment or contact identifiers.
  • Width: boards and audits check unused horizontal space at desktop and tablet widths and extend or respond, instead of leaving a wide empty margin.
  • Invented sample values are labelled where they could mislead. Legal or regulatory claims that could not be verified are flagged with "check with a local professional".
  • Shared servers and ports: tell agents which ports are the owner's; agents stop only the servers they started (kill by process, not by port sweep).
  • Keep a LOG.md of every fact or spec change by anyone, with the reason.
  • Update the project's persistent memory with: where the workspace and canvas live, the owner's standing rules, open design calls.
  • After each round the lead tells the owner, in plain short words, what changed, what is unverified, and what is theirs to decide.

Output of a finished run

Final specs, state-board list, boards (one self-contained file each), facts, rulings, critique and response files, cross-check logs, implementation plan, and a list of open questions and stubs. Re-run the pipeline per new screen or feature by starting at Phase 1 with a smaller section.

Export and import

This skill is a folder: design-debate-pipeline/SKILL.md plus references/*.md. Copy the folder (or its zip) into ~/.claude/skills/ on another account or machine. It has no project paths inside; Phase 0 rediscovers them.

Habilidades Relacionadas