/claude-code-sdlc:design-foundation [focus]from claude-code-sdlc
Generates a .claude/rules/design.md design declaration file by grounding in the product's subject, deriving a compact token system (colors, typography, motion, spacing), and self-checking against defaults.
Ships in claude-code-sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate .claude/rules/design.md — the project's design declaration. The harness ships the frame; this skill derives the project's own taste from its subject and writes it down, so every later UI slice extends one declared system instead of improvising a new one.
$focus (also available as $ARGUMENTS) optionally names a surface, route, or area to prioritize during grounding. When absent, ground the whole product.
Two paths reach this skill, and they differ in exactly one behavior:
/design-foundation directly. AskUserQuestion is available for grounding gaps./bootstrap-feature — the pipeline reached this skill mid-run with nobody watching. Never call AskUserQuestion here, and never stall waiting for an answer. Degrade to best-effort inference from the repository, and for anything that cannot be inferred write an explicitly labeled placeholder into the generated file — e.g. TODO(design-foundation): confirm the primary audience. An unattended run always completes.If the invocation path cannot be positively determined, treat the run as unattended — ambiguity resolves to the path that cannot stall.
Read the repository before asking anyone anything:
From these, state: the concrete product, its audience, and, for each key surface, the single job that surface does. The subject's own world — its materials, instruments, vernacular — is where distinctive design choices come from; a generic template is where they go to die.
Ask via AskUserQuestion ONLY what cannot be inferred from the repository, and ONLY on the standalone path (see Invocation Context). Never ask a question the repository already answers.
Derive a compact system, every token named and justified by the grounding:
Existing tokens are the source of truth. When the project already declares tokens — a globals.css, a Tailwind theme/config, a design-tokens file — document THOSE as the system and extend only where a genuine gap exists; inventing a parallel system beside them is a defect, not a contribution. Where existing UI is generic, record that as a finding in the report; do not touch application code — the only file this skill writes is .claude/rules/design.md.
For every derived choice, ask: would this choice fit any similar product equally well? If yes, it is a default, not a decision — revise it until it could only belong to this subject, and state in the report what this pass changed and why. This is a judgment test, not a ban-list: no specific color or font is forbidden; interchangeability is the defect.
Write .claude/rules/design.md respecting the template's section shape (mirrored from the harness's templates/rules/design.md): Design System Source of Truth, Component Library, Typography, Motion Tokens, Aesthetic Direction, the optional project-authored Ban-List, Preview, and the optional AI Interface Patterns section (pattern vocabulary only, never code). Fill what grounding and derivation produced; leave what only the project can supply — the ## Preview launch command above all — as a labeled TODO scaffold rather than a guess.
Re-run on an existing design.md: read the existing file first, then write the complete revised file — carrying forward every retained section — and report the delta: what was added, what changed, what was kept. Never silently overwrite an existing declaration.
Close with a short report: the grounding (product, audience, surface jobs), the derived tokens with one-line justifications, what the self-check changed, and any findings (generic existing UI, gaps left as TODO).
.claude/rules/design.md. Application code, docs, and configs are read, never modified.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub koroqe/claude-code-sdlc --plugin claude-code-sdlc8 skills in this plugin
/bootstrap-featureCommand: Bootstrap FeatureRun the documentation phase of the SDLC pipeline for a feature — PRD, use cases, architecture review, QA test cases, implementation plan, feature branch and scratchpad. Produces no code./context-refreshCommand: Context RefreshRebuild session context from the scratchpad after compaction or when resuming work — restores current feature, branch, wave and slice progress, and reports context health./develop-featureCommand: Develop FeatureAutonomously implement a complete feature from request to merge-ready — documentation phase, wave-based TDD implementation, then all quality gates, without stopping for human input./implement-sliceCommand: Implement SliceImplement the next smallest slice from the current plan using TDD — tests first, then code, then verification, then an atomic commit. Reads the plan from the scratchpad./merge-readyCommand: Merge ReadyRun all quality gates before merge — git hygiene, documentation completeness, code review, security audit, build, E2E, goal-backward verification, doc accuracy and UI/UX — then write the changelog entry./sdlc-fastCommand: SDLC Fast (Override)Explicit developer override — bypass Phase 0 Triage entirely and run the fast-tier (single trivial edit) execution path directly against the supplied description. FR-2 escalation still applies once running, so Agent is granted deliberately.Other plugins' skills for the same job