Design flow
Use when a spec needs customer-facing UX, visual direction, screen acceptance, design references, formal assets, Figma handoff, or design gates before build.From its SKILL.md
npx -y skills add KevinKE93/Dev_Agent_OPC --skill design-flowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
8.0 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it
Design Flow
Turn an approved spec into a build-ready design package. Use after
spec-driven-development and before build when the spec says the work touches
UI, visual direction, brand/KV, interaction states, motion, or any
customer-facing workflow where visual quality affects delivery. Skip design only
when the spec or project applicability clearly marks UI/design as not needed.
Operating Rules
- Think before committing: state assumptions, unclear points, alternatives, and trade-offs before choosing a direction.
- Keep it simple: produce only the artifacts needed for the current product scope, but do not skip required design gates.
- Modify precisely: keep process artifacts under
<project-name>/.dev-agent/and source output under the project root. - Work toward a verifiable target: every key screen must have acceptance criteria before build. Delegate formal visual-source rules to the design artifact reference and executable gates.
- Drafts, sketches, low-fidelity prototypes, and runtime screenshots are input evidence only. They cannot be the build target.
- Prefer high-fidelity HTML/CSS design packages for implementation handoff. Use JS or Lottie assets when motion must be reproduced.
- Generate new logo, app-icon, brand/KV, and high-quality bitmap assets only
through the
imagegenskill or an explicit Codex CLI image-generation path. Do not author SVG/HTML/canvas locally and render PNG for final identity assets.
Outputs
Save design artifacts under <project-name>/.dev-agent/design/:
DESIGN.mdVISUAL_SYSTEM.mdSCREEN_ACCEPTANCE.mdDESIGN_ARTIFACTS.mdDESIGN_IMAGE_DESCRIPTIONS.mdwhen required by the design artifact contractFIGMA_HANDOFF.mdwhen required by the Figma handoff contractREFERENCE_BOARD.mdwhen visual direction is delegated- approved HTML/CSS design packages under
design/approved/html/ - formal visual assets, brand/KV assets, logos/icons, and runtime element assets when required
- references, drafts, and mocks under their matching non-approved folders
Use dev-agent/templates/project/ for file templates. Use
dev-agent/references/design-artifacts.md and
dev-agent/references/figma-handoff.md for the detailed source contract.
Workflow
-
Read context
- Load the idea brief, product artifacts (
PRD.md,USER_STORIES.md,ACCEPTANCE.md,METRICS.md) when present, agent notes when present, the spec, project type, applicability flags, prior design artifacts, reference intake, and existing app screens when code exists. - Keep commands and paths inside
<project-name>/.
- Load the idea brief, product artifacts (
-
Run reference intake
- For customer-facing UI, run
bin/dev-flow reference-check <project-name> --required. - If references exist, extract concrete layout, navigation, component, typography, spacing, color, motion, density, and state patterns.
- If no reference exists and the user has not delegated visual direction, ask for examples before build.
- If the user delegates visual direction, create
REFERENCE_BOARD.mdand runbin/dev-flow reference-check <project-name> --delegated.
- For customer-facing UI, run
-
Define the UX problem
- Name the target user, primary job, success criteria, constraints, and what currently feels unclear, slow, risky, or unfinished.
-
Compare interaction approaches
- Present 2-4 plausible directions with trade-offs.
- Recommend one direction and explain why it reduces cognitive load, improves trust, or speeds up a real workflow.
-
Specify product structure
- Define information architecture, screen hierarchy, navigation, primary and secondary actions, permissions, confirmations, undo, and state model.
- For assistant products, separate deterministic decision logic from conversational expression unless the user approves the LLM as decision owner.
-
Specify platform and visual system
- Load
references/platform-ux-principles.mdwhen platform behavior matters. - Define palette, typography, spacing, icon direction, component rules, density, motion, accessibility, CSS token strategy, and forbidden visual patterns.
- Avoid generic AI aesthetics: purple-heavy gradients, decorative blobs, nested card stacks, and oversized hero layouts in utility products.
- Load
-
Define screen acceptance
- Derive canonical
SCREEN_ACCEPTANCE.mdheadings from the idea, PRD, user stories, acceptance criteria, spec, and interaction model. - For each screen or global surface, record
Requirement source:with the upstream artifact, story, acceptance criterion, or spec section that justifies it. - For each key screen, list content, states, breakpoints, actions, visual acceptance, accessibility acceptance, and design asset needs when relevant.
- Include empty, loading, error, success, disabled, selected, long-content, and narrow-screen states when applicable.
- Derive canonical
-
Decide whether formal design assets are needed
- Decide whether user-provided resources are build-ready: they need enough HTML/CSS, visual-system, state, asset, and motion detail for a model or engineer to reproduce the UI without guessing.
- If resources are insufficient, list the missing resources and route them to generation: visual-system and brand/KV direction, required screen images, HTML/CSS packages, CSS/JS or Lottie motion files when needed, and logo/app-icon sizes when product identity is in scope.
- For logo, app-icon, brand/KV, and high-quality bitmap asset generation,
load
imagegenor use the Codex CLI image-generation path explicitly. Save the resulting raster assets and recordimagegen://,gpt-image://, orgpt-image-2://provenance. - Do not create sketches or prototypes just to satisfy process.
- Satisfy
dev-agent/references/design-artifacts.mdwhen formal assets, AI-image design, runtime cut assets, or visual QA are in scope. - When Figma is used, satisfy
dev-agent/references/figma-handoff.mdand runbin/dev-flow figma-check <project-name>.
-
Produce design packages
- For each accepted screen and important state, create or collect a separate
HTML file under
.dev-agent/design/approved/html/with CSS resources that encode the visual system and responsive layout. Add JS or Lottie files only when motion is part of acceptance. - Use generated or uploaded images as visual targets and asset sources, but keep the HTML/CSS package as the implementation-readable handoff.
- When identity assets are required, provide logo or app-icon variants sized for the target platform from Image Gen/GPT Image outputs. Local SVG renders are drafts only and must not be treated as final PNG assets.
- For each accepted screen and important state, create or collect a separate
HTML file under
-
Record artifact coverage
- Update
DESIGN_ARTIFACTS.md,DESIGN_IMAGE_DESCRIPTIONS.md,FIGMA_HANDOFF.md, andASSET_MANIFEST.mdonly when the referenced contracts require them. - Keep
.dev-agent/tasks/IMPLEMENTATION_TRACE.mdaligned with the screens and states that build will implement.
- Update
-
Gate before build
- Update the spec if design changes product scope.
- Load
references/design-rubric.mdfor design self-review when useful. - Run
bin/dev-flow design-check <project-name>before build.
Verification
- Customer-facing UI has references or explicit delegated visual direction.
DESIGN.md,VISUAL_SYSTEM.md, andSCREEN_ACCEPTANCE.mdexist.- Every
SCREEN_ACCEPTANCE.mdsection names its upstream requirement source. - Formal design artifacts satisfy
dev-agent/references/design-artifacts.md. - Required screen/state HTML/CSS packages exist and are mapped before build.
- Figma handoff satisfies
dev-agent/references/figma-handoff.mdwhen used. - Interaction alternatives, recommendation, platform rules, accessibility, key screens, and states are explicit.
bin/dev-flow design-check <project-name>passes before build.
What ships with it: 4 files
3.5 KB alongside SKILL.md
references/
- design-artifacts.md160 B
- design-rubric.md1.4 KB
- figma-handoff.md153 B
- platform-ux-principles.md1.8 KB