@hegemonart/get-design-done 1.53.0 → 1.55.0

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.
Files changed (56) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +88 -0
  4. package/README.md +4 -0
  5. package/SKILL.md +2 -1
  6. package/agents/component-taxonomy-mapper.md +3 -0
  7. package/agents/motion-mapper.md +1 -0
  8. package/agents/token-mapper.md +3 -0
  9. package/bin/gdd-dashboard +91 -0
  10. package/dist/claude-code/.claude/skills/new-addendum/SKILL.md +81 -0
  11. package/package.json +2 -1
  12. package/reference/frameworks/astro.md +43 -0
  13. package/reference/frameworks/nextjs.md +44 -0
  14. package/reference/frameworks/remix.md +44 -0
  15. package/reference/frameworks/storybook.md +44 -0
  16. package/reference/frameworks/sveltekit.md +43 -0
  17. package/reference/frameworks/vite-react.md +43 -0
  18. package/reference/interaction.md +1 -0
  19. package/reference/motion/framer-motion.md +45 -0
  20. package/reference/motion/gsap.md +45 -0
  21. package/reference/motion/motion-one.md +44 -0
  22. package/reference/motion/react-spring.md +44 -0
  23. package/reference/motion.md +1 -0
  24. package/reference/registry.json +163 -1
  25. package/reference/registry.schema.json +18 -1
  26. package/reference/skill-graph.md +2 -1
  27. package/reference/systems/chakra.md +44 -0
  28. package/reference/systems/css-modules.md +44 -0
  29. package/reference/systems/mui.md +44 -0
  30. package/reference/systems/radix-themes.md +43 -0
  31. package/reference/systems/shadcn.md +45 -0
  32. package/reference/systems/styled-components.md +44 -0
  33. package/reference/systems/tailwind.md +44 -0
  34. package/reference/systems/vanilla-extract.md +44 -0
  35. package/scripts/lib/dashboard/graph-html.cjs +0 -0
  36. package/scripts/lib/detect/stack.cjs +455 -0
  37. package/scripts/lib/detect/stack.d.cts +44 -0
  38. package/scripts/lib/explore-parallel-runner/index.ts +138 -1
  39. package/scripts/lib/explore-parallel-runner/types.ts +27 -0
  40. package/scripts/lib/health-mirror/index.cjs +218 -1
  41. package/scripts/lib/manifest/skills.json +8 -0
  42. package/scripts/lib/mapper-spawn.cjs +257 -0
  43. package/scripts/lib/mapper-spawn.d.cts +60 -0
  44. package/scripts/lib/new-addendum.cjs +204 -0
  45. package/sdk/cli/commands/dashboard.ts +419 -0
  46. package/sdk/cli/index.js +1388 -3
  47. package/sdk/cli/index.ts +7 -0
  48. package/sdk/dashboard/data/_pkg-root.cjs +92 -0
  49. package/sdk/dashboard/data/cost-aggregator.cjs +187 -0
  50. package/sdk/dashboard/data/discovery.cjs +297 -0
  51. package/sdk/dashboard/data/risk-surface.cjs +136 -0
  52. package/sdk/dashboard/data/source.cjs +576 -0
  53. package/sdk/dashboard/tui/ansi.cjs +355 -0
  54. package/sdk/dashboard/tui/index.cjs +778 -0
  55. package/sdk/mcp/gdd-mcp/server.js +1117 -0
  56. package/skills/new-addendum/SKILL.md +81 -0
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: gdd-new-addendum
3
+ description: "Scaffolds a new Phase-54 composable reference addendum for a design-system, framework, or motion library: validates the kind and the slug, defaults composes_into by kind, and writes a 4-section skeleton at reference/{systems|frameworks|motion}/<name>.md from the pure generator. Use when adding stack-specific guidance that an explore mapper should compose at spawn time and you want the frontmatter, the composes_into wiring, and the mandatory sections correct from the first commit. Activates for requests involving authoring a reference addendum, adding stack-specific mapper guidance, scaffolding a systems or frameworks or motion doc, or registering a new design-system."
4
+ argument-hint: "<kind> <name>"
5
+ tools: Read, Write, Bash, AskUserQuestion
6
+ user-invocable: true
7
+ ---
8
+
9
+ # /gdd:new-addendum
10
+
11
+ **Role:** Scaffold a contract-compliant stack addendum. Validate the kind and the name, then write `reference/{systems|frameworks|motion}/<name>.md` from the pure generator at `scripts/lib/new-addendum.cjs`. This skill writes ONE reference file. It does NOT touch `reference/registry.json` and does NOT run any build; it prints the exact follow-up steps instead.
12
+
13
+ An addendum is a registry entry, not a skill. Read `reference/registry.json` for the `type:"stack-addendum"` entry shape and `scripts/lib/mapper-spawn.cjs` for how `composes_into` selects an addendum at spawn time. Read one shipped example first, for instance `reference/systems/tailwind.md`, to match the house style.
14
+
15
+ ## Step 1 - Gather the fields
16
+
17
+ 1. **kind**: the first token of `$ARGUMENTS` if present, else ask. Must be one of `system`, `framework`, or `motion`. This picks the target subdir and the default `composes_into`.
18
+ 2. **name**: the second token of `$ARGUMENTS` if present, else ask. Must match `^[a-z0-9][a-z0-9-._]*$`. The basename is also the matcher key in `mapper-spawn.cjs`, so it must equal the value `detectStack` reports for this stack (for example `tailwind`, `nextjs`, `framer-motion`). Reject a `reference/{dir}/<name>.md` collision.
19
+ 3. **composes_into** (optional): accept the kind default, or override with a comma list of mapper names. Defaults: `system` to `token-mapper, component-taxonomy-mapper`; `framework` to `component-taxonomy-mapper, visual-hierarchy-mapper`; `motion` to `motion-mapper`.
20
+
21
+ Resolve the target path and check for a collision:
22
+
23
+ ```bash
24
+ node -e "
25
+ const a = require('./scripts/lib/new-addendum.cjs');
26
+ console.log(a.targetPathFor(process.argv[1], process.argv[2]));
27
+ " "<kind>" "<name>"
28
+ ```
29
+
30
+ If that path already exists, stop and tell the user to edit the existing file instead.
31
+
32
+ ## Step 2 - Write the file
33
+
34
+ Build the record and render the skeleton with the pure generator, then write it with the Write tool (not shell redirection):
35
+
36
+ ```bash
37
+ node -e "
38
+ const a = require('./scripts/lib/new-addendum.cjs');
39
+ const rec = a.buildAddendumRecord({
40
+ kind: process.env.AD_KIND,
41
+ name: process.env.AD_NAME,
42
+ composesInto: process.env.AD_COMPOSES || undefined,
43
+ });
44
+ process.stdout.write(a.renderAddendumMd(rec));
45
+ "
46
+ ```
47
+
48
+ `buildAddendumRecord` throws on an invalid kind, an invalid name, or a malformed composes_into list. Surface the thrown message to the user and re-prompt the offending field. Capture stdout and write it verbatim to the path from Step 1 via the Write tool.
49
+
50
+ ## Step 3 - Fill the four sections
51
+
52
+ The skeleton ships four mandatory sections with TODO placeholders: Conventions, File patterns, Gotchas, Example output. Replace every TODO with terse vendor-checked bullets (keep the file at or under about 50 lines). Rules:
53
+
54
+ - Lead with the real vendor docs URL in the attribution comment.
55
+ - The Example output block uses ONLY the Phase 52 DesignContext schema (node types token / component / variant / state / motion-fragment / screen / layer; edge types uses-token / composes / extends / transitions-to / mirrors).
56
+ - Tags must come from `reference/design-context-tag-vocab.md`; drop any tag not in that vocabulary.
57
+ - For a motion addendum, reuse the `reference/motion-transition-taxonomy.md` duration classes (instant / quick / standard / slow / narrative) and call out the seconds-vs-ms-vs-no-duration unit trap.
58
+ - No em dashes anywhere (the `lint:prose` gate scans `reference/`).
59
+
60
+ ## Step 4 - Tell the user the follow-up
61
+
62
+ The skill stops here by contract. Print the next steps for the maintainer to run:
63
+
64
+ ```
65
+ 1. Add a registry entry for "<name>" to reference/registry.json
66
+ (name addendum-<kind>-<name>, path, type "stack-addendum", phase 54, kind, composes_into, description).
67
+ 2. node -e "require('./scripts/lib/reference-registry.cjs').validateRegistry({cwd:process.cwd()})"
68
+ must report ok:true (the round-trip scan picks up the new subdir file).
69
+ 3. npm test (the reference-registry + phase-54 suites must stay green).
70
+ ```
71
+
72
+ The registry round-trip test stays red until the registry entry exists; that is expected and is the maintainer's step.
73
+
74
+ ## Do Not
75
+
76
+ - Do not edit `reference/registry.json`, `package.json`, or `scripts/lib/manifest/skills.json`.
77
+ - Do not run a build or the registry generator for the user; print the steps.
78
+ - Do not write the file with shell redirection; use the Write tool so the content is exact.
79
+ - Do not invent vendor facts; the addendum content must be vendor-checked.
80
+
81
+ ## NEW-ADDENDUM COMPLETE