refactor: hard-fork GSD -> MSD (Make Software Done)

Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -2,13 +2,13 @@
**Goal:** Produce a locked UI design contract (`UI-SPEC.md`) that fixes spacing, color, typography, and copywriting decisions before the planner writes tasks, preventing visual inconsistency caused by ad-hoc styling choices during execution.
**Prerequisites:** `.planning/ROADMAP.md` exists. The phase must have frontend or UI work. Running `/gsd-discuss-phase N` first is strongly recommended — the UI researcher reads `CONTEXT.md` to avoid re-asking decisions you have already made.
**Prerequisites:** `.planning/ROADMAP.md` exists. The phase must have frontend or UI work. Running `/msd-discuss-phase N` first is strongly recommended — the UI researcher reads `CONTEXT.md` to avoid re-asking decisions you have already made.
---
## Decide whether this phase needs a UI contract
Not all phases need `/gsd-ui-phase`. Use it when:
Not all phases need `/msd-ui-phase`. Use it when:
- The phase introduces new UI surfaces (pages, flows, layouts)
- Multiple components will be built and visual consistency matters
@@ -20,22 +20,22 @@ Skip it when:
- The phase is purely backend, infrastructure, or data work with no user-facing output
- A UI-SPEC.md already exists for an earlier phase and this phase builds on identical visual patterns without introducing new surfaces
If you are unsure, the safety gate will prompt you: when `workflow.ui_safety_gate` is enabled (default), `/gsd-plan-phase` warns when it detects frontend work but no UI-SPEC.md and asks whether to run `/gsd-ui-phase` first.
If you are unsure, the safety gate will prompt you: when `workflow.ui_safety_gate` is enabled (default), `/msd-plan-phase` warns when it detects frontend work but no UI-SPEC.md and asks whether to run `/msd-ui-phase` first.
---
## Run the UI design contract
```bash
/gsd-ui-phase 2
/msd-ui-phase 2
```
If no phase number is given, GSD Core targets the current phase.
If no phase number is given, MSD Core targets the current phase.
The command runs in two stages:
1. **`gsd-ui-researcher`** — reads `CONTEXT.md`, `RESEARCH.md`, and `REQUIREMENTS.md` for existing decisions, detects the design system state (shadcn `components.json`, Tailwind config, existing tokens), and asks only the unanswered design questions across five areas: spacing, color, typography, copywriting, and registry safety.
2. **`gsd-ui-checker`** — validates the resulting `UI-SPEC.md` across seven dimensions. If issues are found, a revision loop reruns the researcher (up to two iterations) targeting only the flagged items.
1. **`msd-ui-researcher`** — reads `CONTEXT.md`, `RESEARCH.md`, and `REQUIREMENTS.md` for existing decisions, detects the design system state (shadcn `components.json`, Tailwind config, existing tokens), and asks only the unanswered design questions across five areas: spacing, color, typography, copywriting, and registry safety.
2. **`msd-ui-checker`** — validates the resulting `UI-SPEC.md` across seven dimensions. If issues are found, a revision loop reruns the researcher (up to two iterations) targeting only the flagged items.
**Output:** `{padded_phase}-UI-SPEC.md` in `.planning/phases/{phase-dir}/`.
@@ -54,7 +54,7 @@ The researcher locks decisions across five areas:
| **Registry safety** | shadcn component inspection protocol (see below) |
| **Component inventory** | What the design system actually provides, plus the command that enumerated it (see below) |
The checker validates the spec against its seven dimensions — Copywriting, Visuals, Color, Typography, Spacing, Registry Safety, and Inventory Provenance — returning PASS, FLAG or BLOCK for each. (The scored 1–4 six-pillar rubric belongs to `/gsd-ui-review`'s retroactive audit, not to this checker.)
The checker validates the spec against its seven dimensions — Copywriting, Visuals, Color, Typography, Spacing, Registry Safety, and Inventory Provenance — returning PASS, FLAG or BLOCK for each. (The scored 1–4 six-pillar rubric belongs to `/msd-ui-review`'s retroactive audit, not to this checker.)
---
@@ -70,7 +70,7 @@ For React, Next.js, and Vite projects, the researcher offers to initialize shadc
npx shadcn init --preset <paste>
```
The preset string becomes a first-class GSD Core planning artifact that is reproducible across phases and milestones.
The preset string becomes a first-class MSD Core planning artifact that is reproducible across phases and milestones.
---
@@ -83,7 +83,7 @@ npx shadcn view <component> # inspect source before installing
npx shadcn diff <component> # compare against the official registry
```
The checker will flag the spec as BLOCKED if registry safety is not addressed. Disable the gate via `/gsd-settings` if your project does not use shadcn or you have an alternative vetting process.
The checker will flag the spec as BLOCKED if registry safety is not addressed. Disable the gate via `/msd-settings` if your project does not use shadcn or you have an alternative vetting process.
---
@@ -92,7 +92,7 @@ The checker will flag the spec as BLOCKED if registry safety is not addressed. D
If your project has a design system, the UI-SPEC lists the components it provides — and the
planner and executor read that list as the design surface they are allowed to build from. A list
written from the model's recall looks identical to one enumerated from the installed package, so
`gsd-ui-checker` Dimension 7 requires the spec to say which it was.
`msd-ui-checker` Dimension 7 requires the spec to say which it was.
The section carries one provenance line, directly above its table:
@@ -132,7 +132,7 @@ Could not enumerate: package ships no exports map and no CLI.
| Command and count, no version or date | **FLAG** | Accepted, but staleness is invisible. Add the missing part. |
| A complete line, but below the table instead of above it | **FLAG** | Accepted. Move it up — a caveat has to be read before the list it qualifies. |
| `Could not enumerate: <reason>` | **FLAG** | Honest and accepted. The list is explicitly non-exhaustive. |
| An inventory with no provenance line | **BLOCK** | Enumerate and re-run `/gsd-ui-phase`. |
| An inventory with no provenance line | **BLOCK** | Enumerate and re-run `/msd-ui-phase`. |
| A count with no command, or a bare `Could not enumerate:` | **BLOCK** | Nothing falsifiable was recorded. |
| No inventory section at all | **PASS** | Not applicable — including every spec written before this dimension existed, and any project with `Tool: none`. Nothing to enumerate is not a defect. |
@@ -155,7 +155,7 @@ Worth knowing before you rely on it, because the check is narrower than it looks
- **It cannot tell a stale inventory from a current one.** That is what the recorded
`<package>@<version>` is for: compare it against what is installed now. A spec reused after an
upgrade looks exactly like a fresh one apart from that string.
- **Enforcement is applied by an agent, not by a parser.** Dimension 7 is a rule `gsd-ui-checker`
- **Enforcement is applied by an agent, not by a parser.** Dimension 7 is a rule `msd-ui-checker`
follows, the same as the other six dimensions. It is not a schema check that runs over your
spec, so treat a PASS as "the reviewer found a provenance line", not as a machine guarantee.
- **"The checker never runs the recorded command" is an instruction, not a sandbox.** See
@@ -169,7 +169,7 @@ a sourced one, and now it is not. But it is a record you can audit, not a proof.
## Use sketch findings as a head start
If you have already run `/gsd-sketch --wrap-up`, the UI researcher loads `.claude/skills/sketch-findings-[project]/` automatically. Pre-validated decisions (layout, palette, typography, spacing) are treated as locked — the researcher does not re-ask them. You see a note at the start of the run:
If you have already run `/msd-sketch --wrap-up`, the UI researcher loads `.claude/skills/sketch-findings-[project]/` automatically. Pre-validated decisions (layout, palette, typography, spacing) are treated as locked — the researcher does not re-ask them. You see a note at the start of the run:
```text
⚡ Sketch findings detected: .claude/skills/sketch-findings-[project]/SKILL.md
@@ -177,20 +177,20 @@ If you have already run `/gsd-sketch --wrap-up`, the UI researcher loads `.claud
as locked — not re-asked.
```
This is the main reason to run `/gsd-sketch --wrap-up` before `/gsd-ui-phase`: it turns the conversational design exploration into binding contract input.
This is the main reason to run `/msd-sketch --wrap-up` before `/msd-ui-phase`: it turns the conversational design exploration into binding contract input.
---
## Retroactive visual audit with `/gsd-ui-review`
## Retroactive visual audit with `/msd-ui-review`
`/gsd-ui-review` runs after execution, not before. Use it to audit the implemented frontend against the UI-SPEC (or against abstract 6-pillar standards when no spec exists).
`/msd-ui-review` runs after execution, not before. Use it to audit the implemented frontend against the UI-SPEC (or against abstract 6-pillar standards when no spec exists).
```bash
/gsd-ui-review # audit the current phase
/gsd-ui-review 3 # audit phase 3 specifically
/msd-ui-review # audit the current phase
/msd-ui-review 3 # audit phase 3 specifically
```
It works on any project with frontend code — GSD project initialization is not required.
It works on any project with frontend code — MSD project initialization is not required.
**What it checks (6 pillars, scored 1–4 each):**
@@ -201,24 +201,24 @@ It works on any project with frontend code — GSD project initialization is not
5. Spacing — grid alignment, token consistency
6. Experience Design — loading, error, and empty state coverage
**Output:** `{padded_phase}-UI-REVIEW.md` with scores and top three priority fixes. When a browser MCP server such as `gsd-browser` is configured, the audit also captures screenshots with visual evidence.
**Output:** `{padded_phase}-UI-REVIEW.md` with scores and top three priority fixes. When a browser MCP server such as `msd-browser` is configured, the audit also captures screenshots with visual evidence.
**Screenshot storage:** Screenshots are saved to `.planning/ui-reviews/`. A `.gitignore` is created automatically to prevent binary files from reaching git. Screenshots are cleaned up during `/gsd-complete-milestone`.
**Screenshot storage:** Screenshots are saved to `.planning/ui-reviews/`. A `.gitignore` is created automatically to prevent binary files from reaching git. Screenshots are cleaned up during `/msd-complete-milestone`.
---
## Recommended position in the phase lifecycle
```text
/gsd-discuss-phase N ← lock implementation preferences
/gsd-ui-phase N ← lock design contract (frontend phases)
/gsd-plan-phase N ← research + plan (reads UI-SPEC.md as context)
/gsd-execute-phase N ← parallel execution
/gsd-verify-work N ← manual UAT
/gsd-ui-review N ← retroactive visual audit (optional but recommended)
/msd-discuss-phase N ← lock implementation preferences
/msd-ui-phase N ← lock design contract (frontend phases)
/msd-plan-phase N ← research + plan (reads UI-SPEC.md as context)
/msd-execute-phase N ← parallel execution
/msd-verify-work N ← manual UAT
/msd-ui-review N ← retroactive visual audit (optional but recommended)
```
`/gsd-ui-phase` sits between discuss and plan because the planner reads `UI-SPEC.md` as design context — tasks in `PLAN.md` reference spacing tokens, color variables, and copywriting decisions that the spec locked.
`/msd-ui-phase` sits between discuss and plan because the planner reads `UI-SPEC.md` as design context — tasks in `PLAN.md` reference spacing tokens, color variables, and copywriting decisions that the spec locked.
---