@hegemonart/get-design-done 1.28.5 → 1.28.6
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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +56 -0
- package/package.json +1 -1
- package/reference/registry.json +0 -140
- package/reference/skill-authoring-contract.md +40 -9
- package/skills/apply-reflections/SKILL.md +1 -1
- package/skills/cache-manager/SKILL.md +2 -2
- package/skills/compare/SKILL.md +8 -8
- package/skills/connections/SKILL.md +9 -9
- package/skills/darkmode/SKILL.md +8 -8
- package/skills/debug/SKILL.md +3 -3
- package/skills/design/SKILL.md +6 -6
- package/skills/discover/SKILL.md +7 -7
- package/skills/explore/SKILL.md +6 -6
- package/skills/health/SKILL.md +2 -2
- package/skills/new-cycle/SKILL.md +1 -1
- package/skills/peer-cli-add/SKILL.md +6 -6
- package/skills/peer-cli-customize/SKILL.md +5 -5
- package/skills/peers/SKILL.md +2 -2
- package/skills/plan/SKILL.md +10 -10
- package/skills/quality-gate/SKILL.md +1 -1
- package/skills/router/SKILL.md +3 -3
- package/skills/scan/SKILL.md +17 -17
- package/skills/start/SKILL.md +1 -1
- package/skills/style/SKILL.md +5 -5
- package/skills/turn-closeout/SKILL.md +1 -1
- package/skills/verify/SKILL.md +10 -10
- package/skills/warm-cache/SKILL.md +2 -2
- /package/{reference → skills/apply-reflections}/apply-reflections-procedure.md +0 -0
- /package/{reference → skills/cache-manager}/cache-policy.md +0 -0
- /package/{reference → skills/compare}/compare-rubric.md +0 -0
- /package/{reference → skills/connections}/connections-onboarding.md +0 -0
- /package/{reference → skills/darkmode}/darkmode-audit-procedure.md +0 -0
- /package/{reference → skills/debug}/debug-feedback-loops.md +0 -0
- /package/{reference → skills/design}/design-procedure.md +0 -0
- /package/{reference → skills/discover}/discover-procedure.md +0 -0
- /package/{reference → skills/explore}/explore-procedure.md +0 -0
- /package/{reference → skills/health}/health-mcp-detection.md +0 -0
- /package/{reference → skills/health}/health-skill-length-report.md +0 -0
- /package/{reference → skills/new-cycle}/milestone-completeness-rubric.md +0 -0
- /package/{reference → skills/peer-cli-add}/peer-cli-protocol.md +0 -0
- /package/{reference → skills/plan}/plan-procedure.md +0 -0
- /package/{reference → skills/quality-gate}/threat-modeling.md +0 -0
- /package/{reference → skills/router}/router-rules.md +0 -0
- /package/{reference → skills/scan}/scan-procedure.md +0 -0
- /package/{reference → skills/start}/start-procedure.md +0 -0
- /package/{reference → skills/style}/style-doc-procedure.md +0 -0
- /package/{reference → skills/verify}/verify-procedure.md +0 -0
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "Get Design Done — 5-stage agent-orchestrated design pipeline with 9 connections, handoff-first workflow, bidirectional Figma write-back, 22+ specialized agents, queryable knowledge layer (intel store, dependency analysis, learnings extraction), and a self-improvement loop (reflector, frontmatter + budget feedback, global-skills layer). v1.20.0 ships the SDK foundation: gdd-state MCP server (11 typed tools), lockfile-safe STATE.md mutations, event stream, and resilience primitives (jittered-backoff, rate-guard, error-classifier, iteration-budget) for rate-limit + 429 + context-overflow recovery. Full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows) and release automation (auto-tag + GitHub Release + release-time smoke test).",
|
|
8
|
-
"version": "1.28.
|
|
8
|
+
"version": "1.28.6"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "get-design-done",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), Claude Design handoff, bidirectional Figma write-back, and a queryable intel store (.design/intel/) for dependency and learnings queries. Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows) and release automation. Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression. v1.20.0 SDK foundation: gdd-state MCP server (11 typed tools), lockfile-safe STATE.md mutations, event stream at .design/telemetry/events.jsonl, resilience primitives (jittered-backoff, rate-guard, error-classifier, iteration-budget) with rate-limit + 429 + context-overflow recovery, and TypeScript toolchain.",
|
|
15
|
-
"version": "1.28.
|
|
15
|
+
"version": "1.28.6",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "hegemonart"
|
|
18
18
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-design-done",
|
|
3
3
|
"short_name": "gdd",
|
|
4
|
-
"version": "1.28.
|
|
4
|
+
"version": "1.28.6",
|
|
5
5
|
"description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), handoff-first workflow via Claude Design bundles, bidirectional Figma write-back (annotations, Code Connect), queryable intel store (`.design/intel/`) for O(1) design surface lookups, and self-improvement loop (reflector agent, frontmatter + budget feedback, global-skills layer at `~/.claude/gdd/global-skills/`). Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings, reflect, apply-reflections. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows, lint + schema + frontmatter + stale-ref + shellcheck + gitleaks + injection-scan + blocking size-budget) and release automation (auto-tag + GitHub Release + release-time smoke test). Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression. v1.20.0 SDK foundation: gdd-state MCP server (11 typed tools), lockfile-safe STATE.md mutations, event stream at .design/telemetry/events.jsonl, resilience primitives (jittered-backoff, rate-guard, error-classifier, iteration-budget) with rate-limit + 429 + context-overflow recovery, and TypeScript toolchain. v1.27.7 ships gdd-mcp (Phase 27.7): 12 read-only MCP tools for sub-3s priming. v1.28.0 (Phase 28): Foundational References Tier 2 — 5 new reference files (color-theory, composition, proportion-systems, i18n, contrast-advanced), 2 verifier i18n probes + 1 explore i18n-readiness probe, 12 additive cross-link insertions across 10 existing references, 2 orthogonal audit-scoring lens-tags (composition_alignment + i18n_readiness).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "hegemonart",
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,62 @@ All notable changes to get-design-done are documented here. Versions follow [sem
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.28.6] — 2026-05-18
|
|
8
|
+
|
|
9
|
+
### Phase 28.6 — Skill Reference Co-Location (Corrective Follow-Up to Phase 28.5)
|
|
10
|
+
|
|
11
|
+
Corrects Phase 28.5's CONTEXT.md D-06 over-generalization. Phase 28.5 extracted 20 skill-private procedure refs into a central `reference/` folder, but each of those refs is consumed by exactly 1 (or in 2 borderline cases, 2 sibling) skills. Per mattpocock/skills' actual structure at `https://github.com/mattpocock/skills/tree/main/skills`, skill-private procedure docs live next to the `SKILL.md` they describe. Phase 28.6 co-locates the 20 refs into per-skill folders and refreshes the contract's §D-06 to endorse the per-skill folder pattern for 1-/2-consumer content. No new features. No breaking changes. `git mv` preserves history on every file. Phase 28.5's contract spec, validator, CI gate, `zoom-out`, debug Phase 1 patch, CONTEXT.md + ADR project artifacts, decision-injector extension, and 70/70 length compliance are all PRESERVED; only the location of skill-private refs changes.
|
|
12
|
+
|
|
13
|
+
#### Migrated refs (20 — `reference/<topic>.md` -> `skills/<owner>/<topic>.md`)
|
|
14
|
+
|
|
15
|
+
- `apply-reflections-procedure.md` -> `skills/apply-reflections/`
|
|
16
|
+
- `cache-policy.md` -> `skills/cache-manager/` (primary; `warm-cache` secondary via `./../cache-manager/cache-policy.md`)
|
|
17
|
+
- `compare-rubric.md` -> `skills/compare/`
|
|
18
|
+
- `connections-onboarding.md` -> `skills/connections/`
|
|
19
|
+
- `darkmode-audit-procedure.md` -> `skills/darkmode/`
|
|
20
|
+
- `debug-feedback-loops.md` -> `skills/debug/`
|
|
21
|
+
- `design-procedure.md` -> `skills/design/`
|
|
22
|
+
- `discover-procedure.md` -> `skills/discover/`
|
|
23
|
+
- `explore-procedure.md` -> `skills/explore/`
|
|
24
|
+
- `health-mcp-detection.md` -> `skills/health/`
|
|
25
|
+
- `health-skill-length-report.md` -> `skills/health/`
|
|
26
|
+
- `milestone-completeness-rubric.md` -> `skills/new-cycle/` (primary; `turn-closeout` secondary)
|
|
27
|
+
- `peer-cli-protocol.md` -> `skills/peer-cli-add/` (primary; `peer-cli-customize` + `peers` secondary)
|
|
28
|
+
- `plan-procedure.md` -> `skills/plan/`
|
|
29
|
+
- `router-rules.md` -> `skills/router/`
|
|
30
|
+
- `scan-procedure.md` -> `skills/scan/`
|
|
31
|
+
- `start-procedure.md` -> `skills/start/`
|
|
32
|
+
- `style-doc-procedure.md` -> `skills/style/`
|
|
33
|
+
- `threat-modeling.md` -> `skills/quality-gate/`
|
|
34
|
+
- `verify-procedure.md` -> `skills/verify/`
|
|
35
|
+
|
|
36
|
+
#### Contract refresh
|
|
37
|
+
|
|
38
|
+
- `reference/skill-authoring-contract.md` §D-06 refreshed: per-skill folder pattern explicitly endorsed for skill-private content. Three placement classes codified — 1-consumer in `skills/<owner>/<topic>.md`; 2-consumer in primary owner's folder with `./../<primary>/<topic>.md` secondary cross-link; multi-consumer (3+ skills across different domains) in `reference/<topic>.md`. The Phase 28.5 "rare exception only" framing is reversed.
|
|
39
|
+
|
|
40
|
+
#### Registry purge
|
|
41
|
+
|
|
42
|
+
- `reference/registry.json`: 20 entries removed (the migrated procedure refs are no longer tracked centrally; they're discoverable via the skill folder itself, per mattpocock's pattern). Universal refs (consumed by 3+ skills) remain in the registry.
|
|
43
|
+
|
|
44
|
+
#### Phase 28.5 retrospective annotation
|
|
45
|
+
|
|
46
|
+
- `.planning/phases/28.5-skill-authoring-contract/CONTEXT.md` D-06 annotated with a "Corrected by Phase 28.6" pointer for audit-trail preservation. Phase 28.5 decisions stay visible but flagged as superseded.
|
|
47
|
+
|
|
48
|
+
#### Plans
|
|
49
|
+
|
|
50
|
+
- 28.6-01 — `git mv` 20 refs + cross-link updates across 23 SKILL.md consumers (`./../reference/<topic>.md` -> `./<topic>.md` or `./../<primary>/<topic>.md`). (COLOC-01)
|
|
51
|
+
- 28.6-02 — `reference/registry.json` 20-entry purge (D-03) + `reference/skill-authoring-contract.md` §D-06 refresh (D-04). (COLOC-02)
|
|
52
|
+
- 28.6-03 — Validator + baseline + full `npm test` sweep (all green; D-05 confirmation that `scripts/validate-skill-length.cjs` globs `SKILL.md` only; no validator edit). (COLOC-03)
|
|
53
|
+
- 28.6-04 — Closeout (4-manifest lockstep at v1.28.6, `OFF_CADENCE_VERSIONS.add('1.28.6')`, CHANGELOG, ROADMAP add + scoped flip, baseline at `test-fixture/baselines/phase-28.6/`, Phase 28.5 CONTEXT.md retrospective annotation). (COLOC-04)
|
|
54
|
+
|
|
55
|
+
#### Non-changes
|
|
56
|
+
|
|
57
|
+
- NOTICE unchanged — Phase 28.5's mattpocock/skills MIT attribution still applies (same content; file paths shifted only).
|
|
58
|
+
- `test-fixture/baselines/phase-20/skill-list.txt` unchanged — no skills added or removed.
|
|
59
|
+
- `scripts/validate-skill-length.cjs` unchanged — D-05 verified the validator globs `SKILL.md` only and is unaffected by co-located procedure refs.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
7
63
|
## [1.28.5] — 2026-05-18
|
|
8
64
|
|
|
9
65
|
### Phase 28.5 — Skill Authoring Contract + Skill Rework + Project Artifacts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hegemonart/get-design-done",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.6",
|
|
4
4
|
"description": "A design-quality pipeline for AI coding agents: brief, plan, implement, and verify UI work against your design system.",
|
|
5
5
|
"author": "Hegemon",
|
|
6
6
|
"homepage": "https://github.com/hegemonart/get-design-done",
|
package/reference/registry.json
CHANGED
|
@@ -819,13 +819,6 @@
|
|
|
819
819
|
"phase": 28.5,
|
|
820
820
|
"description": "ADR (Architecture Decision Record) format — adapted from mattpocock/skills (MIT). 3-criteria offer gate (hard-to-reverse AND surprising-without-context AND real-tradeoff), 4-state status lifecycle. GDD addition: optional cycle-id + phase-id cross-refs to STATE.md."
|
|
821
821
|
},
|
|
822
|
-
{
|
|
823
|
-
"name": "apply-reflections-procedure",
|
|
824
|
-
"path": "reference/apply-reflections-procedure.md",
|
|
825
|
-
"type": "heuristic",
|
|
826
|
-
"phase": 28.5,
|
|
827
|
-
"description": "Phase 28.5 — apply-reflections procedure extracted from skills/apply-reflections per progressive-disclosure rule. Read by skills/apply-reflections/SKILL.md."
|
|
828
|
-
},
|
|
829
822
|
{
|
|
830
823
|
"name": "architecture-vocabulary",
|
|
831
824
|
"path": "reference/architecture-vocabulary.md",
|
|
@@ -833,27 +826,6 @@
|
|
|
833
826
|
"phase": 28.5,
|
|
834
827
|
"description": "Ousterhout glossary (A Philosophy of Software Design) ported via mattpocock/skills LANGUAGE.md (MIT). 8 core terms (Module / Interface / Implementation / Depth / Seam / Adapter / Leverage / Locality) + 3 principles (deletion test, interface-is-test-surface, two-adapters-rule)."
|
|
835
828
|
},
|
|
836
|
-
{
|
|
837
|
-
"name": "cache-policy",
|
|
838
|
-
"path": "reference/cache-policy.md",
|
|
839
|
-
"type": "heuristic",
|
|
840
|
-
"phase": 28.5,
|
|
841
|
-
"description": "Phase 28.5 — cache-policy reference extracted from skills/cache-manager + skills/warm-cache per progressive-disclosure rule (Bucket 3 orchestrator + utility rework)."
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
"name": "compare-rubric",
|
|
845
|
-
"path": "reference/compare-rubric.md",
|
|
846
|
-
"type": "heuristic",
|
|
847
|
-
"phase": 28.5,
|
|
848
|
-
"description": "Phase 28.5 — compare-rubric extracted from skills/compare per progressive-disclosure rule. Read by skills/compare/SKILL.md (Bucket 2 design-family rework)."
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"name": "connections-onboarding",
|
|
852
|
-
"path": "reference/connections-onboarding.md",
|
|
853
|
-
"type": "meta-rules",
|
|
854
|
-
"phase": 28.5,
|
|
855
|
-
"description": "Phase 28.5 — connections-onboarding procedure extracted from skills/connections per progressive-disclosure rule (Bucket 2 design-family rework). Four-option setup prompt + onboarding flow."
|
|
856
|
-
},
|
|
857
829
|
{
|
|
858
830
|
"name": "context-md-format",
|
|
859
831
|
"path": "reference/context-md-format.md",
|
|
@@ -861,124 +833,12 @@
|
|
|
861
833
|
"phase": 28.5,
|
|
862
834
|
"description": "CONTEXT.md format — adapted from mattpocock/skills (MIT) CONTEXT-FORMAT.md. DDD-style ubiquitous-language glossary schema, inline-write trigger, multi-context CONTEXT-MAP.md pattern. GDD additions: optional first-seen + aliases on term entries."
|
|
863
835
|
},
|
|
864
|
-
{
|
|
865
|
-
"name": "darkmode-audit-procedure",
|
|
866
|
-
"path": "reference/darkmode-audit-procedure.md",
|
|
867
|
-
"type": "meta-rules",
|
|
868
|
-
"phase": 28.5,
|
|
869
|
-
"description": "Phase 28.5 — darkmode audit procedure extracted from skills/darkmode per progressive-disclosure rule (Bucket 2 design-family rework)."
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"name": "debug-feedback-loops",
|
|
873
|
-
"path": "reference/debug-feedback-loops.md",
|
|
874
|
-
"type": "heuristic",
|
|
875
|
-
"phase": 28.5,
|
|
876
|
-
"description": "Debug feedback-loop discipline — adapted from mattpocock/skills (MIT) engineering/diagnose Phase 1. 10 construction paths in priority order (failing test -> curl -> CLI fixture -> headless browser -> trace replay -> throwaway harness -> fuzz -> bisect harness -> differential loop -> HITL bash), iterate-on-loop sub-discipline, non-determinism reproduction-rate branch."
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"name": "design-procedure",
|
|
880
|
-
"path": "reference/design-procedure.md",
|
|
881
|
-
"type": "meta-rules",
|
|
882
|
-
"phase": 28.5,
|
|
883
|
-
"description": "Phase 28.5 — design-stage procedure extracted from skills/design per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
"name": "discover-procedure",
|
|
887
|
-
"path": "reference/discover-procedure.md",
|
|
888
|
-
"type": "meta-rules",
|
|
889
|
-
"phase": 28.5,
|
|
890
|
-
"description": "Phase 28.5 — discover-stage procedure extracted from skills/discover per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"name": "explore-procedure",
|
|
894
|
-
"path": "reference/explore-procedure.md",
|
|
895
|
-
"type": "meta-rules",
|
|
896
|
-
"phase": 28.5,
|
|
897
|
-
"description": "Phase 28.5 — explore-stage procedure extracted from skills/explore per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"name": "health-mcp-detection",
|
|
901
|
-
"path": "reference/health-mcp-detection.md",
|
|
902
|
-
"type": "heuristic",
|
|
903
|
-
"phase": 28.5,
|
|
904
|
-
"description": "Phase 28.5 — health-MCP detection procedure extracted from skills/health per progressive-disclosure rule (D-10). Documents dismissal check, detection via scripts/lib/install/mcp-register.cjs, row rendering for claude/codex/both/neither, fallback for missing mcp-register.cjs."
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
"name": "health-skill-length-report",
|
|
908
|
-
"path": "reference/health-skill-length-report.md",
|
|
909
|
-
"type": "heuristic",
|
|
910
|
-
"phase": 28.5,
|
|
911
|
-
"description": "Phase 28.5 — health-skill-length-report contract documenting validate-skill-length.cjs JSON shape + threshold rationale. Read by skills/health/SKILL.md to render the skill-length report subsection."
|
|
912
|
-
},
|
|
913
|
-
{
|
|
914
|
-
"name": "milestone-completeness-rubric",
|
|
915
|
-
"path": "reference/milestone-completeness-rubric.md",
|
|
916
|
-
"type": "heuristic",
|
|
917
|
-
"phase": 28.5,
|
|
918
|
-
"description": "Phase 28.5 — milestone-completeness rubric extracted from skills/turn-closeout per progressive-disclosure rule (Bucket 4 analysis + audit rework). Turn-closeout / new-cycle completeness criteria."
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"name": "peer-cli-protocol",
|
|
922
|
-
"path": "reference/peer-cli-protocol.md",
|
|
923
|
-
"type": "heuristic",
|
|
924
|
-
"phase": 28.5,
|
|
925
|
-
"description": "Phase 28.5 — peer-CLI protocol scaffold extracted from skills/peer-cli-add + skills/peer-cli-customize per progressive-disclosure rule (Bucket 4 analysis + audit rework). ACP + ASP adapter scaffolding patterns, verification ladder, Windows quirk handling."
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
"name": "plan-procedure",
|
|
929
|
-
"path": "reference/plan-procedure.md",
|
|
930
|
-
"type": "meta-rules",
|
|
931
|
-
"phase": 28.5,
|
|
932
|
-
"description": "Phase 28.5 — plan-stage procedure extracted from skills/plan per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"name": "router-rules",
|
|
936
|
-
"path": "reference/router-rules.md",
|
|
937
|
-
"type": "heuristic",
|
|
938
|
-
"phase": 28.5,
|
|
939
|
-
"description": "Phase 28.5 — router-rules reference extracted from skills/router per progressive-disclosure rule (Bucket 3 orchestrator + utility rework). S/M/L/XL bucket assignments + path-selection heuristic."
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"name": "scan-procedure",
|
|
943
|
-
"path": "reference/scan-procedure.md",
|
|
944
|
-
"type": "meta-rules",
|
|
945
|
-
"phase": 28.5,
|
|
946
|
-
"description": "Phase 28.5 — scan-stage procedure extracted from skills/scan per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
947
|
-
},
|
|
948
836
|
{
|
|
949
837
|
"name": "skill-authoring-contract",
|
|
950
838
|
"path": "reference/skill-authoring-contract.md",
|
|
951
839
|
"type": "meta-rules",
|
|
952
840
|
"phase": 28.5,
|
|
953
841
|
"description": "Phase 28.5 skill-authoring contract — adapted from mattpocock/skills (MIT). SKILL.md <=100-line cap (warn >=100, block >=250 in CI), 1024-char description cap, <what>. Use when <triggers>. form (lax-mode default per Phase 33 A/B pending), frontmatter required fields, progressive-disclosure one-level-deep rule. Validator at scripts/validate-skill-length.cjs."
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
"name": "start-procedure",
|
|
957
|
-
"path": "reference/start-procedure.md",
|
|
958
|
-
"type": "heuristic",
|
|
959
|
-
"phase": 28.5,
|
|
960
|
-
"description": "Phase 28.5 — start-procedure reference extracted from skills/start per progressive-disclosure rule (Bucket 4 analysis + audit rework)."
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
"name": "style-doc-procedure",
|
|
964
|
-
"path": "reference/style-doc-procedure.md",
|
|
965
|
-
"type": "meta-rules",
|
|
966
|
-
"phase": 28.5,
|
|
967
|
-
"description": "Phase 28.5 — style-doc procedure extracted from skills/style per progressive-disclosure rule (Bucket 2 design-family rework)."
|
|
968
|
-
},
|
|
969
|
-
{
|
|
970
|
-
"name": "threat-modeling",
|
|
971
|
-
"path": "reference/threat-modeling.md",
|
|
972
|
-
"type": "heuristic",
|
|
973
|
-
"phase": 28.5,
|
|
974
|
-
"description": "Phase 28.5 — STRIDE threat-modeling patterns extracted from skills/quality-gate + audit-side scanning per progressive-disclosure rule (Bucket 4 analysis + audit rework). Audit-side threat-model invariants."
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"name": "verify-procedure",
|
|
978
|
-
"path": "reference/verify-procedure.md",
|
|
979
|
-
"type": "meta-rules",
|
|
980
|
-
"phase": 28.5,
|
|
981
|
-
"description": "Phase 28.5 — verify-stage procedure extracted from skills/verify per progressive-disclosure rule (Bucket 1 pipeline-stage rework)."
|
|
982
842
|
}
|
|
983
843
|
]
|
|
984
844
|
}
|
|
@@ -101,21 +101,52 @@ disable-model-invocation: true
|
|
|
101
101
|
|
|
102
102
|
References-one-level-deep is the rule (D-06):
|
|
103
103
|
|
|
104
|
-
- **One level deep.** `SKILL.md` may cross-link into
|
|
104
|
+
- **One level deep.** `SKILL.md` may cross-link into a reference. A reference may
|
|
105
105
|
cross-link into another reference. `SKILL.md` does NOT instruct the agent to follow a
|
|
106
106
|
reference's references — load the first level only.
|
|
107
|
-
- **Centralized refs.** `reference/typography.md`, `reference/palette-catalog.md`,
|
|
108
|
-
`reference/audit-scoring.md` and friends are consumed by 15+ skills each. NEVER bundle
|
|
109
|
-
them per-skill. Per-skill folders are allowed ONLY for content that is truly
|
|
110
|
-
single-skill-private (rare; typically a fixture or schema only the owning skill reads).
|
|
111
107
|
- **When to add `scripts/`.** Per mattpocock's three criteria, add a script only when the
|
|
112
108
|
step is deterministic, repeated across runs, and the failure mode needs explicit error
|
|
113
109
|
handling. Anything ad-hoc or once-off stays inline as agent prose.
|
|
114
110
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
### Reference placement classes
|
|
112
|
+
|
|
113
|
+
Three placement classes by cross-domain consumer count (D-06, refreshed by Phase 28.6 D-04):
|
|
114
|
+
|
|
115
|
+
- **1-consumer (skill-private procedure refs).** Live in `skills/<owner>/<topic>.md` next
|
|
116
|
+
to the SKILL.md they describe. Cross-link from SKILL.md as `./<topic>.md`. Matches
|
|
117
|
+
mattpocock's per-skill folder pattern. Examples: `skills/scan/scan-procedure.md`,
|
|
118
|
+
`skills/debug/debug-feedback-loops.md`.
|
|
119
|
+
- **2-consumer (same-domain pair).** Live in the primary owner's skill folder. Secondary
|
|
120
|
+
consumer cross-links via `../<primary>/<topic>.md`. Examples:
|
|
121
|
+
`skills/cache-manager/cache-policy.md` (skills/warm-cache cross-links in);
|
|
122
|
+
`skills/peer-cli-add/peer-cli-protocol.md` (skills/peer-cli-customize + skills/peers
|
|
123
|
+
cross-link in).
|
|
124
|
+
- **Multi-consumer (3+ cross-domain).** Live in `reference/<topic>.md`. Used by 3+ skills
|
|
125
|
+
across different domains. Examples: `reference/typography.md`,
|
|
126
|
+
`reference/palette-catalog.md`, `reference/audit-scoring.md` (each consumed by 15+
|
|
127
|
+
skills).
|
|
128
|
+
|
|
129
|
+
### Migration policy
|
|
130
|
+
|
|
131
|
+
When a reference grows from 1-consumer to 3+ cross-domain consumers, migrate from
|
|
132
|
+
`skills/<owner>/` to `reference/` and update cross-links accordingly. When a centralized
|
|
133
|
+
ref shrinks to 1–2 consumers (or its consumers turn out to be same-domain), migrate the
|
|
134
|
+
other direction. Document the migration in the relevant phase's SUMMARY.md.
|
|
135
|
+
|
|
136
|
+
### Phase 28.6 retrospective
|
|
137
|
+
|
|
138
|
+
Phase 28.5 D-06 over-generalized by centralizing all extracted refs in `reference/`,
|
|
139
|
+
including procedure refs read by exactly one skill. Phase 28.6 corrected this by migrating
|
|
140
|
+
20 skill-private procedure refs back into their owning skill folders (D-01) and refreshing
|
|
141
|
+
this section to endorse per-skill folders as the canonical placement for 1-consumer
|
|
142
|
+
content (D-04). See
|
|
143
|
+
`.planning/phases/28.6-skill-reference-co-location/CONTEXT.md` for the full discipline.
|
|
144
|
+
|
|
145
|
+
Concrete example: a skill that lists 10 framework matrices inline (~150 lines) extracts
|
|
146
|
+
the matrices to `reference/<framework>-matrices.md` (if 3+ skills will consume them) or
|
|
147
|
+
`skills/<owner>/<framework>-matrices.md` (if only the owning skill reads them), then
|
|
148
|
+
replaces the inline content with a one-sentence summary + cross-link. SKILL.md drops to
|
|
149
|
+
~80 lines, the matrices stay discoverable, no institutional knowledge is lost.
|
|
119
150
|
|
|
120
151
|
## Validator usage
|
|
121
152
|
|
|
@@ -52,7 +52,7 @@ Based on user choice:
|
|
|
52
52
|
|
|
53
53
|
### 4. Apply Logic by Proposal Type
|
|
54
54
|
|
|
55
|
-
After the user chooses `a` (apply) or `e` (edit-then-apply), branch on the proposal's bracketed type tag and follow the per-type apply procedure in `./
|
|
55
|
+
After the user chooses `a` (apply) or `e` (edit-then-apply), branch on the proposal's bracketed type tag and follow the per-type apply procedure in `./apply-reflections-procedure.md` — one numbered procedure each for `[FRONTMATTER]`, `[REFERENCE]`, `[BUDGET]`, `[QUESTION]`, `[GLOBAL-SKILL]`. All branches end with `**Applied**: <date>` appended to the proposal block in the reflections file.
|
|
56
56
|
|
|
57
57
|
### 5. Summary
|
|
58
58
|
|
|
@@ -38,7 +38,7 @@ You are the deterministic cache-key computer and cache-manifest writer for the o
|
|
|
38
38
|
|
|
39
39
|
## Deterministic Input-Hash Algorithm
|
|
40
40
|
|
|
41
|
-
The canonical reference implementation (single source of truth; `hooks/budget-enforcer.js` imports the same primitive via a shared helper) lives in `./
|
|
41
|
+
The canonical reference implementation (single source of truth; `hooks/budget-enforcer.js` imports the same primitive via a shared helper) lives in `./cache-policy.md#deterministic-input-hash-algorithm-layer-b` — it documents the JS implementation, the maintainer notes (sorted-unique paths, MISSING-file sentinel, agent-path bust behavior), the manifest shape, and TTL semantics in one place. Conform to the algorithm exactly so the hook and any orchestrator agree byte-for-byte.
|
|
42
42
|
|
|
43
43
|
## Integration Points
|
|
44
44
|
|
|
@@ -63,4 +63,4 @@ Per D-09:
|
|
|
63
63
|
|
|
64
64
|
## TTL Semantics
|
|
65
65
|
|
|
66
|
-
Default `ttl_seconds` = `.design/budget.json.cache_ttl_seconds` = 3600s (1 hour) per D-10. `expires_at` is computed at write time and stored; readers do not recompute. Stale entries are lazily cleaned on read (no eager reaper in v1). Full TTL discussion: `./
|
|
66
|
+
Default `ttl_seconds` = `.design/budget.json.cache_ttl_seconds` = 3600s (1 hour) per D-10. `expires_at` is computed at write time and stored; readers do not recompute. Stale entries are lazily cleaned on read (no eager reaper in v1). Full TTL discussion: `./cache-policy.md#ttl-semantics-layer-b`.
|
package/skills/compare/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ user-invocable: true
|
|
|
9
9
|
|
|
10
10
|
Standalone delta command. Computes the difference between the scan baseline (`DESIGN.md`) and the verification result (`DESIGN-VERIFICATION.md`), and flags design drift for any regression not covered by an explicit task in `DESIGN-PLAN.md`. Writes one artifact: `.design/COMPARE-REPORT.md`.
|
|
11
11
|
|
|
12
|
-
For the full step-by-step methodology (score parsing, set arithmetic for anti-patterns, drift-coverage map, screenshot-delta probe, and `COMPARE-REPORT.md` template), see
|
|
12
|
+
For the full step-by-step methodology (score parsing, set arithmetic for anti-patterns, drift-coverage map, screenshot-delta probe, and `COMPARE-REPORT.md` template), see `./compare-rubric.md`. For the cross-skill output discipline (artifact prefix, completion marker, MUST-NOT-write list, connection-probe pattern), see `../../reference/shared-preamble.md#output-contract-reminders` and `../../reference/shared-preamble.md#connection-handshake-summary`. For the underlying 0–10 category-scoring rubric the delta is computed against, see `../../reference/audit-scoring.md`.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -45,13 +45,13 @@ Probe `preview` connection per `../../reference/shared-preamble.md#connection-ha
|
|
|
45
45
|
|
|
46
46
|
## Workflow
|
|
47
47
|
|
|
48
|
-
1. **Parse Category Scores** — extract baseline + result score tables, normalize names, flag unmatched. Detail:
|
|
49
|
-
2. **Compute Score Delta** — `delta = result - baseline`, classify (`improvement`/`no_change`/`regression`). Detail:
|
|
50
|
-
3. **Anti-Pattern Delta** — set arithmetic on baseline vs result anti-pattern sets (resolved / new / unchanged). Detail:
|
|
51
|
-
4. **Must-Have Pass/Fail Change** — read `<must_haves>` from `DESIGN-CONTEXT.md`, status from `DESIGN-VERIFICATION.md`. Detail:
|
|
52
|
-
5. **Design Drift Detection (COMP-04)** — build coverage map from `DESIGN-PLAN.md` `Type:` fields; for each `regression` not in coverage_map → emit `DRIFT: [category] ...`. Detail:
|
|
53
|
-
6. **Screenshot Delta (preview: available only)** — capture per-route screenshots to `.design/screenshots/{before,after}/<route>.png`. Detail:
|
|
54
|
-
7. **Write `.design/COMPARE-REPORT.md`** — full template at
|
|
48
|
+
1. **Parse Category Scores** — extract baseline + result score tables, normalize names, flag unmatched. Detail: `./compare-rubric.md#step-1--parse-category-scores`.
|
|
49
|
+
2. **Compute Score Delta** — `delta = result - baseline`, classify (`improvement`/`no_change`/`regression`). Detail: `./compare-rubric.md#step-2--compute-score-delta-comp-03`.
|
|
50
|
+
3. **Anti-Pattern Delta** — set arithmetic on baseline vs result anti-pattern sets (resolved / new / unchanged). Detail: `./compare-rubric.md#step-3--anti-pattern-delta`.
|
|
51
|
+
4. **Must-Have Pass/Fail Change** — read `<must_haves>` from `DESIGN-CONTEXT.md`, status from `DESIGN-VERIFICATION.md`. Detail: `./compare-rubric.md#step-4--must-have-passfail-change`.
|
|
52
|
+
5. **Design Drift Detection (COMP-04)** — build coverage map from `DESIGN-PLAN.md` `Type:` fields; for each `regression` not in coverage_map → emit `DRIFT: [category] ...`. Detail: `./compare-rubric.md#step-5--design-drift-detection-comp-04`.
|
|
53
|
+
6. **Screenshot Delta (preview: available only)** — capture per-route screenshots to `.design/screenshots/{before,after}/<route>.png`. Detail: `./compare-rubric.md#step-5b--screenshot-delta-when-preview-available`.
|
|
54
|
+
7. **Write `.design/COMPARE-REPORT.md`** — full template at `./compare-rubric.md#step-6--compare-reportmd-template`.
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
@@ -12,7 +12,7 @@ Interactive onboarding for the 12 external integrations the pipeline supports. R
|
|
|
12
12
|
|
|
13
13
|
Canonical per-connection specs live in `../../connections/<name>.md` (one file per integration). The capability matrix + probe-pattern spec live in `../../connections/connections.md`. This skill is the **user-facing front end** for those specs.
|
|
14
14
|
|
|
15
|
-
For the 12 probe scripts (MCP + HTTP + CLI + file probes), bucket categorization, per-connection setup screen, auto-run eligibility matrix, value-prop one-liners, and STATE.md / config.json write contracts, see
|
|
15
|
+
For the 12 probe scripts (MCP + HTTP + CLI + file probes), bucket categorization, per-connection setup screen, auto-run eligibility matrix, value-prop one-liners, and STATE.md / config.json write contracts, see `./connections-onboarding.md`. For the cross-skill probe pattern + connection-handshake summary, see `../../reference/shared-preamble.md#connection-handshake-summary`. For the cross-skill output discipline, see `../../reference/shared-preamble.md#output-contract-reminders`.
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
@@ -38,20 +38,20 @@ For the 12 probe scripts (MCP + HTTP + CLI + file probes), bucket categorization
|
|
|
38
38
|
|
|
39
39
|
## Workflow
|
|
40
40
|
|
|
41
|
-
1. **Probe all 12 connections** — run every probe script per
|
|
42
|
-
2. **Categorize + build summary** — bucket each probe result (available / recommended / optional / skipped / unavailable) using project-hint detection. Detail + recommendation mapping:
|
|
43
|
-
3. **Print summary table** — show buckets + value-prop one-liners (verbatim from
|
|
44
|
-
4. **Route by mode** — `list` / `--auto` exits after summary; `<name>` jumps straight to Step 5; default mode opens an AskUserQuestion (configure recommended / pick one by one / configure all optional / re-check specific / exit). Routing detail:
|
|
45
|
-
5. **Per-connection setup screen** — for each target: read `connections/<name>.md`, present the setup screen, AskUserQuestion (run now / copy-paste / skip / never ask). Auto-run only if reversible (see eligibility matrix). On success: append name to `connections_onboarding.pending_verification[]`. Detail:
|
|
46
|
-
6. **Verification pass** — re-probe every name in `pending_verification[]`. Available → remove. `not_configured` → leave (needs session restart). `unavailable` → leave + note OAuth needed. Print "Setup complete" summary. Detail:
|
|
41
|
+
1. **Probe all 12 connections** — run every probe script per `./connections-onboarding.md#step-1--probe-all-12-connections`. MCP probes use `ToolSearch` first; HTTP / CLI / file probes follow non-MCP patterns. Merge results into `STATE.md <connections>` with the three-value schema (`available | unavailable | not_configured`) — never add new values.
|
|
42
|
+
2. **Categorize + build summary** — bucket each probe result (available / recommended / optional / skipped / unavailable) using project-hint detection. Detail + recommendation mapping: `./connections-onboarding.md#step-2--bucket-categorization`.
|
|
43
|
+
3. **Print summary table** — show buckets + value-prop one-liners (verbatim from `./connections-onboarding.md#step-3--summary-table`).
|
|
44
|
+
4. **Route by mode** — `list` / `--auto` exits after summary; `<name>` jumps straight to Step 5; default mode opens an AskUserQuestion (configure recommended / pick one by one / configure all optional / re-check specific / exit). Routing detail: `./connections-onboarding.md#step-4--route-by-mode`.
|
|
45
|
+
5. **Per-connection setup screen** — for each target: read `connections/<name>.md`, present the setup screen, AskUserQuestion (run now / copy-paste / skip / never ask). Auto-run only if reversible (see eligibility matrix). On success: append name to `connections_onboarding.pending_verification[]`. Detail: `./connections-onboarding.md#step-5--per-connection-setup-screen`.
|
|
46
|
+
6. **Verification pass** — re-probe every name in `pending_verification[]`. Available → remove. `not_configured` → leave (needs session restart). `unavailable` → leave + note OAuth needed. Print "Setup complete" summary. Detail: `./connections-onboarding.md#step-6--verification-pass`.
|
|
47
47
|
|
|
48
|
-
If `.design/config.json > connections_onboarding.pending_verification[]` is non-empty at entry → enter **resume flow**: run Step 6 immediately; if clean, exit; otherwise fall through to Step 3. Detail:
|
|
48
|
+
If `.design/config.json > connections_onboarding.pending_verification[]` is non-empty at entry → enter **resume flow**: run Step 6 immediately; if clean, exit; otherwise fall through to Step 3. Detail: `./connections-onboarding.md#resumability`.
|
|
49
49
|
|
|
50
50
|
---
|
|
51
51
|
|
|
52
52
|
## Do Not
|
|
53
53
|
|
|
54
|
-
Per
|
|
54
|
+
Per `./connections-onboarding.md#do-not`:
|
|
55
55
|
|
|
56
56
|
- Never run `npm install -g` globals automatically.
|
|
57
57
|
- Never write to `~/.bashrc`, `~/.zshrc`, or shell RC files.
|
package/skills/darkmode/SKILL.md
CHANGED
|
@@ -9,7 +9,7 @@ user-invocable: true
|
|
|
9
9
|
|
|
10
10
|
Standalone dark mode audit. Detects the project's dark mode architecture, runs architecture-specific checks across contrast, token completeness, anti-patterns, and meta properties, then writes a prioritized fix list to `.design/DARKMODE-AUDIT.md`.
|
|
11
11
|
|
|
12
|
-
For the full step-by-step methodology (architecture-detection greps, WCAG contrast formula, anti-pattern grep snippets, meta-property checks, screenshot capture, and `DARKMODE-AUDIT.md` template), see
|
|
12
|
+
For the full step-by-step methodology (architecture-detection greps, WCAG contrast formula, anti-pattern grep snippets, meta-property checks, screenshot capture, and `DARKMODE-AUDIT.md` template), see `./darkmode-audit-procedure.md`. For the perceptual-contrast layer (APCA / WCAG 3 draft) sitting on top of WCAG 2.1 ratios, see `../../reference/contrast-advanced.md`. For OKLCH-based dark token-pair generation, see `../../reference/color-theory.md` §OKLCH. For the cross-skill output discipline + connection-probe pattern, see `../../reference/shared-preamble.md#output-contract-reminders` and `../../reference/shared-preamble.md#connection-handshake-summary`.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -39,13 +39,13 @@ Probe `preview` connection per `../../reference/shared-preamble.md#connection-ha
|
|
|
39
39
|
|
|
40
40
|
## Workflow
|
|
41
41
|
|
|
42
|
-
1. **Architecture Detection (DARK-02)** — run three greps (CSS custom props / Tailwind `dark:` / JS class toggle), classify primary architecture or `Hybrid` or `None`. If `None`, abort. Detail:
|
|
43
|
-
2. **Contrast Audit (DARK-03)** — extract dark-context token pairs for the detected architecture, compute WCAG 2.1 ratios, flag failures at 4.5:1 (body) / 3:1 (large text + UI boundaries). Cross-check with APCA from `../../reference/contrast-advanced.md` for thin / large / colored text. Detail:
|
|
44
|
-
3. **Token Override Completeness (DARK-04)** — every light-mode color token must have a dark-mode override. Flag missing overrides → P1. Detail:
|
|
45
|
-
4. **Dark-Specific Anti-Patterns (DARK-05)** — Images/SVGs without dark variant (P2), pure-black backgrounds in dark context = BAN-05 (P1), missing `@media (forced-colors)` (P2). Detail:
|
|
46
|
-
5. **Meta Property Check (DARK-06)** — `color-scheme` property + `prefers-color-scheme` query. Each absent → P2. Detail:
|
|
47
|
-
6. **Visual Rendering (preview: available only)** — capture light/dark screenshot pair to `.design/screenshots/darkmode/{light,dark}.png`. Detail:
|
|
48
|
-
7. **Write `.design/DARKMODE-AUDIT.md`** — group flagged issues by priority (P0 → P1 → P2 → P3). Full template at
|
|
42
|
+
1. **Architecture Detection (DARK-02)** — run three greps (CSS custom props / Tailwind `dark:` / JS class toggle), classify primary architecture or `Hybrid` or `None`. If `None`, abort. Detail: `./darkmode-audit-procedure.md#step-1-architecture-detection-dark-02`.
|
|
43
|
+
2. **Contrast Audit (DARK-03)** — extract dark-context token pairs for the detected architecture, compute WCAG 2.1 ratios, flag failures at 4.5:1 (body) / 3:1 (large text + UI boundaries). Cross-check with APCA from `../../reference/contrast-advanced.md` for thin / large / colored text. Detail: `./darkmode-audit-procedure.md#step-2-contrast-audit-dark-03`.
|
|
44
|
+
3. **Token Override Completeness (DARK-04)** — every light-mode color token must have a dark-mode override. Flag missing overrides → P1. Detail: `./darkmode-audit-procedure.md#step-3-token-override-completeness-dark-04`.
|
|
45
|
+
4. **Dark-Specific Anti-Patterns (DARK-05)** — Images/SVGs without dark variant (P2), pure-black backgrounds in dark context = BAN-05 (P1), missing `@media (forced-colors)` (P2). Detail: `./darkmode-audit-procedure.md#step-4-dark-specific-anti-patterns-dark-05`.
|
|
46
|
+
5. **Meta Property Check (DARK-06)** — `color-scheme` property + `prefers-color-scheme` query. Each absent → P2. Detail: `./darkmode-audit-procedure.md#step-5-meta-property-check-dark-06`.
|
|
47
|
+
6. **Visual Rendering (preview: available only)** — capture light/dark screenshot pair to `.design/screenshots/darkmode/{light,dark}.png`. Detail: `./darkmode-audit-procedure.md#step-5b-dark-mode-rendering-screenshots-when-preview-available`.
|
|
48
|
+
7. **Write `.design/DARKMODE-AUDIT.md`** — group flagged issues by priority (P0 → P1 → P2 → P3). Full template at `./darkmode-audit-procedure.md#step-6-darkmode-auditmd-template`.
|
|
49
49
|
|
|
50
50
|
---
|
|
51
51
|
|
package/skills/debug/SKILL.md
CHANGED
|
@@ -7,15 +7,15 @@ tools: Read, Write, Grep, Glob, AskUserQuestion, Task
|
|
|
7
7
|
|
|
8
8
|
# /gdd:debug
|
|
9
9
|
|
|
10
|
-
Systematic, checkpoint-driven design debugger. Loads framing from `./../reference/debugger-philosophy.md` (five principles) and the feedback-loop construction catalog from
|
|
10
|
+
Systematic, checkpoint-driven design debugger. Loads framing from `./../reference/debugger-philosophy.md` (five principles) and the feedback-loop construction catalog from `./debug-feedback-loops.md` (10 priority-ordered loop paths). Phase 1 builds the loop; Phase 2 generates hypotheses. Writes every step to `.design/DEBUG.md` so killed sessions can resume.
|
|
11
11
|
|
|
12
12
|
## Steps
|
|
13
13
|
|
|
14
|
-
1. **Load philosophy + feedback-loop catalog**: Read `reference/debugger-philosophy.md` (five principles) and
|
|
14
|
+
1. **Load philosophy + feedback-loop catalog**: Read `reference/debugger-philosophy.md` (five principles) and `./debug-feedback-loops.md` (10 construction paths; iterate-on-loop discipline). Keep both in mind for the entire session.
|
|
15
15
|
2. **Symptom**: If no symptom argument was passed, ask (AskUserQuestion): "What design symptom are you investigating? (observable only — 'cards look crowded', not 'padding is wrong')"
|
|
16
16
|
3. **Resume check**: Read `.design/DEBUG.md` if it exists. If there is an open session with no `### Fix Proposal` block, ask: "Resume existing session '<symptom>' or start a new one?"
|
|
17
17
|
4. **Ground truth load**: Read `.design/DESIGN-PLAN.md` (goals), `.design/STATE.md` `<decisions>` block (D-XX items), and any source files pointed at by the symptom.
|
|
18
|
-
5. **Phase 1 — Build a feedback loop**: Before ANY hypothesizing, build a deterministic, fast, agent-runnable pass/fail signal that reproduces the symptom. See
|
|
18
|
+
5. **Phase 1 — Build a feedback loop**: Before ANY hypothesizing, build a deterministic, fast, agent-runnable pass/fail signal that reproduces the symptom. See `./debug-feedback-loops.md` for the 10 construction paths in priority order (failing test > curl > CLI fixture > headless browser > trace replay > throwaway harness > fuzz > bisect > differential > HITL bash). Iterate on the loop itself (cache setup, narrow scope, pin time, seed RNG, isolate filesystem, freeze network) before iterating on the bug. For non-deterministic bugs: raise reproduction rate to at least 30%, not clean repro. **Do not proceed to Phase 2 (hypothesis generation) until you have a loop you believe in.**
|
|
19
19
|
6. **Optional rendered-output check**: Use ToolSearch to see if Playwright/Preview MCP tools are available. If yes, capture rendered state. If no, fall back to code-only analysis.
|
|
20
20
|
7. **Phase 2 — Investigation loop** (one hypothesis at a time) — for each step:
|
|
21
21
|
- Form one hypothesis (one variable).
|
package/skills/design/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ tools: Read, Write, Bash, Grep, Glob, Task, AskUserQuestion, mcp__gdd_state__get
|
|
|
10
10
|
|
|
11
11
|
**Stage 4 of 5** in the get-design-done pipeline. Thin orchestrator. All design execution intelligence lives in `agents/design-executor.md`.
|
|
12
12
|
|
|
13
|
-
Full procedure detail:
|
|
13
|
+
Full procedure detail: `./design-procedure.md`.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ Full procedure detail: `../../reference/design-procedure.md`.
|
|
|
20
20
|
2. `mcp__gdd_state__get` -> snapshot `state`; read `state.position.wave` for execution plan.
|
|
21
21
|
3. Abort only if `.design/DESIGN-PLAN.md` is missing: "No plan found. Run `/get-design-done:plan` first."
|
|
22
22
|
|
|
23
|
-
Detail:
|
|
23
|
+
Detail: `./design-procedure.md` §Stage entry.
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ Detail: `../../reference/design-procedure.md` §Stage entry.
|
|
|
30
30
|
- `--parallel` -> `parallel_mode=true` (use worktree isolation for `Parallel: true` tasks).
|
|
31
31
|
- **Directionally-open check** (skipped if `auto_mode`): scan DESIGN-PLAN.md for tasks whose criteria read "explore N directions" / "pick a visual approach" and suggest `/gdd:sketch` first.
|
|
32
32
|
- **Project-local conventions**: include any `./.claude/skills/design-*-conventions.md` and `~/.claude/gdd/global-skills/*.md` in every executor's `<required_reading>` — global conventions inform but do not override project-local D-XX decisions.
|
|
33
|
-
- **`.stories.tsx` stub**: after each new component file is created by the executor, emit a CSF stub alongside if `.storybook/` exists or `"storybook"` is in `package.json`, even with the dev server offline. Detail:
|
|
33
|
+
- **`.stories.tsx` stub**: after each new component file is created by the executor, emit a CSF stub alongside if `.storybook/` exists or `"storybook"` is in `package.json`, even with the dev server offline. Detail: `./design-procedure.md` §.stories.tsx Stub.
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
@@ -49,7 +49,7 @@ For each wave in order:
|
|
|
49
49
|
3. **Parallel batch** (when `parallel_mode=true` AND any `Parallel: true` tasks in wave): announce the partition, spawn all `Parallel: true` tasks via concurrent `Task("design-executor", ..., isolation: "worktree")` calls in ONE response, wait for all `## EXECUTION COMPLETE` markers, merge worktrees (non-overlapping `Touches:` guarantees no conflicts; surface any conflict to the user before continuing), then `update_progress` + `checkpoint`.
|
|
50
50
|
4. **Sequential tail** (`Parallel: false` or `parallel_mode=false`): spawn one `design-executor` at a time (no worktree isolation), waiting for each `## EXECUTION COMPLETE` and emitting `update_progress` per task; `checkpoint` after the final task of the wave.
|
|
51
51
|
|
|
52
|
-
Full executor prompts (parallel + sequential variants) and the merge-worktrees protocol:
|
|
52
|
+
Full executor prompts (parallel + sequential variants) and the merge-worktrees protocol: `./design-procedure.md` §Step 2.
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
@@ -70,12 +70,12 @@ Check task-NN.md files for `status: deviation`. If found: `mcp__gdd_state__get`
|
|
|
70
70
|
|
|
71
71
|
## After Completion
|
|
72
72
|
|
|
73
|
-
Print the `=== Design stage complete ===` summary (tasks complete/total, deviations, commits since stage start, next step `/get-design-done:verify`). Template:
|
|
73
|
+
Print the `=== Design stage complete ===` summary (tasks complete/total, deviations, commits since stage start, next step `/get-design-done:verify`). Template: `./design-procedure.md` §After Completion.
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
77
|
## Figma Write Dispatch
|
|
78
78
|
|
|
79
|
-
After all tasks finish, if STATE.md `<connections>` has `figma: available`, offer the user the figma-write opt-in prompt (modes: annotate / tokenize / mappings, with optional `--dry-run`). Spawn `design-figma-writer` with the selected mode on "yes"; skip silently on "no". NEVER auto-run without confirmation. Full prompt + dispatch logic:
|
|
79
|
+
After all tasks finish, if STATE.md `<connections>` has `figma: available`, offer the user the figma-write opt-in prompt (modes: annotate / tokenize / mappings, with optional `--dry-run`). Spawn `design-figma-writer` with the selected mode on "yes"; skip silently on "no". NEVER auto-run without confirmation. Full prompt + dispatch logic: `./design-procedure.md` §Figma Write Dispatch.
|
|
80
80
|
|
|
81
81
|
## DESIGN COMPLETE
|