/morning-star-harness:mstar-design-mdfrom morning-star-harness
Creates, audits, and maintains DESIGN.md design system specs with design tokens, three-level completeness checklists, and light/dark dual themes. Activates when users mention DESIGN.md, design tokens, or design system during UI implementation or review.
Ships in morning-star-harness. 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.
Read when SKILL.md points to them.
Read mstar-harness-core first; load only the action-specific prerequisites below.
| 你还可能要 Read | 何时 |
|---|---|
mstar-phase-gates | Prepare gate / DESIGN.md readiness |
mstar-conventions | {HARNESS_DIR} / {SPECS_DIR} resolution |
mstar-roles | role boundaries / PM acceptance |
mstar-coding-behavior | implementation constraints |
mstar-design-system | baseline convergence / parity / triage |
| Topic | See |
|---|---|
| Normative spec: section definitions, token naming, light/dark rules, YAML frontmatter structure, completeness levels | references/design-md-spec.md |
| Three-level completeness checklist (MVP / Standard / Production) | references/completeness-checklist.md |
| Default composition rules for the body §2.10: nesting, explanatory copy, accent area, icon framing, intent-reveal, menus | references/layout-discipline.md |
| Full template with YAML frontmatter and Level 2/3 placeholders | templates/DESIGN.md.template |
| Dark theme template (same token names, different values) | templates/DESIGN.dark.md.template |
Precedence. When two artefacts in this skill disagree, references/design-md-spec.md wins on rules and templates/DESIGN.md.template wins on shape (section order, placeholder layout); a template that contradicts a stated rule is the defect.
YAML frontmatter is the SSOT for token values. Colors, typography, spacing, rounded, and components live in the frontmatter as structured, machine-readable data. The Markdown body is supplementary documentation (rules, intent, usage guidance). When reading DESIGN.md, always parse the YAML frontmatter first; when writing, keep frontmatter and body in sync.
Out of scope: rendered UI preview tooling outside the repo; frontend implementation that consumes DESIGN.md tokens (use @frontend-dev / @fullstack-dev); QC review verdict rules (→ mstar-review-qc).
DESIGN.md (human + agent visible, aligns with AGENTS.md)DESIGN.dark.md (same token names, different values)DESIGN.md is a project-level design contract, not a harness internal artifact. It lives beside README.md and AGENTS.md.When the repository also ships a prototype, this document is a summary of that prototype, not a second source:
DESIGN.md states in prose what it establishes. On conflict the prototype wins — unless the prototype is silent, in which case the decision and its reason belong in DESIGN.md. An unrecorded silence becomes a guess in the next implementation.baseline → fixture → document. Change the prototype, rerun the generator that derives the machine-readable fixture, then bring DESIGN.md in line. Hand-editing the fixture, or iterating in DESIGN.md and back-filling the prototype, is the reverse direction and a defect regardless of which side turns out to be right.0, which reads as a pass forever.DESIGN.md lags both. That direction is a review obligation: the reviewer compares the document against the fixture, because no gate will.Converging an implementation onto that baseline — baseline kinds, parity layers, defect / decision / phantom triage — → skill mstar-design-system.
@architect (primary) + @product-manager (requirements)@architect owns DESIGN.md content — token selection, naming, completeness level decisions. @product-manager provides design intent: brand identity, target audience, must-have UI patterns, accessibility requirements.
@project-managerIn Prepare phase, PM decides whether the project needs a DESIGN.md. If yes, dispatches to @architect with product requirements from @product-manager. PM checks DESIGN.md exists and meets the assigned completeness level before plan(locked).
@frontend-dev / @fullstack-dev — read DESIGN.md before implementing styled components; map tokens to CSS/theme variables@qc-specialist — verify UI implementation aligns with DESIGN.md tokensproject-manager — map relevant supplied visual/design evidence to the ACs through mstar-roles/references/project-manager/acceptance.md; no automatic real-environment gateDESIGN.md is a Prepare-stage artifact (like spec). It must be created and reviewed before plan(locked) for any plan that includes UI work.
@architect creates or updates DESIGN.md; @product-manager reviews design intent alignment@product-manager signed offFor hotfix or plans with no UI changes, DESIGN.md check may be skipped.
Level definitions and the pass rule live in references/design-md-spec.md §7; the itemized checks live in references/completeness-checklist.md § Level 1–3. Neither is restated here.
The template carries all three levels' keys, with Level 2 and 3 commented out behind <!-- LEVEL2_PLACEHOLDER: ... --> / <!-- LEVEL3_PLACEHOLDER: ... --> markers that say when to activate them (spec §5); an audit detects these markers and recommends the upgrade.
references/design-md-spec.md for section definitions and YAML frontmatter structuretemplates/DESIGN.md.template to {PROJECT_ROOT}/DESIGN.md — the template includes the full YAML frontmatter skeleton@product-manager for brand colors, typography preferences, must-have patterns"[placeholder]" values with concrete hex/px values)DESIGN.md and DESIGN.dark.md (if exists) — parse the YAML frontmatter for structured token valuesreferences/completeness-checklist.mdLEVEL2_PLACEHOLDER, LEVEL3_PLACEHOLDER in both frontmatter comments and body HTML comments)<!-- COMPLETENESS_LEVEL: 1 — last audited YYYY-MM-DD -->) if changedDESIGN.md to extract token namestemplates/DESIGN.dark.md.template to {PROJECT_ROOT}/DESIGN.dark.mdreferences/design-md-spec.md § Light/Dark rules)Before writing styled UI code:
DESIGN.md (and DESIGN.dark.md if exists){colors.X}, {typography.X}, {rounded.X} references by tracing back to the corresponding frontmatter keysDual theme uses same token names, different values across two files:
DESIGN.md DESIGN.dark.md
----------- --------------
gray-100: #fff gray-100: #111
gray-1000: #000 gray-1000: #eee
references/design-md-spec.md § Light/Dark rules defines the contractEngine check: run
mstar design-md validate <dir>(enginevalidateDesignTokenFrontmatter,assertLightDarkParity,completenessLevel) to validate the token frontmatter schema above, the light/dark parity ofDESIGN.dark.md(same token names, different values), and the achieved completeness level. Onfail, do not proceed — fix and re-run. Contract →mstar-use-cli/references/checks-and-lints.md§ Engine check callouts.
references/design-md-spec.md — open when writing, validating or auditing a DESIGN.md format and token rules; normative spec: section definitions, token naming conventions, light/dark contractreferences/completeness-checklist.md — open when auditing a DESIGN.md level by level; three-level audit checklist with detailed criteria per levelTemplates (this skill):
templates/DESIGN.md.template — full template including all Level 1-3 sections with placeholder commentstemplates/DESIGN.dark.md.template — dark theme template with same token names, different valuesWhat SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
29 skills in this plugin
/drtDirect work entry: one View completes one bounded unit and ends, with no PM, plan row, Done, QC tri-review or delivery chain. Use when the user wants a bounded request executed directly (audit, review, cleanup, governance pass, docs, harness text) without iteration or multi-plan orchestration./grill-meInterview the user relentlessly about a plan or design until shared understanding, resolving each decision branch. Use when a plan or design needs stress-testing, or the user says 'grill me'./mstar-artifactsPlan artifacts: main plans, durable review summaries, QC/PM Acceptance bundles, workflow state/config/progress/evidence, issue capture, residual severity. Read when authoring or mapping them./mstar-auditAudit or survey a codebase into an evidence-backed, prioritized review report (read-only): bugs, security, perf, test gaps, tech debt, DX, a PR/branch/diff (`pr` variant), test-suite audit, a `skills/` corpus stocktake — is the skill corpus redundant, which skills overlap, what does it cost always-loaded (`skills` variant; read-only, proposes verdicts, never edits a skill)./mstar-branch-worktreeBranch authorization, control/delivery/source checkout isolation, L1/L2 writable-task isolation, QC and PM Acceptance checkout alignment, guarded worktree/branch cleanup after merge./mstar-coding-behaviorUse for non-trivial implementation, debugging, refactoring or code review in any project: requirement drift, speculative complexity, agent-facing interfaces. Not workflow or role selection.Other plugins' skills for the same job