Prompt file imported from OthmanAdi/MDDesign (
.cursor/commands/fix.md). Copyright stays with the author.
/mddesign:fix
Apply one finding's fix from DESIGN.md.critique.md.
Flow
-
Read the critique: open
DESIGN.md.critique.md, find the finding by id. If not found, refuse. If alreadystatus: applied, refuse. -
Show the proposed change: print the finding and the proposed edit to the user.
-
HITL gate: the PreToolUse hook intercepts the next
Edit(named checkpoint:before_design_md_fix) and waits for approval. -
Apply: make the single edit on
DESIGN.md(or on the named source file when the fix touches code). -
Re-lint:
Bash: npx --yes @google/design.md lint DESIGN.md.- If lint regresses, revert the edit and surface the error.
- If lint passes, proceed.
-
Update critique: mark the finding
status: appliedinDESIGN.md.critique.md. -
Append to progress.md: "Applied F. DESIGN.md still passes lint."
Arguments
<finding-id>— required. Must match a finding inDESIGN.md.critique.md.
Boundaries
- One finding at a time. Never batch-applies.
- Always HITL gated.
- Always re-lints. Never leaves DESIGN.md in a regressed state.
See skills/design-harvest/SKILL.md for the full logic.
