Logo: Mstar Design Md

Mstar Design Md

Communautéit
btspoony
mstar-design-md

Designsystem-Spezifikatioune fir DESIGN.md: Design Tokens erstellen, iwwerpréiwen a pflegen; dräistufeg Vollstännegkeetschecklëscht; light/dark-Duebelthema (DESIGN.dark.md). Liesen, wann de Benotzer DESIGN.md / design tokens / design system ernimmt oder wann Dir eng UI implementéiert oder iwwerpréift.

Add to TypingMind

Iwwersiicht

Editeurbtspoony
Repositorymstar-harness
Skill-Nummmstar-design-md
Stären
67
Forks
4
Matgeliwwert Dateien
5
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    btspoony huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Mstar Design Md an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-design-md
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/btspoony/mstar-harness.git /tmp/mstar-harness
mkdir -p .claude/skills
cp -r /tmp/mstar-harness/skills/mstar-design-md .claude/skills/mstar-design-md
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Mstar Design Md an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Mstar Design Md automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Mstar Design Md net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Load order

Before first Read of this skill: Read mstar-harness-core (SKILL.md). For Prepare phase integration and gate rules, read mstar-phase-gates. For plan directory paths ({HARNESS_DIR}, {SPECS_DIR}), read mstar-conventions. On conflict, mstar-harness-core wins.

你还可能要 Read何时
mstar-phase-gatesPrepare 阶段判定 gate、何时 DESIGN.md 必须就绪
mstar-conventions{HARNESS_DIR} / {SPECS_DIR} 路径解析
mstar-roles@architect / @product-manager / @frontend-dev / @qc-specialist / @qa-engineer 角色职责边界
mstar-coding-behavior实现角色消费 DESIGN.md 前的通用编码约束
mstar-design-system一个实现需要收敛到既有 baseline(原型 / 设计导出 / 既有产品标记 / 书面契约)时:baseline 定位与机器化、三层 parity、defect/decision/phantom 分诊、coverage 证据

Scope (DESIGN.md lifecycle)

TopicSee
Normative spec: section definitions, token naming, light/dark rules, YAML frontmatter structurereferences/design-md-spec.md
Three-level completeness checklist (MVP / Standard / Production)references/completeness-checklist.md
Vercel Geist DESIGN.md as annotated referencereferences/vercel-example.md
Full template with YAML frontmatter and Level 2/3 placeholderstemplates/DESIGN.md.template
Dark theme template (same token names, different values)templates/DESIGN.dark.md.template

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).

Location

  • Primary: project root DESIGN.md (human + agent visible, aligns with AGENTS.md)
  • Dark theme: project root 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.

Prototype vs document

When the repository also ships a prototype, this document is a summary of that prototype, not a second source:

  • Authority. The prototype is the design; 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.
  • One-directional sync. 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.
  • The fixture must be a tracked file derived from a tracked source. A deriver or comparator that reads a gitignored working path at runtime has no baseline: on a clean checkout it fails, and in the degraded mode it warns and exits 0, which reads as a pass forever.
  • A lagging document fails nothing. A fixture that lags the prototype fails its check; nothing fails when 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.

Role lifecycle

Creator: @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.

Orchestrator: @project-manager

In 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).

Consumers

  • @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 tokens
  • @qa-engineer — verify visual output matches design spec when QA gate: mandatory

Phase gate integration

DESIGN.md is a Prepare-stage artifact (like spec). It must be created and reviewed before plan(locked) for any plan that includes UI work.

  1. PM includes "DESIGN.md creation/audit" in Prepare tracking checklist when the plan involves UI
  2. @architect creates or updates DESIGN.md; @product-manager reviews design intent alignment
  3. PM gates on: DESIGN.md exists, meets completeness level declared in plan, @product-manager signed off

For hotfix or plans with no UI changes, DESIGN.md check may be skipped.

Completeness levels(Evidence)

DESIGN.md supports three levels, each with built-in upgrade path:

  1. Level 1 — MVP (minimal, prevents guesswork): palette, base typography, spacing scale
  2. Level 2 — Standard (consistent components): full token scales, breakpoints, component tokens (Button, Input)
  3. Level 3 — Production (complete design system): dual theme, elevation, motion, shapes, component library, voice

The template includes all levels; Level 2 and 3 sections are commented out with <!-- LEVEL2_PLACEHOLDER: ... --> markers that explain when to activate them. The audit workflow detects these placeholders and can recommend upgrade.

