@hegemonart/get-design-done 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +63 -0
- package/.claude-plugin/plugin.json +54 -0
- package/CHANGELOG.md +221 -0
- package/LICENSE +21 -0
- package/README.md +724 -0
- package/SKILL.md +232 -0
- package/agents/README.md +226 -0
- package/agents/a11y-mapper.md +118 -0
- package/agents/component-taxonomy-mapper.md +88 -0
- package/agents/design-advisor.md +139 -0
- package/agents/design-assumptions-analyzer.md +171 -0
- package/agents/design-auditor.md +383 -0
- package/agents/design-context-builder.md +544 -0
- package/agents/design-context-checker-gate.md +90 -0
- package/agents/design-context-checker.md +260 -0
- package/agents/design-discussant.md +98 -0
- package/agents/design-doc-writer.md +229 -0
- package/agents/design-executor.md +452 -0
- package/agents/design-figma-writer.md +302 -0
- package/agents/design-fixer.md +180 -0
- package/agents/design-integration-checker-gate.md +93 -0
- package/agents/design-integration-checker.md +326 -0
- package/agents/design-pattern-mapper.md +206 -0
- package/agents/design-phase-researcher.md +229 -0
- package/agents/design-plan-checker.md +164 -0
- package/agents/design-planner.md +352 -0
- package/agents/design-reflector.md +175 -0
- package/agents/design-research-synthesizer.md +127 -0
- package/agents/design-verifier-gate.md +97 -0
- package/agents/design-verifier.md +605 -0
- package/agents/gdd-graphify-sync.md +100 -0
- package/agents/gdd-intel-updater.md +88 -0
- package/agents/gdd-learnings-extractor.md +85 -0
- package/agents/motion-mapper.md +103 -0
- package/agents/token-mapper.md +103 -0
- package/agents/visual-hierarchy-mapper.md +95 -0
- package/connections/chromatic.md +247 -0
- package/connections/claude-design.md +190 -0
- package/connections/connections.md +218 -0
- package/connections/figma-writer.md +139 -0
- package/connections/figma.md +146 -0
- package/connections/graphify.md +197 -0
- package/connections/pinterest.md +153 -0
- package/connections/preview.md +173 -0
- package/connections/refero.md +189 -0
- package/connections/storybook.md +280 -0
- package/hooks/budget-enforcer.js +318 -0
- package/hooks/context-exhaustion.js +127 -0
- package/hooks/gdd-read-injection-scanner.js +44 -0
- package/hooks/hooks.json +44 -0
- package/package.json +60 -0
- package/reference/BRANCH-PROTECTION.md +65 -0
- package/reference/DEPRECATIONS.md +41 -0
- package/reference/STATE-TEMPLATE.md +200 -0
- package/reference/accessibility.md +190 -0
- package/reference/anti-patterns.md +336 -0
- package/reference/audit-scoring.md +205 -0
- package/reference/checklists.md +137 -0
- package/reference/config-schema.md +319 -0
- package/reference/debugger-philosophy.md +32 -0
- package/reference/heuristics.md +201 -0
- package/reference/intel-schema.md +266 -0
- package/reference/model-prices.md +37 -0
- package/reference/model-tiers.md +118 -0
- package/reference/motion.md +285 -0
- package/reference/parallelism-rules.md +108 -0
- package/reference/priority-matrix.md +31 -0
- package/reference/project-skills-guide.md +42 -0
- package/reference/review-format.md +107 -0
- package/reference/schemas/config.schema.json +41 -0
- package/reference/schemas/hooks.schema.json +55 -0
- package/reference/schemas/intel.schema.json +191 -0
- package/reference/schemas/marketplace.schema.json +72 -0
- package/reference/schemas/plugin.schema.json +59 -0
- package/reference/shared-preamble.md +82 -0
- package/reference/typography.md +229 -0
- package/scripts/aggregate-agent-metrics.js +144 -0
- package/scripts/apply-branch-protection.sh +75 -0
- package/scripts/bootstrap-manifest.txt +3 -0
- package/scripts/bootstrap.sh +80 -0
- package/scripts/build-intel.cjs +458 -0
- package/scripts/detect-stale-refs.cjs +101 -0
- package/scripts/extract-changelog-section.cjs +57 -0
- package/scripts/release-smoke-test.cjs +169 -0
- package/scripts/rollback-release.sh +42 -0
- package/scripts/run-injection-scanner-ci.cjs +92 -0
- package/scripts/validate-frontmatter.cjs +68 -0
- package/scripts/validate-schemas.cjs +225 -0
- package/scripts/verify-version-sync.cjs +30 -0
- package/skills/add-backlog/SKILL.md +47 -0
- package/skills/analyze-dependencies/SKILL.md +184 -0
- package/skills/apply-reflections/SKILL.md +112 -0
- package/skills/audit/SKILL.md +54 -0
- package/skills/brief/SKILL.md +75 -0
- package/skills/cache-manager/SKILL.md +120 -0
- package/skills/compare/SKILL.md +322 -0
- package/skills/complete-cycle/SKILL.md +33 -0
- package/skills/darkmode/SKILL.md +331 -0
- package/skills/debug/SKILL.md +38 -0
- package/skills/design/SKILL.md +281 -0
- package/skills/discover/SKILL.md +172 -0
- package/skills/discuss/SKILL.md +67 -0
- package/skills/do/SKILL.md +45 -0
- package/skills/explore/SKILL.md +109 -0
- package/skills/extract-learnings/SKILL.md +98 -0
- package/skills/fast/SKILL.md +44 -0
- package/skills/figma-write/SKILL.md +40 -0
- package/skills/graphify/SKILL.md +48 -0
- package/skills/health/SKILL.md +48 -0
- package/skills/help/SKILL.md +76 -0
- package/skills/list-assumptions/SKILL.md +60 -0
- package/skills/map/SKILL.md +112 -0
- package/skills/new-cycle/SKILL.md +35 -0
- package/skills/new-project/SKILL.md +53 -0
- package/skills/next/SKILL.md +42 -0
- package/skills/note/SKILL.md +47 -0
- package/skills/optimize/SKILL.md +120 -0
- package/skills/pause/SKILL.md +41 -0
- package/skills/plan/SKILL.md +251 -0
- package/skills/plant-seed/SKILL.md +47 -0
- package/skills/pr-branch/SKILL.md +31 -0
- package/skills/progress/SKILL.md +60 -0
- package/skills/quick/SKILL.md +43 -0
- package/skills/reapply-patches/SKILL.md +31 -0
- package/skills/reflect/SKILL.md +73 -0
- package/skills/resume/SKILL.md +37 -0
- package/skills/review-backlog/SKILL.md +45 -0
- package/skills/router/SKILL.md +67 -0
- package/skills/scan/SKILL.md +721 -0
- package/skills/settings/SKILL.md +78 -0
- package/skills/ship/SKILL.md +31 -0
- package/skills/sketch/SKILL.md +78 -0
- package/skills/sketch-wrap-up/SKILL.md +88 -0
- package/skills/skill-manifest/SKILL.md +79 -0
- package/skills/spike/SKILL.md +67 -0
- package/skills/spike-wrap-up/SKILL.md +81 -0
- package/skills/stats/SKILL.md +50 -0
- package/skills/style/SKILL.md +193 -0
- package/skills/synthesize/SKILL.md +93 -0
- package/skills/todo/SKILL.md +54 -0
- package/skills/undo/SKILL.md +30 -0
- package/skills/update/SKILL.md +36 -0
- package/skills/verify/SKILL.md +452 -0
- package/skills/warm-cache/SKILL.md +113 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: get-design-done:style
|
|
3
|
+
description: "Generate a component handoff doc (.design/DESIGN-STYLE-[ComponentName].md) from existing pipeline artifacts or source files. Two modes: post-pipeline (uses DESIGN-SUMMARY.md) and pre-pipeline fallback (uses DESIGN.md + source). Invoke with a ComponentName argument, or with no argument to list available components."
|
|
4
|
+
argument-hint: "[ComponentName]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# get-design-done:style — Component Handoff Doc Generator
|
|
9
|
+
|
|
10
|
+
Generates a per-component style spec at `.design/DESIGN-STYLE-[ComponentName].md`. This is a **standalone command**, not a pipeline stage.
|
|
11
|
+
|
|
12
|
+
Output artifact naming: `.design/DESIGN-STYLE-[ComponentName].md` — Title-cased component name, one file per invocation.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Scope
|
|
17
|
+
|
|
18
|
+
This command is **additive and non-destructive**:
|
|
19
|
+
|
|
20
|
+
- It is NOT a pipeline stage — no `.design/STATE.md` read or write contract.
|
|
21
|
+
- Output lives in the `DESIGN-STYLE-*.md` namespace — distinct from the pipeline namespace (`DESIGN.md`, `DESIGN-CONTEXT.md`, `DESIGN-PLAN.md`, `DESIGN-SUMMARY.md`, `DESIGN-VERIFICATION.md`).
|
|
22
|
+
- It does not modify any pipeline artifact.
|
|
23
|
+
- It does not invoke the pipeline router.
|
|
24
|
+
- One doc per invocation — no batch mode in v3.
|
|
25
|
+
|
|
26
|
+
This separation is a pre-roadmap decision recorded in `.planning/STATE.md`: utility commands use distinct prefixes (`DESIGN-STYLE-[Component].md`); the pipeline owns the `DESIGN-*.md` namespace without qualifiers.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Argument Handling
|
|
31
|
+
|
|
32
|
+
**If `$ARGUMENTS` contains a ComponentName** → proceed to Mode Detection with that name.
|
|
33
|
+
|
|
34
|
+
**If `$ARGUMENTS` is empty** → do not generate a doc. Instead:
|
|
35
|
+
|
|
36
|
+
1. List available component files by globbing:
|
|
37
|
+
- `src/components/*.tsx`
|
|
38
|
+
- `src/components/*.jsx`
|
|
39
|
+
- `src/**/*.vue`
|
|
40
|
+
- `src/**/*.svelte`
|
|
41
|
+
- `components/*.tsx`
|
|
42
|
+
- `components/*.jsx`
|
|
43
|
+
2. Also list task names from `.design/tasks/*.md` (if directory exists).
|
|
44
|
+
3. Display the list to the user and prompt: "Specify a ComponentName to generate a style spec. Example: `/get-design-done style Button`"
|
|
45
|
+
4. Exit without generating any file.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Mode Detection
|
|
50
|
+
|
|
51
|
+
Before spawning the agent, detect which mode to use:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
If .design/DESIGN-SUMMARY.md exists:
|
|
55
|
+
mode = post-pipeline (STYL-03)
|
|
56
|
+
pipeline_complete = true
|
|
57
|
+
|
|
58
|
+
Elif .design/DESIGN.md exists:
|
|
59
|
+
mode = pre-pipeline (STYL-04)
|
|
60
|
+
pipeline_complete = false
|
|
61
|
+
|
|
62
|
+
Else:
|
|
63
|
+
Abort: "No .design/ artifacts found. Run /get-design-done scan first to initialize."
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The mode controls which files are supplied to the agent in `<required_reading>`.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Component Source Resolution
|
|
71
|
+
|
|
72
|
+
Search for a source file matching the provided ComponentName (case-insensitive):
|
|
73
|
+
|
|
74
|
+
1. `src/components/[ComponentName].tsx`
|
|
75
|
+
2. `src/components/[ComponentName].jsx`
|
|
76
|
+
3. `src/components/[ComponentName].vue`
|
|
77
|
+
4. `src/components/[ComponentName].svelte`
|
|
78
|
+
5. `src/**/[ComponentName]/index.tsx`
|
|
79
|
+
6. `src/**/[ComponentName]/index.jsx`
|
|
80
|
+
7. `components/[ComponentName].tsx`
|
|
81
|
+
8. `components/[ComponentName].jsx`
|
|
82
|
+
9. `components/[ComponentName].vue`
|
|
83
|
+
10. `components/[ComponentName].svelte`
|
|
84
|
+
|
|
85
|
+
**If multiple matches found:** Present the list to the user and prompt them to specify the exact path. Do not proceed until a single file is selected.
|
|
86
|
+
|
|
87
|
+
**If zero matches found:** Abort with: "Component [ComponentName] not found in expected paths. Verify the name matches a file in src/components/ or components/."
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Agent Spawn
|
|
92
|
+
|
|
93
|
+
Once mode and source path are resolved, spawn the `design-doc-writer` agent:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
Task("design-doc-writer", """
|
|
97
|
+
<required_reading>
|
|
98
|
+
[If pipeline_complete=true:]
|
|
99
|
+
@.design/STATE.md
|
|
100
|
+
@.design/DESIGN-SUMMARY.md
|
|
101
|
+
@.design/DESIGN-CONTEXT.md
|
|
102
|
+
@<component_source_path>
|
|
103
|
+
[Else (pipeline_complete=false):]
|
|
104
|
+
@.design/DESIGN.md
|
|
105
|
+
@<component_source_path>
|
|
106
|
+
@reference/anti-patterns.md
|
|
107
|
+
@reference/audit-scoring.md
|
|
108
|
+
</required_reading>
|
|
109
|
+
|
|
110
|
+
Generate a handoff spec for component <ComponentName>.
|
|
111
|
+
|
|
112
|
+
Context:
|
|
113
|
+
component_name: <ComponentName>
|
|
114
|
+
component_source_path: <resolved absolute path>
|
|
115
|
+
pipeline_complete: <true|false>
|
|
116
|
+
output_path: .design/DESIGN-STYLE-<ComponentName>.md
|
|
117
|
+
|
|
118
|
+
Produce the doc per STYL-05 sections:
|
|
119
|
+
- Spacing Tokens (used by component)
|
|
120
|
+
- Color Tokens (used by component)
|
|
121
|
+
- Typography Scale (used by component)
|
|
122
|
+
- Component States (default, hover, focus, active, disabled, etc.)
|
|
123
|
+
- Token Semantic Health Score (raw-hex-ratio formula)
|
|
124
|
+
- AI-Slop Detection (using reference/anti-patterns.md BAN/SLOP patterns)
|
|
125
|
+
[If pipeline_complete=true:]
|
|
126
|
+
- Decisions Applied (D-XX from DESIGN-SUMMARY.md that mention this component)
|
|
127
|
+
|
|
128
|
+
Emit ## DOC COMPLETE when the output file is written.
|
|
129
|
+
""")
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
After the agent emits `## DOC COMPLETE`, confirm the file exists at `output_path` and report success to the user.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Output Location
|
|
137
|
+
|
|
138
|
+
Output is written by the agent to:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
.design/DESIGN-STYLE-[ComponentName].md
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
This artifact is **outside the pipeline namespace**. The `DESIGN-STYLE-` prefix is distinct from all pipeline-owned artifacts (`DESIGN.md`, `DESIGN-CONTEXT.md`, `DESIGN-PLAN.md`, `DESIGN-SUMMARY.md`, `DESIGN-VERIFICATION.md`). There is no naming conflict.
|
|
145
|
+
|
|
146
|
+
The `.design/` directory is gitignored (developer tooling only — not shipped with the plugin).
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Constraints
|
|
151
|
+
|
|
152
|
+
This command MUST NOT:
|
|
153
|
+
|
|
154
|
+
- MUST NOT write to `DESIGN.md`, `DESIGN-SUMMARY.md`, `DESIGN-VERIFICATION.md`, `DESIGN-CONTEXT.md`, or `.design/STATE.md`
|
|
155
|
+
- MUST NOT invoke the pipeline router (this command is a leaf invocation, not a pipeline stage)
|
|
156
|
+
- MUST NOT require Figma or Refero MCPs — v3 uses only local source files and `.design/` artifacts (MCP enrichment is reserved for a future version)
|
|
157
|
+
- MUST NOT produce more than one output file per invocation — no batch mode in v3
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Examples
|
|
162
|
+
|
|
163
|
+
**Example 1: Named component**
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
/get-design-done style Button
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
- Resolves component: `src/components/Button.tsx`
|
|
170
|
+
- Detects mode: DESIGN-SUMMARY.md exists → post-pipeline
|
|
171
|
+
- Spawns `design-doc-writer` with `pipeline_complete: true`
|
|
172
|
+
- Output: `.design/DESIGN-STYLE-Button.md`
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
**Example 2: No argument (list mode)**
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
/get-design-done style
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
- Globs component files from `src/components/`
|
|
183
|
+
- Displays list to user:
|
|
184
|
+
```
|
|
185
|
+
Available components:
|
|
186
|
+
Button
|
|
187
|
+
CardHeader
|
|
188
|
+
Input
|
|
189
|
+
Modal
|
|
190
|
+
Toast
|
|
191
|
+
Specify: /get-design-done style [ComponentName]
|
|
192
|
+
```
|
|
193
|
+
- Exits without generating any file.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: synthesize
|
|
3
|
+
description: "Streaming synthesizer — collapses N parallel-agent markdown outputs into one compact merged summary via a single Haiku 4.5 call. Invoked inline by orchestrators (skills/map/, skills/discover/, skills/plan/) after parallel spawns return. Not user-invocable."
|
|
4
|
+
tools: Read, Task
|
|
5
|
+
user-invocable: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
@reference/shared-preamble.md
|
|
9
|
+
|
|
10
|
+
# synthesize
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
|
|
14
|
+
Reusable streaming synthesizer. You receive N markdown strings (parallel-agent outputs) plus a directive, emit one compact merged output in the format the directive specifies. Inline-invoked — no Task() spawn overhead; thin Haiku 4.5 merge call wrapped in a skill.
|
|
15
|
+
|
|
16
|
+
You are not an orchestrator, not an auditor, not a second-pass reviewer. You preserve every distinct signal from the inputs, consolidate duplicates with source tags, and return a single merged artifact. The invoking orchestrator writes the result to disk; you do not touch the filesystem.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
**Use synthesize when:**
|
|
21
|
+
- Parallel-mapper / parallel-researcher produced N overlapping outputs and main-context doesn't need them verbatim.
|
|
22
|
+
- The downstream consumer wants one cross-cutting summary (e.g., `.design/DESIGN-PATTERNS.md` merged from 5 per-concern mappers).
|
|
23
|
+
- The per-agent output files remain on disk as drill-down — the synthesized artifact becomes the compact canonical input.
|
|
24
|
+
|
|
25
|
+
**Do NOT use synthesize when:**
|
|
26
|
+
- A single-agent flow produced the output (nothing to merge).
|
|
27
|
+
- A verify/check-mode flow returned a structured gap list (merging breaks the gap-id → severity → location mapping).
|
|
28
|
+
- A downstream consumer needs every byte verbatim for grep (e.g., decision-wiring checker that matches exact D-XX anchors).
|
|
29
|
+
|
|
30
|
+
## Input Contract
|
|
31
|
+
|
|
32
|
+
The invoking orchestrator passes three fields:
|
|
33
|
+
|
|
34
|
+
- `outputs: string[]` — N labeled strings, each pre-labeled with `=== from <agent-name> ===\n<content>` so the merge call can trace per-signal provenance.
|
|
35
|
+
- `directive: string` — merge instruction (format, target length, which headers to preserve, how to tag sources). Default when empty: `"produce a single merged summary preserving all distinct signals, grouped by natural section headers"`.
|
|
36
|
+
- `output_shape: "markdown" | "json"` — controls the output format. Defaults to `"markdown"`.
|
|
37
|
+
|
|
38
|
+
## Implementation
|
|
39
|
+
|
|
40
|
+
Single Haiku 4.5 call with this exact merge-prompt template:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
You have received {N} outputs from parallel agents. Each output is labeled with its source.
|
|
44
|
+
|
|
45
|
+
Directive: {directive}
|
|
46
|
+
|
|
47
|
+
Outputs:
|
|
48
|
+
{each labeled with === from <agent-name> === and its full content}
|
|
49
|
+
|
|
50
|
+
Produce the merged result in the format specified by the directive.
|
|
51
|
+
Preserve every distinct signal — do NOT drop content. Consolidate duplicates
|
|
52
|
+
(same finding mentioned by multiple agents) into a single entry with the
|
|
53
|
+
source-agent names listed. Keep section headers intact when the directive
|
|
54
|
+
requests section preservation.
|
|
55
|
+
|
|
56
|
+
Emit ONLY the merged output — no preamble, no meta-commentary.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Tier is hard-coded to `haiku` per D-14. Orchestrators should **not** re-route this to Sonnet — the merge is structure-preserving, not generative, and Haiku handles it without quality loss.
|
|
60
|
+
|
|
61
|
+
## Output Contract
|
|
62
|
+
|
|
63
|
+
- **Markdown shape (`output_shape: "markdown"`)** → emit the merged markdown inline, then `## SYNTHESIS COMPLETE` on its own final line. No code fence wrapping the merged output.
|
|
64
|
+
- **JSON shape (`output_shape: "json"`)** → emit the merged JSON object inline (no fence), then `## SYNTHESIS COMPLETE` on its own final line.
|
|
65
|
+
|
|
66
|
+
The orchestrator is responsible for:
|
|
67
|
+
- Stripping the `## SYNTHESIS COMPLETE` marker before writing to the target file.
|
|
68
|
+
- Persisting the merged artifact to disk (e.g., `.design/DESIGN-PATTERNS.md`).
|
|
69
|
+
- Keeping per-agent files on disk as drill-down evidence.
|
|
70
|
+
|
|
71
|
+
## Cost and Tier
|
|
72
|
+
|
|
73
|
+
Hard-coded to Haiku 4.5 per D-14. `budget.json.tier_overrides.synthesize` can override. Typical cost per invocation: $0.002–$0.02 — dominated by input tokens (5 × ~1500-line mapper outputs ≈ 7.5k input tokens, merge output ≈ 1k output tokens).
|
|
74
|
+
|
|
75
|
+
## Failure Modes
|
|
76
|
+
|
|
77
|
+
- **Empty `outputs: []`** → emit an empty string followed immediately by `## SYNTHESIS COMPLETE`. Do NOT error — the orchestrator handles the empty case (e.g., `--only <name>` in map skipped the parallel dispatch).
|
|
78
|
+
- **Empty `directive`** → apply the default directive: `"produce a single merged summary preserving all distinct signals, grouped by natural section headers"`.
|
|
79
|
+
- **Haiku call fails** → fall back to naive concatenation with `\n---\n` separators between each `outputs[i]` entry, emit the fallback as the merged result, and log a telemetry warning (`synthesize_fallback: true`) so Phase 11 reflector can measure the failure rate. Always emit `## SYNTHESIS COMPLETE` after the fallback body.
|
|
80
|
+
- **`output_shape` is neither `markdown` nor `json`** → treat as `markdown` (default) and proceed.
|
|
81
|
+
|
|
82
|
+
## Non-Goals
|
|
83
|
+
|
|
84
|
+
- Does **NOT** spawn Task() agents. Synthesize is a thin skill, not an orchestrator.
|
|
85
|
+
- Does **NOT** write files. The invoking orchestrator owns the target path.
|
|
86
|
+
- Does **NOT** validate directive semantics. If the directive is nonsensical, the merge output will reflect that — garbage in, garbage out is acceptable for an internal-use skill.
|
|
87
|
+
- Does **NOT** re-rank or re-score the inputs. Preservation is the contract.
|
|
88
|
+
|
|
89
|
+
## Completion Marker
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
## SYNTHESIS COMPLETE
|
|
93
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdd-todo
|
|
3
|
+
description: "Design backlog — add/list/pick design tasks. Writes to .design/TODO.md."
|
|
4
|
+
argument-hint: "<add|list|pick> [text]"
|
|
5
|
+
tools: Read, Write, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /gdd:todo
|
|
9
|
+
|
|
10
|
+
**Role:** Design todo list. Three subcommands: `add`, `list`, `pick`. Backing store: `.design/TODO.md`.
|
|
11
|
+
|
|
12
|
+
## File format
|
|
13
|
+
|
|
14
|
+
```markdown
|
|
15
|
+
# Design Todos
|
|
16
|
+
|
|
17
|
+
## P0 — Blocking
|
|
18
|
+
- [ ] [2026-04-18] Fix contrast ratio on card headers
|
|
19
|
+
|
|
20
|
+
## P1 — High
|
|
21
|
+
- [ ] [2026-04-18] Align Button focus ring with tokens
|
|
22
|
+
|
|
23
|
+
## P2 — Normal
|
|
24
|
+
|
|
25
|
+
## P3 — Nice to have
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Priority is encoded by section, not inline. Status markers: `[ ]` unchecked, `[x]` done, `[-]` `[in-progress]`, `[p]` `[promoted]`.
|
|
29
|
+
|
|
30
|
+
## Subcommands
|
|
31
|
+
|
|
32
|
+
### add [text]
|
|
33
|
+
If text omitted, use `AskUserQuestion`: "What todo item? (include priority P0-P3 if known)". Parse leading `P[0-3]` token from text; default P2. Append under the right section as:
|
|
34
|
+
```
|
|
35
|
+
- [ ] [YYYY-MM-DD] <text without priority token>
|
|
36
|
+
```
|
|
37
|
+
Create TODO.md from the template above if missing.
|
|
38
|
+
|
|
39
|
+
### list
|
|
40
|
+
Read `.design/TODO.md`. Print all `- [ ]` and `- [-]` items grouped by priority section, with index numbers.
|
|
41
|
+
|
|
42
|
+
### pick
|
|
43
|
+
Read `.design/TODO.md`. Collect unchecked items. Use `AskUserQuestion` to let the user pick one. Rewrite the chosen line as:
|
|
44
|
+
```
|
|
45
|
+
- [-] [YYYY-MM-DD] [in-progress] <original text>
|
|
46
|
+
```
|
|
47
|
+
Print "Picked: <item>".
|
|
48
|
+
|
|
49
|
+
## Constraints
|
|
50
|
+
|
|
51
|
+
- Do not modify files outside `.design/`.
|
|
52
|
+
- Preserve existing sections and ordering on write.
|
|
53
|
+
|
|
54
|
+
## TODO COMPLETE
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdd-undo
|
|
3
|
+
description: "Safe design change revert. Uses git log to find design commits, checks dependencies, reverts safely."
|
|
4
|
+
argument-hint: "[<commit SHA>]"
|
|
5
|
+
tools: Read, Write, Bash, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /gdd:undo
|
|
9
|
+
|
|
10
|
+
Safe rollback for design-related commits. Uses git history plus file-overlap dependency checks before reverting.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. **List candidates**: Run `git log --oneline -n 20 --grep="design\|feat\|fix"` via Bash. Filter for commits whose scope matches phase prefixes (`design(`, `feat(07`, etc.) or touch files under `src/` related to design changes.
|
|
15
|
+
2. **Present choice**: If no SHA was passed as argument, print the last 10 design-related commits and ask (AskUserQuestion): "Which commit to undo? (or enter commit SHA)"
|
|
16
|
+
3. **Dependency scan**: For the chosen SHA, run `git show --name-only <sha>` to get touched files. Then run `git log <sha>..HEAD --name-only` to find later commits that modified any of those same files. These are potential dependencies.
|
|
17
|
+
4. **Dependency decision**:
|
|
18
|
+
- If none found: proceed to step 5.
|
|
19
|
+
- If found: print "Reverting this commit may break: <later commits>. Proceed anyway? (yes/no)" and abort on "no".
|
|
20
|
+
5. **Stage the revert**: Run `git revert <sha> --no-commit`. Show the resulting diff via `git diff --cached`.
|
|
21
|
+
6. **Confirm**: Ask (AskUserQuestion): "Apply this revert? (yes/no)"
|
|
22
|
+
7. **Commit or abort**: On yes, `git commit -m "revert: <original subject>"`. On no, `git reset` to unstage.
|
|
23
|
+
|
|
24
|
+
## Do Not
|
|
25
|
+
|
|
26
|
+
- Do not force-push.
|
|
27
|
+
- Do not revert commits on `main` without the user confirming branch context.
|
|
28
|
+
- Do not silently skip dependency warnings.
|
|
29
|
+
|
|
30
|
+
## UNDO COMPLETE
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdd-update
|
|
3
|
+
description: "Update get-design-done to the latest release. Preserves .design/config.json and ./.claude/skills/."
|
|
4
|
+
argument-hint: "[--dry-run] [--version <tag>]"
|
|
5
|
+
tools: Read, Write, Bash
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# gdd-update
|
|
9
|
+
|
|
10
|
+
Updates the `get-design-done` plugin to the latest release (or a specific tag), preserving user-local state.
|
|
11
|
+
|
|
12
|
+
## Steps
|
|
13
|
+
|
|
14
|
+
1. **Pre-flight check** — read current version from `.claude-plugin/plugin.json` (fallback: `plugin.json` at project root). Print current version and, when available, the latest release tag from GitHub.
|
|
15
|
+
2. **Dry-run** — if `--dry-run` is passed, print the planned steps and exit without making changes.
|
|
16
|
+
3. **Backup** — read `.design/config.json` into memory. Snapshot the file list under `./.claude/skills/` so we can detect collisions later.
|
|
17
|
+
4. **Pull update** — run `claude plugin install hegemonart/get-design-done` (or `claude plugin install hegemonart/get-design-done@<tag>` when `--version <tag>` is passed). This re-syncs all plugin files from the release.
|
|
18
|
+
5. **Restore config** — write `.design/config.json` back from the in-memory backup. The installer may reset the config to defaults; this step guarantees user settings survive.
|
|
19
|
+
6. **Preserve local skills** — `./.claude/skills/` is project-local and outside the plugin tree. Re-list the directory and confirm none of the pre-update files disappeared. Warn loudly if any did.
|
|
20
|
+
7. **Post-update advisory** — print:
|
|
21
|
+
|
|
22
|
+
> Run `/gdd:reapply-patches` if you have customized any `reference/` files to restore your modifications.
|
|
23
|
+
|
|
24
|
+
8. Print the new version and the changelog URL (`https://github.com/hegemonart/get-design-done/releases`).
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
End every invocation with:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
## UPDATE COMPLETE
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Implementation note
|
|
35
|
+
|
|
36
|
+
The actual update mechanism is the standard `claude plugin install` re-install path. This skill only orchestrates the pre-/post-preservation steps around it.
|