@hegemonart/get-design-done 1.28.0 → 1.28.5
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 +78 -0
- package/SKILL.md +1 -1
- package/hooks/gdd-decision-injector.js +149 -3
- package/package.json +1 -1
- package/reference/adr-format.md +96 -0
- package/reference/apply-reflections-procedure.md +68 -0
- package/reference/architecture-vocabulary.md +102 -0
- package/reference/cache-policy.md +126 -0
- package/reference/compare-rubric.md +171 -0
- package/reference/connections-onboarding.md +417 -0
- package/reference/context-md-format.md +106 -0
- package/reference/darkmode-audit-procedure.md +258 -0
- package/reference/debug-feedback-loops.md +119 -0
- package/reference/design-procedure.md +304 -0
- package/reference/discover-procedure.md +204 -0
- package/reference/explore-procedure.md +267 -0
- package/reference/health-mcp-detection.md +44 -0
- package/reference/health-skill-length-report.md +69 -0
- package/reference/heuristics.md +84 -0
- package/reference/milestone-completeness-rubric.md +87 -0
- package/reference/peer-cli-protocol.md +161 -0
- package/reference/plan-procedure.md +278 -0
- package/reference/registry.json +169 -1
- package/reference/registry.schema.json +1 -1
- package/reference/router-rules.md +84 -0
- package/reference/scan-procedure.md +731 -0
- package/reference/shared-preamble.md +78 -6
- package/reference/skill-authoring-contract.md +128 -0
- package/reference/start-procedure.md +115 -0
- package/reference/style-doc-procedure.md +150 -0
- package/reference/threat-modeling.md +101 -0
- package/reference/verify-procedure.md +512 -0
- package/scripts/validate-skill-length.cjs +283 -0
- package/skills/add-backlog/SKILL.md +1 -0
- package/skills/analyze-dependencies/SKILL.md +33 -122
- package/skills/apply-reflections/SKILL.md +1 -40
- package/skills/audit/SKILL.md +3 -1
- package/skills/bandit-status/SKILL.md +31 -66
- package/skills/benchmark/SKILL.md +15 -55
- package/skills/brief/SKILL.md +12 -1
- package/skills/cache-manager/SKILL.md +3 -57
- package/skills/check-update/SKILL.md +38 -75
- package/skills/compare/SKILL.md +29 -269
- package/skills/complete-cycle/SKILL.md +1 -1
- package/skills/connections/SKILL.md +21 -427
- package/skills/continue/SKILL.md +1 -0
- package/skills/darkmode/SKILL.md +32 -287
- package/skills/debug/SKILL.md +11 -8
- package/skills/design/SKILL.md +27 -245
- package/skills/discover/SKILL.md +26 -133
- package/skills/discuss/SKILL.md +18 -2
- package/skills/explore/SKILL.md +40 -205
- package/skills/fast/SKILL.md +1 -0
- package/skills/figma-write/SKILL.md +2 -2
- package/skills/health/SKILL.md +11 -33
- package/skills/help/SKILL.md +1 -0
- package/skills/list-assumptions/SKILL.md +1 -0
- package/skills/map/SKILL.md +8 -31
- package/skills/new-cycle/SKILL.md +3 -1
- package/skills/next/SKILL.md +1 -0
- package/skills/note/SKILL.md +1 -0
- package/skills/optimize/SKILL.md +21 -44
- package/skills/pause/SKILL.md +1 -0
- package/skills/peer-cli-add/SKILL.md +26 -108
- package/skills/peer-cli-customize/SKILL.md +22 -42
- package/skills/peers/SKILL.md +33 -57
- package/skills/plan/SKILL.md +33 -220
- package/skills/plant-seed/SKILL.md +1 -0
- package/skills/pr-branch/SKILL.md +1 -0
- package/skills/progress/SKILL.md +1 -7
- package/skills/quality-gate/SKILL.md +34 -166
- package/skills/quick/SKILL.md +1 -0
- package/skills/reapply-patches/SKILL.md +1 -0
- package/skills/recall/SKILL.md +1 -0
- package/skills/resume/SKILL.md +1 -0
- package/skills/review-backlog/SKILL.md +1 -0
- package/skills/router/SKILL.md +3 -59
- package/skills/scan/SKILL.md +36 -675
- package/skills/settings/SKILL.md +1 -0
- package/skills/ship/SKILL.md +1 -0
- package/skills/sketch/SKILL.md +1 -1
- package/skills/sketch-wrap-up/SKILL.md +13 -54
- package/skills/spike/SKILL.md +1 -1
- package/skills/spike-wrap-up/SKILL.md +12 -46
- package/skills/start/SKILL.md +13 -112
- package/skills/stats/SKILL.md +1 -0
- package/skills/style/SKILL.md +18 -140
- package/skills/synthesize/SKILL.md +1 -0
- package/skills/timeline/SKILL.md +1 -0
- package/skills/todo/SKILL.md +1 -0
- package/skills/turn-closeout/SKILL.md +36 -56
- package/skills/undo/SKILL.md +1 -0
- package/skills/update/SKILL.md +1 -0
- package/skills/verify/SKILL.md +42 -457
- package/skills/warm-cache/SKILL.md +3 -35
- package/skills/zoom-out/SKILL.md +26 -0
|
@@ -9,107 +9,87 @@ tools: Read, Bash
|
|
|
9
9
|
|
|
10
10
|
## Role
|
|
11
11
|
|
|
12
|
-
You are a deterministic **closeout** skill. You close the per-turn telemetry gap on runtimes that don't expose a Stop event (codex, gemini, and 11 others). You are a code-level mirror of `hooks/gdd-turn-closeout.js` (D-10): same conditions, same idempotence, same emitted event shape. The only difference: the JS hook emits the nudge as `additionalContext` via the harness; this skill prints the nudge directly to the user.
|
|
12
|
+
You are a deterministic **closeout** skill. You close the per-turn telemetry gap on runtimes that don't expose a Stop event (codex, gemini, and 11 others). You are a code-level mirror of `hooks/gdd-turn-closeout.js` (D-10): same conditions, same idempotence, same emitted event shape. The only difference: the JS hook emits the nudge as `additionalContext` via the harness; this skill prints the nudge directly to the user. See `./reference/milestone-completeness-rubric.md` §"Task level" for the broader closeout discipline (what "turn complete" means within a stage).
|
|
13
13
|
|
|
14
|
-
**When to invoke:** orchestrator skills (`/gdd:next`, `/gdd:design`, `/gdd:verify`) tail-call this skill as their final step before returning
|
|
14
|
+
**When to invoke:** orchestrator skills (`/gdd:next`, `/gdd:design`, `/gdd:verify`) tail-call this skill as their final step before returning. Adoption is incremental — each orchestrator can wire the tail-call independently; the skill exists as a stable, callable surface today.
|
|
15
15
|
|
|
16
16
|
## Invocation Contract
|
|
17
17
|
|
|
18
|
-
- **Input**: none. Operates on `.design/STATE.md` and `.design/telemetry/events.jsonl` in
|
|
18
|
+
- **Input**: none. Operates on `.design/STATE.md` and `.design/telemetry/events.jsonl` in cwd.
|
|
19
19
|
- **Output**: at most one printed line — the nudge — or silent return.
|
|
20
|
-
- **Latency budget**: ≤10ms typical
|
|
21
|
-
- **Idempotence**: if the most recent event
|
|
22
|
-
- **Non-blocking**: any I/O failure → silent return. This skill
|
|
20
|
+
- **Latency budget**: ≤10ms typical. Read **only** STATE.md and the tail of events.jsonl.
|
|
21
|
+
- **Idempotence**: if the most recent event is already a `turn_end` for the current `(stage, task_progress)` tuple, skip append but still print nudge.
|
|
22
|
+
- **Non-blocking**: any I/O failure → silent return. This skill never gates the user.
|
|
23
23
|
|
|
24
24
|
## Algorithm
|
|
25
25
|
|
|
26
|
-
Execute
|
|
26
|
+
Execute in order; stop at the first early-return.
|
|
27
27
|
|
|
28
|
-
### Step 1 —
|
|
28
|
+
### Step 1 — Read STATE.md
|
|
29
29
|
|
|
30
|
-
Read `.design/STATE.md`.
|
|
30
|
+
Read `.design/STATE.md`. Missing or unreadable → **return silently** (no print, no append).
|
|
31
31
|
|
|
32
|
-
### Step 2 — Parse
|
|
32
|
+
### Step 2 — Parse `<position>` block
|
|
33
33
|
|
|
34
|
-
Lightweight-parse only
|
|
34
|
+
Lightweight-parse only `<position>…</position>` (regex `/<position>([\s\S]*?)<\/position>/` then per-line `key: value`). Extract `stage`, `status`, `task_progress`. Do not invoke the full STATE parser.
|
|
35
35
|
|
|
36
|
-
If `status != "in_progress"
|
|
36
|
+
If `status != "in_progress"` → **return silently**. Pipeline is initialized / completed / blocked — no turn-end gap to close.
|
|
37
37
|
|
|
38
38
|
### Step 3 — Tail the last event line
|
|
39
39
|
|
|
40
|
-
Read **only the last 8 KiB** of `.design/telemetry/events.jsonl
|
|
41
|
-
- The file is missing.
|
|
42
|
-
- The file is empty.
|
|
43
|
-
- The last line fails to parse as JSON.
|
|
44
|
-
- The last line's `timestamp` is missing or unparseable.
|
|
40
|
+
Read **only the last 8 KiB** of `.design/telemetry/events.jsonl`. Treat as "stale by definition":
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
- File missing.
|
|
43
|
+
- File empty.
|
|
44
|
+
- Last line fails JSON parse.
|
|
45
|
+
- Last line's `timestamp` is missing or unparseable.
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
Otherwise compute `now - last_event.timestamp`. Gap < 60 seconds → user is actively mid-turn → **return silently** (next real event closes the gap naturally). Bash one-liner for the tail: `tail -n 1 .design/telemetry/events.jsonl 2>/dev/null`.
|
|
49
48
|
|
|
50
49
|
### Step 4 — Idempotence check, then append
|
|
51
50
|
|
|
52
|
-
If
|
|
51
|
+
If last event is already `{type:"turn_end", stage:<same>, payload:{task_progress:<same>}}` for the exact `(stage, task_progress)` from Step 2: **skip append** but proceed to Step 5.
|
|
53
52
|
|
|
54
|
-
Otherwise append
|
|
53
|
+
Otherwise append one JSONL line to `.design/telemetry/events.jsonl`:
|
|
55
54
|
|
|
56
55
|
```json
|
|
57
56
|
{"type":"turn_end","timestamp":"<ISO 8601 now>","sessionId":"<session-id-or-'turn-closeout'>","stage":"<stage>","payload":{"task_progress":"<N/M>"},"_meta":{"source":"gdd-turn-closeout-skill"}}
|
|
58
57
|
```
|
|
59
58
|
|
|
60
|
-
Create `.design/telemetry/` if missing.
|
|
59
|
+
Create `.design/telemetry/` if missing. Append is a single `appendFile`-equivalent call (writer assumes append-atomicity per Plan 20-06).
|
|
61
60
|
|
|
62
61
|
### Step 5 — Print the nudge
|
|
63
62
|
|
|
64
63
|
Match `task_progress` against `^(\d+)/(\d+)$`:
|
|
65
64
|
|
|
66
|
-
- **Numerator equals denominator and denominator > 0** (e.g. `5/5
|
|
65
|
+
- **Numerator equals denominator and denominator > 0** (e.g. `5/5`): `Stage <stage> complete — run /gdd:next or /gdd:reflect`.
|
|
66
|
+
- **Otherwise** (mid-task, e.g. `3/7`, `0/0`, malformed): `Stage <stage> paused mid-task — resume with /gdd:resume`.
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- **Otherwise** (mid-task, e.g. `3/7`, `0/0`, malformed):
|
|
71
|
-
|
|
72
|
-
> Stage `<stage>` paused mid-task — resume with `/gdd:resume`
|
|
73
|
-
|
|
74
|
-
Print exactly one of these two lines. No additional commentary, no explanations of what the skill did — the nudge is the user-facing surface.
|
|
68
|
+
One line exactly. No commentary — the nudge is the user-facing surface.
|
|
75
69
|
|
|
76
70
|
## Failure Modes
|
|
77
71
|
|
|
78
|
-
Every step above has an explicit silent-return on failure. The skill must remain non-blocking under all conditions:
|
|
79
|
-
|
|
80
72
|
| Condition | Behavior |
|
|
81
73
|
|-----------|----------|
|
|
82
|
-
|
|
|
83
|
-
| `<position>`
|
|
74
|
+
| STATE.md missing/unreadable | Silent return |
|
|
75
|
+
| `<position>` absent or malformed | Silent return |
|
|
84
76
|
| `status != "in_progress"` | Silent return |
|
|
85
|
-
|
|
|
86
|
-
| Last event
|
|
87
|
-
| Last event
|
|
88
|
-
| Append fails (permission, disk full) | Print
|
|
89
|
-
| Any uncaught throw
|
|
77
|
+
| `events.jsonl` missing | Treat as stale → fall through to append + nudge |
|
|
78
|
+
| Last event unparseable | Treat as stale → fall through |
|
|
79
|
+
| Last event < 60s old | Silent return |
|
|
80
|
+
| Append fails (permission, disk full) | Print nudge anyway; do not surface I/O error |
|
|
81
|
+
| Any uncaught throw | Silent return |
|
|
90
82
|
|
|
91
83
|
## Equivalence with the JS hook
|
|
92
84
|
|
|
93
|
-
This skill and `hooks/gdd-turn-closeout.js` MUST stay code-level equivalent.
|
|
94
|
-
|
|
95
|
-
- Same four early-return branches (no STATE / not in_progress / fresh event / no-op).
|
|
96
|
-
- Same staleness threshold: **60 seconds**.
|
|
97
|
-
- Same idempotence guard: `(type=turn_end, stage, payload.task_progress)` triple.
|
|
98
|
-
- Same emitted event shape (only `_meta.source` differs: `gdd-turn-closeout` vs `gdd-turn-closeout-skill`, so reflector telemetry can distinguish hook-driven vs skill-driven turn-ends).
|
|
99
|
-
- Same nudge wording for both `N/N` and mid-task cases.
|
|
100
|
-
|
|
101
|
-
If you change one, change the other in the same plan. Plan 25-09's `tests/turn-closeout-hook.test.cjs` covers the JS hook; the parallel coverage for this skill rides on Plan 25-09's Phase 25 baseline.
|
|
85
|
+
This skill and `hooks/gdd-turn-closeout.js` MUST stay code-level equivalent: same four early-return branches, same 60-second staleness threshold, same idempotence guard (`type=turn_end, stage, payload.task_progress`), same event shape (only `_meta.source` differs: `gdd-turn-closeout` vs `gdd-turn-closeout-skill` so reflector telemetry can distinguish hook-driven vs skill-driven). Same nudge wording for both N/N and mid-task cases. Change one → change the other in the same plan. Plan 25-09's `tests/turn-closeout-hook.test.cjs` covers the JS hook.
|
|
102
86
|
|
|
103
87
|
## Non-Goals
|
|
104
88
|
|
|
105
|
-
- **Not a state writer.**
|
|
106
|
-
- **Not a stage transition.**
|
|
107
|
-
- **Not a Stop-event harness.** Cross-runtime Stop-event support at the harness level is
|
|
89
|
+
- **Not a state writer.** Never edits STATE.md. The events.jsonl append is the only side effect.
|
|
90
|
+
- **Not a stage transition.** `turn_end` is within-stage, not a state-machine move; downstream tools ignore it for transition gating.
|
|
91
|
+
- **Not a Stop-event harness.** Cross-runtime Stop-event support at the harness level is out-of-scope for Phase 25 (CONTEXT.md OOS).
|
|
108
92
|
|
|
109
93
|
## Integration Point
|
|
110
94
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
> Invoke skill `gdd-turn-closeout`.
|
|
114
|
-
|
|
115
|
-
Tail-call wiring is intentionally not part of v1.25 (Plan 25-04 ships only the callable surface). Each orchestrator can adopt the wiring independently in a follow-up.
|
|
95
|
+
Canonical tail-call sites per D-11: `/gdd:next`, `/gdd:design`, `/gdd:verify`. Each orchestrator's final step before returning to the user invokes `gdd-turn-closeout`. Tail-call wiring intentionally not part of v1.25 (Plan 25-04 ships only the callable surface).
|
package/skills/undo/SKILL.md
CHANGED
package/skills/update/SKILL.md
CHANGED