Full checklist → references/completeness-checklist.md.

Workflows

Workflow 1: Create DESIGN.md (Prepare phase)

  1. Read references/design-md-spec.md for section definitions and YAML frontmatter structure
  2. Copy templates/DESIGN.md.template to {PROJECT_ROOT}/DESIGN.md — the template includes the full YAML frontmatter skeleton
  3. Interview @product-manager for brand colors, typography preferences, must-have patterns
  4. Fill Level 1 frontmatter tokens (uncomment and replace "[placeholder]" values with concrete hex/px values)
  5. If plan requires Level 2+ out of the gate, uncomment and fill those sections too
  6. Update the body prose to match the frontmatter values (target audience, aesthetic principles, rhythm rules)
  7. Run the completeness audit workflow below to confirm level
  8. Report to PM: path created, level achieved, what's needed for next level

Workflow 2: Audit DESIGN.md completeness

  1. Read DESIGN.md and DESIGN.dark.md (if exists) — parse the YAML frontmatter for structured token values
  2. Load references/completeness-checklist.md
  3. Check each checklist item; note gaps in both frontmatter (missing/uncommented keys, placeholder values) and body (missing rules/documentation)
  4. Report:
    • Current completeness level
    • Gaps preventing next level (frontmatter gaps vs. body gaps, tagged separately)
    • Presence of upgrade placeholders (LEVEL2_PLACEHOLDER, LEVEL3_PLACEHOLDER in both frontmatter comments and body HTML comments)
    • Recommendation: whether to upgrade now or defer
  5. Update DESIGN.md level tag (e.g., <!-- COMPLETENESS_LEVEL: 1 — last audited YYYY-MM-DD -->) if changed

Workflow 3: Add dark theme

  1. Read existing DESIGN.md to extract token names
  2. Copy templates/DESIGN.dark.md.template to {PROJECT_ROOT}/DESIGN.dark.md
  3. For each token in DESIGN.md, define the dark-theme equivalent value
  4. Preserve same token names; only values change (see references/design-md-spec.md § Light/Dark rules)
  5. Audit with Workflow 2 to confirm Level 3 completeness

Workflow 4: Consume DESIGN.md (implementation roles)

Before writing styled UI code:

  1. Read DESIGN.md (and DESIGN.dark.md if exists)
  2. Parse the YAML frontmatter for token values — this is the SSOT for colors, typography, spacing, rounded, and components
  3. Resolve component {colors.X}, {typography.X}, {rounded.X} references by tracing back to the corresponding frontmatter keys
  4. Extract tokens into implementation layer (CSS custom properties, Tailwind config, theme object, etc.)
  5. Follow DESIGN.md body Voice & Content rules for copy text
  6. If DESIGN.md is missing, has no frontmatter, or is incomplete, report to PM — do not guess tokens

Light/Dark dual-theme rules

Dual 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
  • Token names are the SSOT interface — consumers reference tokens by name, not raw values
  • references/design-md-spec.md § Light/Dark rules defines the contract

Engine check (when available): run mstar design-md validate <dir> (or import { validateDesignTokenFrontmatter, assertLightDarkParity, completenessLevel } from "@mstar-harness/engine" in a host hook) to validate the token frontmatter schema above, the light/dark parity of DESIGN.dark.md (same token names, different values), and the achieved completeness level. On fail -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.

References

  • references/design-md-spec.md — normative spec: section definitions, token naming conventions, light/dark contract
  • references/completeness-checklist.md — three-level audit checklist with detailed criteria per level
  • references/vercel-example.md — Vercel Geist DESIGN.md as annotated reference (read when creating from scratch or needing design inspiration)

Templates (this skill):

  • templates/DESIGN.md.template — full template including all Level 1-3 sections with placeholder comments
  • templates/DESIGN.dark.md.template — dark theme template with same token names, different values

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Mstar Design Md?

Designsystem-Spezifikatioune fir DESIGN.md: Design Tokens erstellen, iwwerpréiwen a pflegen; dräistufeg Vollstännegkeetschecklëscht; light/dark-Duebelthema (DESIGN.dark.md). Liesen, wann de Benotzer DESIGN.md / design tokens / design system ernimmt oder wann Dir eng UI implementéiert oder iwwerpréift.

Firwat Mstar Design Md op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Mstar Design Md besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Mstar Design Md an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-design-md an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Mstar Design Md benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Mstar Design Md benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Mstar Design Md domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Mstar Design Md gratis?

Jo. btspoony huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