design
Canonical repo-local DESIGN.md workflow for product, UI/UX, and frontend decision source of truth
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Canonical repo-local DESIGN.md workflow for product, UI/UX, and frontend decision source of truth
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a regression-tests-first, smell-by-smell deslop/refactor workflow that preserves behavior and raises signal quality. Use when the user asks to "cleanup", "refactor", "deslop", or when follow-up code has duplicates, dead code, weak boundaries, or fallback-like slop.
Run read-only deep repository analysis and return a ranked synthesis with explicit confidence, concrete file references, and clear evidence-vs-inference boundaries. Use when a user says "analyze", "investigate", "why does", "what's causing", or needs grounded cross-file explanation before any changes are proposed.
Deprecated compatibility shim for Claude advisor requests. Use `ask` with the claude backend instead.
Deprecated compatibility shim for Gemini advisor requests. Use `ask` with the gemini backend instead.
Ask a locally installed external advisor CLI (Claude or Gemini) for focused questions, reviews, brainstorming, or second opinions, and capture a reusable artifact. Use when the user wants a Claude/Gemini second opinion, "ask claude", or "ask gemini".
Strict autonomous delivery loop that runs deep-interview, ralplan, ultragoal, code-review, and ultraqa in order with automatic re-planning when gates are not clean. Use on "autopilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an…".
| name | design |
| category | planning |
| status | active |
| core | true |
| description | Canonical repo-local DESIGN.md workflow for product, UI/UX, and frontend decision source of truth |
| agent_created | true |
| triggers | ["design","design direction","UX guidance","frontend planning","design system","create DESIGN.md","refresh DESIGN.md"] |
Ported from oh-my-codex
design. OMX runtime conventions ($macroinvocation,omxCLI,.omx/state directory) are replaced with WorkBuddy idioms (Skill tool, Agent tool, task list,.workbuddy/memory).
Use the design skill when product, UI/UX, frontend, or design-system decisions need a durable
source of truth in the repository. This skill discovers existing design context, interviews for
missing product/design information, and creates or refreshes repo-local DESIGN.md so future
UI/UX/frontend work is grounded instead of improvised.
Make repo-local DESIGN.md the source of truth and canonical design contract for the current repository:
existing repo evidence -> missing-context interview -> create/refresh DESIGN.md -> use DESIGN.md for UI/UX/frontend decisions.
The output is not a pixel-matching loop and not a one-off visual critique. It is the maintained design brief/checklist that implementation, review, and future visual work should cite.
DESIGN.md created or refreshed before execution or implementation work proceeds.visual-ralph skill if available) for that.design owns the durable repo design source of truth: product goals, users, IA, visual language, components, accessibility, constraints, and open questions in DESIGN.md.
A visual-reference implementation loop owns implementation against an approved generated/static/live-URL visual reference, with screenshot capture and pixel-diff evidence. It may read DESIGN.md, and it may leave design-system artifacts behind, but it does not replace the DESIGN.md discovery/interview/refresh workflow.
If both are needed, run design first to establish the design contract, then run the visual-reference loop only after the visual reference/baseline is approved.
Inspect the repository before writing guidance. Look for:
DESIGN.md, docs/design*, docs/ux*, docs/frontend*, README.md, product specs, PRDs, and issue notes..omw/visual-ralph/* references.Record evidence with file paths. Distinguish observed facts from design inferences.
Ask concise questions only when repo evidence cannot answer design-critical context. Prefer one focused round that closes the biggest gaps, such as:
If the user wants autonomous progress or cannot answer, create DESIGN.md with explicit assumptions and open questions instead of blocking.
DESIGN.mdUse the structure below. Preserve useful existing content, remove contradictions, and mark unknowns as open questions. Keep it actionable for implementers and reviewers.
DESIGN.md structure/checklist# Design
## Source of truth
- Status: Draft | Active | Needs refresh
- Last refreshed: YYYY-MM-DD
- Primary product surfaces:
- Evidence reviewed:
## Brand
- Personality:
- Trust signals:
- Avoid:
## Product goals
- Goals:
- Non-goals:
- Success signals:
## Personas and jobs
- Primary personas:
- User jobs:
- Key contexts of use:
## Information architecture
- Primary navigation:
- Core routes/screens:
- Content hierarchy:
## Design principles
- Principle 1:
- Principle 2:
- Tradeoffs:
## Visual language
- Color:
- Typography:
- Spacing/layout rhythm:
- Shape/radius/elevation:
- Motion:
- Imagery/iconography:
## Components
- Existing components to reuse:
- New/changed components:
- Variants and states:
- Token/component ownership:
## Accessibility
- Target standard:
- Keyboard/focus behavior:
- Contrast/readability:
- Screen-reader semantics:
- Reduced motion and sensory considerations:
## Responsive behavior
- Supported breakpoints/devices:
- Layout adaptations:
- Touch/hover differences:
## Interaction states
- Loading:
- Empty:
- Error:
- Success:
- Disabled:
- Offline/slow network, if applicable:
## Content voice
- Tone:
- Terminology:
- Microcopy rules:
## Implementation constraints
- Framework/styling system:
- Design-token constraints:
- Performance constraints:
- Compatibility constraints:
- Test/screenshot expectations:
## Open questions
- [ ] Question / owner / impact
DESIGN.md as the decision contractFor UI/UX/frontend work after the refresh:
DESIGN.md sections before making design choices.DESIGN.md or add an open question before proceeding.DESIGN.md sections, repo evidence, and acceptance criteria (spawn an Agent or use the team skill for parallel lanes).DESIGN.md is supporting context, not the visual verdict target.Do not declare the design workflow complete until:
DESIGN.md open questions.DESIGN.md exists at the repo root and contains all required checklist sections.DESIGN.md rather than relying on unstated preferences.DESIGN.md governance.