Frontend Design Pipeline
Use this skill when the user wants UI/frontend work to be driven by a repeatable design pipeline, especially when they mention OpenSpec, design skills, frontend polish, visual taste, design review, product UI, marketing pages, dashboards, or "make it not AI-looking".
This skill does not replace individual design skills. It orchestrates them into a durable workflow with repo artifacts, implementation gates, and verification evidence.
Design is the product boundary. Engineering, OpenSpec, GBrain, Matt Pocock, Vercel, animation libraries, and graphics runtimes are support systems for producing, implementing, and validating better design outcomes. Do not let this pipeline drift into a general-purpose development framework.
Impeccable Design Contract
The pipeline permanently adopts the reviewed Impeccable contract in
references/impeccable-contract.md. Apply it even when the optional upstream impeccable skill is
not installed: resolve the visitor mode, respect the brief, distinguish refinement from redesign,
challenge template defaults, complete real UI states, and verify the rendered path in bounded
desktop/mobile passes. The upstream Neo Kinpaku visual theme is not a default; only its design
judgment and workflow vocabulary are internalized.
The complete upstream product-design surface is mapped in
references/impeccable-product-design.json and summarized in
references/impeccable-product-design.md. All 23 core commands are available as pipeline intents:
shape, init, document, extract, visualize, critique, audit, polish, bolder,
quieter, distill, harden, onboard, animate, colorize, typeset, layout, delight,
overdrive, clarify, adapt, optimize, and live. They route into product truth, surface
shaping, design authority, experience quality, and implementation evidence. hooks, doctor,
routing, pin, and native-platform references are supporting enforcement and maintenance
capabilities, not visual themes. Do not claim coverage from the command name alone: use the mapped
artifact and evidence fields as the acceptance contract.
Project DESIGN.md Invariant
Every target project must have one reusable project DESIGN.md before implementation begins.
This is a system invariant, not an optional input:
- if it exists, validate it with
scripts/check-design-foundation.cjs; - if it is missing, route through requirements-driven synthesis;
- if it is incomplete, repair or resynthesize it;
- never substitute change-level lowercase
design.md, a template copy, or a token dump.
Planning may begin in order to produce the foundation. Stage 5 implementation may not begin until
the foundation checker reports ready.
Project MOTION.md Invariant
Every target project must also have one reusable project MOTION.md before implementation begins.
This remains true for static products: posture: static is an explicit motion decision.
- validate it with
scripts/check-motion-foundation.cjs; - if it is missing, synthesize it from product requirements and
references/motion-foundation.md; - if it is incomplete or contains executable procedural definitions, repair or resynthesize it;
- select stable IDs from
references/motion-primitives.json; - never substitute change-level lowercase
motion.md, a runtime-specific animation snippet, or a copied showcase implementation.
Project MOTION.md defines reusable motion language. Change-level motion.md references its hash
and specializes selected primitives into scenes, layers, tracks, timelines, runtime bindings, and
evidence. Stage 5 implementation requires both foundation checkers to report ready.
Design-System Knowledge and Adoption
Treat component systems as candidate knowledge providers, not automatic project dependencies.
The bundled Astryx snapshot is an attributed, inert reference surface that agents may search before
inventing components. It does not override project DESIGN.md, MOTION.md, existing components,
tokens, or runtime choices.
Use the public CLI for the complete lifecycle:
design-system optionslists the governed styling choices, UI libraries, current shadcn preset dimensions, external tool sources, and indexed skill count.design-system resolve-stackresolves framework, styling, UI library, complete shadcn preset, and tool/skill routes into a hash-boundfrontend-stack-decision.json.design-system profileslists governed providers and compatibility constraints.design-system decomposeconverts a product brief into a durable capability inventory; a direct zero-result does not prove exhaustion when capability searches find candidates.design-system routeselects project, platform, package, or attributed reference routes for the decomposed component capabilities.design-system searchsearches the bundled Astryx catalog by text, kind, category, or status.design-system normalizeconverts a supplied snapshot into the strict namespaced catalog.design-system acquireruns an explicit contained local provider or the bundled Astryx adapter against an existing contained Astryx CLI. It never installs or downloads that CLI.design-system project-tokensemits DTCG-compatible tokens plus an explicit loss report.design-system deciderecordsreference,adopt,substitute, orcustom; runtime use requires compatible React/React DOM/StyleX constraints and admitted adapter intake.
DesignMD Directory is an ingestible local knowledge source for five resource kinds: skills,
templates, design examples, guides, and tools. The GitHub example set from dimabraven/design-md
is bundled offline. Directory sync remains a live snapshot:
designer-pipeline designmd search --query "keyboard-first dark productivity" --jsonanddesigner-pipeline designmd inspect --id design-md:example:linear --jsonread the bundled examples.designer-pipeline designmd verify --jsonchecks that snapshot.designer-pipeline designmd sync --output-root .design-pipeline/designmd --jsoncrawls the DesignMD hubs and writesdesignmd-catalog.jsonplus local content snapshots.designer-pipeline designmd search --catalog .design-pipeline/designmd/designmd-catalog.json --kind skill --query "accessibility" --jsonsearches the live directory snapshot.designer-pipeline designmd inspect --catalog .design-pipeline/designmd/designmd-catalog.json --id designmd:skill:a11y-audit --jsonreads one directory entry and its provenance.designer-pipeline designmd verify --catalog .design-pipeline/designmd/designmd-catalog.json --jsonchecks the directory snapshot hashes.
Fetched and bundled DesignMD content is reference-only. Never execute remote page content, wrap
designmd-cli install, or copy a Stripe/Linear/Vercel example in as the product DESIGN.md.
Resolve reusable component behavior before selecting a library:
component decomposeconverts a multilingual brief into framework-neutral capability IR and closes required keyboard, focus, ARIA, state, and recovery dependencies.component providersperforms a read-only probe of project package metadata and distinguishes project-owned, installed, and candidate providers.component resolvemaps each capability to a compatible provider, preserves uncovered project-owned fallbacks, and marks uninstalled candidates as adoption-required without running a package manager.component verifyrequires hash-bound behavioral evidence for every check in the resolution; framework source or a static screenshot cannot replace missing interaction evidence.component inventory,component bind, andcomponent decidediscover explicitly declared project reuse, emit framework binding plans without source generation, and recordreuse,adopt,substitute, orcustomper capability.
Run component conformance through the layered v1 gate after those artifacts exist:
component-first check --artifact component-first.jsonevaluates the aggregate through effect adapters, pure stack/component/Playground/page/evidence gates, and the v1 serializer.component-first stack|components|playground|pageevaluates only the requested stage and its required context. Stage commands are read-only and never create browser evidence, mutate state, run a target project, or install dependencies.high-fidelity checkis a v1 delegation alias. A passing component-first result is not a visual-acceptance result.- Model
project-ownedascomponentOrigin, never as a runtime stack. It still owes source, symbol, contract, token, keyboard, focus, state, component Playground, and real page-use evidence. - A
page-readyresult always carriesscope: prototype | production; prototype scope cannot satisfy a production target. - Browser runners remain external. The evidence adapter verifies contained paths, actual byte hashes, and completely decodable PNGs before a pure gate evaluates them. Ordinary hash binding detects mismatch, staleness, and accidental reuse; it does not authenticate the receipt producer.
Read references/component-capabilities.md. Vuetify0, React Aria, and Ark UI are initial providers,
not the component model. Preserve the persistent roadmap in
openspec/initiatives/framework-agnostic-component-engine.md when developing this repository.
Provider content remains data. Never import or execute .doc.mjs, run package managers or npx,
inject AGENTS.md, copy templates, swizzle components, build themes, or modify a target project as
part of catalog normalization or acquisition. Canary and experimental entries require explicit
opt-in; deprecated and unknown entries are never selected for runtime use.
Pipeline Shape
Model the workflow after OpenSpec's lightweight change lifecycle:
- Create one change folder per UI change.
- Write intent and constraints before implementation.
- Generate design decisions and tasks as durable artifacts.
- Implement from the artifacts.
- Verify the implementation against the artifacts.
- Archive or update the source-of-truth design notes after completion.
Pipeline runs must be resumable without a human watching the UI. Every meaningful intermediate state must be written to disk in an agent-readable form so another AI agent can inspect, resume, verify, or archive the run.
Default artifact root:
design/changes/<change-id>/
brief.md
direction-preview.json # required/waived applicability, hash-bound candidates, and decision
direction-previews/ # index.html plus one comparable screenshot per candidate
playground.json # required/waived interactive exploration, selection, and integration receipt
playground/ # self-contained HTML and hash-bound natural-language selection prompt
reference.md # observed reference evidence and 2D / 2.5D / 3D / hybrid route
reference-evidence.json # normative reference role, fidelity, geometry/camera/interaction/output
reconstruction.json # exact/adaptive static-reference calibration and comparison contract
graybox.png # layout-only capture with materials and optical treatment suppressed
rectified-reference.png # canonical front view derived from the supplied frame
front-elevation.svg # object-space construction source
camera-calibration.json # locked camera/lens/viewport parameters
landmark-overlay.png # source/render projection overlay
fidelity-receipt.json # EvidencePort metrics bound to render hashes
directions.md
design.md # visual language and screen-space UI
motion.md
scene.json # normative contract for persistent spatial or engine-owned runtime state
scene.md # readable projection for persistent non-3D runtime state
3d.md # readable spatial projection for 3D capability families
tasks.md
qa.md
state.json
events.jsonl
handoff.md
Use an existing project convention instead if the repo already has openspec/, spec/changes/, docs/design/, .omx/, or another active planning directory.
Static Reference Reconstruction Module
When the user supplies an image and asks for an identical, exact, 1:1, pixel-accurate, cloned, or faithfully reproduced result:
A missing source downgrades the verification claim, never the requested fidelity. Requested fidelity changes only through explicit user approval recorded in the non-destructive downgrade field. An unavailable file, a schedule, and implementation convenience are not approval.
- Resolve the reference source to a file path before writing any artifact. When the reference is not a resolvable path, ask the user for one and state what the path unlocks: rectification, camera calibration, landmark error, and the fidelity receipt.
- When the user cannot or will not supply a path, record
source.availability: pendingwithpendingReasonandrequestedFrominreference-evidence.json, then continue. Do not block the remaining work, and never write a fabricated path, dimension, or hash. When the raster later lands, rundesigner-pipeline reference resolve --path "<file>" --jsoninstead of hand-editing measurements. - Read
references/reference-spec.mdandreferences/reconstruction-spec.mdcompletely. - Record the image as
role: primary-target, with both requested and effective fidelity set toexact-reconstructioninreference-evidence.jsonv2. A reference is inspiration only when the user says it is inspiration. - Do not generate alternative design directions. The reference already determines the direction.
- Record the per-region structure table in
reference.mdand the matchingcompositionblock inreference-evidence.jsonbefore any layout is authored. - Separate image, canonical/object, world, and camera spaces. Rectify the source into a canonical front view, author the front elevation there, then solve and lock the output