Using the design workflow
Examples use Claude Code's /factory:* spelling. In Codex, use $factory-design, $factory-define and $factory-deliver; see Using factory with Codex.
Design and implementation are independent tracks with separate orchestrators, agents and templates. They share a catalog and journaling, with separate DSGN-NNN and DEV-NNN ID counters; only an explicit approved-design dependency connects their execution. Unrelated code work can proceed in parallel in a separate worktree. The design reviewer first checks the design task definition; the named human gives final approval of the actual visual/UI revision. Approving a definition only permits design work to begin.
New tasks use shared ID reservations and a single local catalog across branches and linked worktrees. Resolve $FACTORY_ROOT from the product checkout as described there. When multiple clones define tasks, designate one write/allocation coordinator and explicitly transfer records rather than allocating independently or expecting Git to share them.
1. Define a small design task
In your product repository, ask:
/factory:design define Account settings screen, including profile editing, save feedback, and loading/error states. Use our existing design system; I will review the visuals.
The task in $FACTORY_ROOT/tasks/DSGN-NNN-*.md should have kind: design. Confirm its priority as urgent, high, normal or low; new follow-ups prompt a pending-order reassessment, not an interruption of active work. Agree on the scope, the artifact approach, the outcomes that decide the design is done, and the named human reviewer. The task record describes what the task contains. Define checks access before selecting Figma; if it cannot create designs there, choose a mocked in-app prototype. Storybook is optional, not something you need to install first.
The reviewer checks the definition in a fresh context. Resolve its findings, then approve the task definition so its status becomes ready. No visual/UI design is approved at this stage.
2. Produce the designs
/factory:design deliver DSGN-003
Replace DSGN-003 with your complete task ID. Without an explicit ID, delivery chooses the highest-priority eligible ready design task, not simply the lowest number. Use /factory:tasks for an overview of both tracks. It first runs settle, which can update the records of code tasks whose PR was merged; otherwise it changes nothing. The design orchestrator delegates artifact creation to the designer using the approved approach:
- Figma: designs in the selected file, with exact file/frame links and a submitted revision or snapshot. No Git branch, record commit or clean product tree is required.
- Prototype: mocked UI on
design/DSGN-NNN-short-slug, reusing existing components, themes and typography where available, without requiring real services or credentials. It is a throwaway design reference, not production code.
The agent checks the artifact against the task's acceptance criteria and leaves a durable handoff, recorded in the task's handoff field and linked in its report to you, for example $FACTORY_ROOT/designs/DSGN-003-review.md. Records and screenshots stay in the catalog; only runnable prototype changes are committed on a design branch. The handoff must say exactly where to look, which revision to review, how to access or run it, which routes/interactions/states to try, and what is mocked or incomplete. Ask the agent to make the handoff actionable if you cannot access it; a catalog path on another machine needs an explicit export, and sharing or pushing still needs your authorization.
3. Give final human approval
The task stays reviewing while waiting for you. Open the linked artifacts, follow the walkthrough, and either request changes or explicitly approve the exact submitted revision. For example:
Approve design task DSGN-003, prototype commit <full-commit-sha>, as the visual/UI design. Record my approval and finish the design task.
Use the actual Figma revision or prototype commit from the handoff, not the placeholder. If returning in a new session, run /factory:design deliver DSGN-003 to resume the recorded review, then provide your decision. Changes go back through artifact creation and human review; a new artifact revision needs new human approval. Agent checks and task-definition approval cannot replace this decision.
4. Define the real implementation
After the approved design task is done, ask:
/factory:define Implement account settings from approved design task DSGN-003. Reference its approved revision and connect the UI to our actual profile API.
The new code task records the design task, artifact revision and human approval in its implements field, and links the designs in its Scope of work; the design task's dev_task field links back. Start implementation from the production baseline, not the prototype branch. Run /factory:deliver <new-task-id> after definition approval: code still follows builder → gate → independent code review, including real integration and verification. Design approval does not authorize merging the prototype or bypassing production tests.
For tasks defined before this workflow, see updating and task migration. The full agent procedure starts at the design track.
Original Markdown, including metadata
# Using the design workflow Examples use Claude Code's `/factory:*` spelling. In Codex, use `$factory-design`, `$factory-define` and `$factory-deliver`; see [Using factory with Codex](adapters/codex.md). Design and implementation are independent tracks with separate orchestrators, agents and templates. They share a catalog and journaling, with separate `DSGN-NNN` and `DEV-NNN` ID counters; only an explicit approved-design dependency connects their execution. Unrelated code work can proceed in parallel in a separate worktree. The design reviewer first checks the design task definition; the named human gives final approval of the actual visual/UI revision. Approving a definition only permits design work to begin. New tasks use [shared ID reservations](../skills/task-ids.md) and a single [local catalog](../skills/storage.md) across branches and linked worktrees. Resolve `$FACTORY_ROOT` from the product checkout as described there. When multiple clones define tasks, designate one write/allocation coordinator and explicitly transfer records rather than allocating independently or expecting Git to share them. ## 1. Define a small design task In your product repository, ask: ```text /factory:design define Account settings screen, including profile editing, save feedback, and loading/error states. Use our existing design system; I will review the visuals. ``` The task in `$FACTORY_ROOT/tasks/DSGN-NNN-*.md` should have `kind: design`. Confirm its [priority](../skills/task-priorities.md) as `urgent`, `high`, `normal` or `low`; new follow-ups prompt a pending-order reassessment, not an interruption of active work. Agree on the scope, the artifact approach, the outcomes that decide the design is done, and the named human reviewer. The [task record](../skills/task-record.md) describes what the task contains. Define checks access before selecting Figma; if it cannot create designs there, choose a mocked in-app prototype. Storybook is optional, not something you need to install first. The reviewer checks the definition in a fresh context. Resolve its findings, then approve the task definition so its status becomes `ready`. No visual/UI design is approved at this stage. ## 2. Produce the designs ```text /factory:design deliver DSGN-003 ``` Replace `DSGN-003` with your complete task ID. Without an explicit ID, delivery chooses the highest-priority eligible ready design task, not simply the lowest number. Use `/factory:tasks` for an overview of both tracks. It first runs [settle](../skills/settle/SKILL.md), which can update the records of code tasks whose PR was merged; otherwise it changes nothing. The design orchestrator delegates artifact creation to the designer using the approved approach: - **Figma**: designs in the selected file, with exact file/frame links and a submitted revision or snapshot. No Git branch, record commit or clean product tree is required. - **Prototype**: mocked UI on `design/DSGN-NNN-short-slug`, reusing existing components, themes and typography where available, without requiring real services or credentials. It is a throwaway design reference, not production code. The agent checks the artifact against the task's acceptance criteria and leaves a durable handoff, recorded in the task's `handoff` field and linked in its report to you, for example `$FACTORY_ROOT/designs/DSGN-003-review.md`. Records and screenshots stay in the catalog; only runnable prototype changes are committed on a design branch. The handoff must say exactly where to look, which revision to review, how to access or run it, which routes/interactions/states to try, and what is mocked or incomplete. Ask the agent to make the handoff actionable if you cannot access it; a catalog path on another machine needs an explicit export, and sharing or pushing still needs your authorization. ## 3. Give final human approval The task stays `reviewing` while waiting for you. Open the linked artifacts, follow the walkthrough, and either request changes or explicitly approve the exact submitted revision. For example: ```text Approve design task DSGN-003, prototype commit <full-commit-sha>, as the visual/UI design. Record my approval and finish the design task. ``` Use the actual Figma revision or prototype commit from the handoff, not the placeholder. If returning in a new session, run `/factory:design deliver DSGN-003` to resume the recorded review, then provide your decision. Changes go back through artifact creation and human review; a new artifact revision needs new human approval. Agent checks and task-definition approval cannot replace this decision. ## 4. Define the real implementation After the approved design task is `done`, ask: ```text /factory:define Implement account settings from approved design task DSGN-003. Reference its approved revision and connect the UI to our actual profile API. ``` The new code task records the design task, artifact revision and human approval in its `implements` field, and links the designs in its Scope of work; the design task's `dev_task` field links back. Start implementation from the production baseline, not the prototype branch. Run `/factory:deliver <new-task-id>` after definition approval: code still follows builder → gate → independent code review, including real integration and verification. Design approval does not authorize merging the prototype or bypassing production tests. For tasks defined before this workflow, see [updating and task migration](updating.md). The full agent procedure starts at the [design track](../skills/design/SKILL.md).