Design delivery
Run under /factory:design deliver, independently of the development orchestrator. Use the designer role for artifact creation, never the code builder/reviewer. A human gives final visual/UI approval.
Start or resume
Resolve the requested complete ID through task identity, or select the highest-priority eligible ready design task using shared priority and selection and its ID tie-break: run the overview script from the product checkout with --track design --format json and take its recommendation, or report its reason when it is null. Never select a code task. Missing/invalid priority or ambiguous ready-task identity prevents automatic selection, not permission to guess or backfill. For new work, require a ready task whose log records independent definition review and developer approval to execute, and reviewer and approach in its header. Task fields follow the shared task record; when you block the task, put the reason and who must act in its log line. Explicit selection does not bypass these gates. Otherwise stop and return to /factory:design define, or point to /factory:migrate 0.6.0 for a task written before 0.6.0. Handle existing work as described below.
Acquire the task lock using storage and re-read priority, status, dependencies and approval evidence before changing the record. If eligibility or automatic ranking changed, release the lock and reassess. For Figma work, use the shared catalog and approved external file directly: do not create a Git branch, require a clean product tree, switch checkouts or commit records. Note the source design-system revision in the handoff if relevant, without touching unrelated product changes.
Only a mocked in-app prototype needs a product checkout. Require that checkout to be clean and resolve the base commit as project repository describes, recording the project settings first if they are missing. Never assume current HEAD is production or inherit another prototype branch. Create design/<full-id>-short-slug (for example design/DSGN-003-settings) from the resolved base SHA, using an isolated worktree when another task/track or concurrent session owns the checkout; never switch active work underneath it. Record branch, base and base_ref in the task's delivery header field; never copy task records into the prototype branch. Prototype branches hold only runnable prototype changes, not a design-record catalog, and are not production merge candidates.
For either approach, set status to building when starting approved new work, with the selected approach as the log line's reason.
For a building or reviewing task, reuse its recorded artifacts and, for a prototype, branch/base rather than creating another branch. A reviewing task awaits a human decision on the submitted revision: do not rebuild automatically. A blocked task needs the reason in its latest → blocked log line resolved and an explicit decision to resume; do not infer approval. If already done, report its existing result without rebuilding. Release the lock when waiting for human input or handing back; reacquire and re-read before resuming.
Recheck the selected artifact approach in the delivery session. If access is no longer available, block and ask for an approach change through /factory:design define, rather than silently changing an approved task.
Produce and gate
Use the delegate skill to start the designer role with the absolute task path and catalog root, external artifact target or prototype branch/base, this guide, and any specific gaps or human feedback. Do not pass your conversation. The designer:
- In Figma, creates designs in the selected file, using the available design system. Records exact file/frame links and names, plus a version reference or saved snapshot of the submitted revision.
- For a prototype, builds only enough UI to explore appearance and interactions, with mocked inputs and behavior rather than live integrations or real credentials. Reuses existing components, themes and typography where available. This is a throwaway design prototype, not a production implementation or tracer bullet.
- May use existing Storybook stories when helpful; installing Storybook is not a prerequisite.
- Checks the artifact against the task's acceptance criteria, records evidence, and prepares the review handoff in
$FACTORY_ROOT/designs/<full-id>-review.md(for exampleDSGN-003-review.md). Stores screenshots and design-only audit scripts/evidence there too. Commits only runnable prototype changes on the design branch, when that approach is selected. Does not commit records, change task status/log or grant human approval.
The design orchestrator checks artifact acceptance criteria and evidence before human review; final human approval is still pending at this gate. Verify linked Figma frames are present, or re-run the prototype's documented commands and inspect its routes. Re-run applicable automated checks. For Figma, inspect the external artifact revision; no Git diff or commit is required. For prototypes, ensure repository changes are committed, in scope and contain no factory records. In either approach, the designer must have no unresolved question. Send gaps back to the designer; after two failed gates, block and ask the developer. Do not treat missing artifact access as a passed check.
Human review
Set status to reviewing and record handoff and submitted in the task header. The handoff must include:
- Task identifier, summary, and exact submitted revision.
- Figma file/frame links and access requirements, or repository, branch, commit, installation/run commands and routes or Storybook story names.
- Where to inspect each required element, interaction and state, with limitations, mocked behavior and open design questions.
- A clear request for the named human to approve this revision or request changes.
Do not assume a local preview or unshared local branch is accessible. State remaining access steps explicitly; push or publish only when authorized. Screenshots and designer checks support review but cannot replace the human decision. No agent reviewer can grant final visual/UI approval.
Until explicit approval arrives, leave status reviewing and approval null, report the handoff and stop. Changes requested return to building, then gate and human review again; material scope changes return to draft and /factory:design define. Any changed artifact revision requires new human approval. After three human review rounds without approval, block and ask how to proceed.
Finish and development handoff
Only after explicit human approval of the submitted revision, record the approval header field. Check the acceptance criteria and save status done in the catalog without a commit. Release the task lock. Report artifact locations and evidence, including a design branch only for a prototype; add a delivery journal entry, including rounds, failed gates and friction, using journal. Do not merge the prototype into production.
Leave an approved-design handoff identifying the catalog-relative design task/handoff locations, exact Figma/prototype revision, and human approval evidence. Prototype branch/commit references identify the artifact, not the record location. For another clone or reviewer, arrange an explicit accessible export rather than claiming local paths are shared. Prompt the developer to run /factory:define for a separate code task if needed; do not launch the development orchestrator or create that task automatically. Once defined, set dev_task on the design task; the code task records the design in its implements field. Follow the priority handoff rules for new development or design follow-ups: propose priorities and reassess pending order without interrupting active work or granting execution approval. Development owns its own production branch, real integrations and code review.
Original Markdown, including metadata
# Design delivery Run under `/factory:design deliver`, independently of the development orchestrator. Use the designer role for artifact creation, never the code builder/reviewer. A human gives final visual/UI approval. ## Start or resume Resolve the requested complete ID through [task identity](../task-ids.md), or select the highest-priority eligible ready design task using [shared priority and selection](../task-priorities.md) and its ID tie-break: run the [overview script](../tasks/overview.mjs) from the product checkout with `--track design --format json` and take its `recommendation`, or report its `reason` when it is `null`. Never select a code task. Missing/invalid priority or ambiguous ready-task identity prevents automatic selection, not permission to guess or backfill. For new work, require a ready task whose log records independent definition review and developer approval to execute, and `reviewer` and `approach` in its header. Task fields follow the shared [task record](../task-record.md); when you block the task, put the reason and who must act in its log line. Explicit selection does not bypass these gates. Otherwise stop and return to `/factory:design define`, or point to `/factory:migrate 0.6.0` for a task written before 0.6.0. Handle existing work as described below. Acquire the task lock using [storage](../storage.md) and re-read priority, status, dependencies and approval evidence before changing the record. If eligibility or automatic ranking changed, release the lock and reassess. For Figma work, use the shared catalog and approved external file directly: do not create a Git branch, require a clean product tree, switch checkouts or commit records. Note the source design-system revision in the handoff if relevant, without touching unrelated product changes. Only a mocked in-app prototype needs a product checkout. Require that checkout to be clean and resolve the base commit as [project repository](../repository.md#resolve-the-delivery-base) describes, recording the project settings first if they are missing. Never assume current HEAD is production or inherit another prototype branch. Create `design/<full-id>-short-slug` (for example `design/DSGN-003-settings`) from the resolved base SHA, using an isolated worktree when another task/track or concurrent session owns the checkout; never switch active work underneath it. Record branch, base and `base_ref` in the task's `delivery` header field; never copy task records into the prototype branch. Prototype branches hold only runnable prototype changes, not a design-record catalog, and are not production merge candidates. For either approach, set status to building when starting approved new work, with the selected approach as the log line's reason. For a building or reviewing task, reuse its recorded artifacts and, for a prototype, branch/base rather than creating another branch. A reviewing task awaits a human decision on the submitted revision: do not rebuild automatically. A blocked task needs the reason in its latest `→ blocked` log line resolved and an explicit decision to resume; do not infer approval. If already done, report its existing result without rebuilding. Release the lock when waiting for human input or handing back; reacquire and re-read before resuming. Recheck the selected artifact approach in the delivery session. If access is no longer available, block and ask for an approach change through `/factory:design define`, rather than silently changing an approved task. ## Produce and gate Use the [delegate](../delegate/SKILL.md) skill to start the designer role with the absolute task path and catalog root, external artifact target or prototype branch/base, this guide, and any specific gaps or human feedback. Do not pass your conversation. The designer: - In Figma, creates designs in the selected file, using the available design system. Records exact file/frame links and names, plus a version reference or saved snapshot of the submitted revision. - For a prototype, builds only enough UI to explore appearance and interactions, with mocked inputs and behavior rather than live integrations or real credentials. Reuses existing components, themes and typography where available. This is a throwaway design prototype, not a production implementation or tracer bullet. - May use existing Storybook stories when helpful; installing Storybook is not a prerequisite. - Checks the artifact against the task's acceptance criteria, records evidence, and prepares the review handoff in `$FACTORY_ROOT/designs/<full-id>-review.md` (for example `DSGN-003-review.md`). Stores screenshots and design-only audit scripts/evidence there too. Commits only runnable prototype changes on the design branch, when that approach is selected. Does not commit records, change task status/log or grant human approval. The design orchestrator checks artifact acceptance criteria and evidence before human review; final human approval is still pending at this gate. Verify linked Figma frames are present, or re-run the prototype's documented commands and inspect its routes. Re-run applicable automated checks. For Figma, inspect the external artifact revision; no Git diff or commit is required. For prototypes, ensure repository changes are committed, in scope and contain no factory records. In either approach, the designer must have no unresolved question. Send gaps back to the designer; after two failed gates, block and ask the developer. Do not treat missing artifact access as a passed check. ## Human review Set status to reviewing and record `handoff` and `submitted` in the task header. The handoff must include: - Task identifier, summary, and exact submitted revision. - Figma file/frame links and access requirements, or repository, branch, commit, installation/run commands and routes or Storybook story names. - Where to inspect each required element, interaction and state, with limitations, mocked behavior and open design questions. - A clear request for the named human to approve this revision or request changes. Do not assume a local preview or unshared local branch is accessible. State remaining access steps explicitly; push or publish only when authorized. Screenshots and designer checks support review but cannot replace the human decision. No agent reviewer can grant final visual/UI approval. Until explicit approval arrives, leave status reviewing and `approval` null, report the handoff and stop. Changes requested return to building, then gate and human review again; material scope changes return to draft and `/factory:design define`. Any changed artifact revision requires new human approval. After three human review rounds without approval, block and ask how to proceed. ## Finish and development handoff Only after explicit human approval of the submitted revision, record the `approval` header field. Check the acceptance criteria and save status done in the catalog without a commit. Release the task lock. Report artifact locations and evidence, including a design branch only for a prototype; add a delivery journal entry, including rounds, failed gates and friction, using `journal`. Do not merge the prototype into production. Leave an approved-design handoff identifying the catalog-relative design task/handoff locations, exact Figma/prototype revision, and human approval evidence. Prototype branch/commit references identify the artifact, not the record location. For another clone or reviewer, arrange an explicit accessible export rather than claiming local paths are shared. Prompt the developer to run `/factory:define` for a separate code task if needed; do not launch the development orchestrator or create that task automatically. Once defined, set `dev_task` on the design task; the code task records the design in its `implements` field. Follow the [priority handoff rules](../task-priorities.md) for new development or design follow-ups: propose priorities and reassess pending order without interrupting active work or granting execution approval. Development owns its own production branch, real integrations and code review.