Tom Boucher
81f9534b5a
feat(adr-0002): command contract validation module + prose @-ref cleanup + workflow extraction
...
ADR-0002: commands/gsd/*.md contract now enforced at two layers:
LINT (scripts/lint-command-contract.cjs — new CI step):
- name: present, starts with gsd: or gsd-
- description: non-empty
- allowed-tools: non-empty, all entries canonical
- execution_context @-refs: resolve on disk, no trailing prose on same line
- handles both @~/ and $HOME/ path prefixes
TEST (tests/command-contract.test.cjs — 361 assertions):
- Behavioral contract for all 65 command files
- Replaces scattered coverage in enh-2790 + bug-3135
- Per-command per-rule test — one failure names the exact file + rule
CI (.github/workflows/test.yml):
- 'Lint — command contract (ADR-0002)' step added to lint-tests job
PROSE @-REF CLEANUP (39 command files, ~900 tokens/invocation recovered):
- Removed redundant @~/.claude/get-shit-done/... paths from <process> prose
- execution_context block is now the single authoritative load declaration
- Routing commands (sketch, spike, update, pause-work, etc.) keep routing
instructions; only the inert path token is stripped
WORKFLOW EXTRACTION (debug.md + thread.md, ~15,000 chars / ~3,750 tokens):
- get-shit-done/workflows/debug.md: full process extracted from commands/gsd/debug.md
- get-shit-done/workflows/thread.md: full process extracted from commands/gsd/thread.md
- Command files reduced to frontmatter + objective + execution_context + context
- debug.md: 9,603 → 1,703 chars; thread.md: 7,868 → 585 chars
RENAME:
- get-shit-done/workflows/extract_learnings.md → extract-learnings.md
(aligns with hyphen convention of all other workflow files)
DOCS:
- docs/INVENTORY.md: count 85→87, new rows, rename row, fix add-todo --backlog attribution
- docs/INVENTORY-MANIFEST.json: +debug.md +thread.md +extract-learnings.md -extract_learnings.md
Closes ADR-0002 implementation.
2026-05-05 15:18:13 -04:00
Tom Boucher
e4ca76dbb7
fix: address all review findings on PR #1299
...
Remaining items from adversarial review:
- Add type: prompt to command frontmatter (consistency with complete-milestone)
- Replace git stats step with 4-method fallback chain (tag → STATE.md date →
earliest phase commit → skip gracefully)
- Add 7 fixture-based behavioral tests: archived milestone discovery,
multi-phase artifact discovery with varying completeness, empty .planning/
handling, output filename validation, git stats fallback verification,
type: prompt frontmatter check
Tests: 25/25 milestone-summary, 1236/1236 full suite
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-21 16:38:34 -04:00
Tom Boucher
679243b09a
fix: address review findings on milestone-summary PR
...
1. Add <success_criteria> section to command (pattern compliance)
2. Fix archived audit path: check .planning/milestones/ not .planning/
3. Add RESEARCH.md to command context block
4. Add empty phase handling (graceful skip to minimal summary)
5. Add overwrite guard for existing summary files
6. Add 7 new tests: overwrite guard, empty phases, audit paths,
success_criteria, RESEARCH.md context, artifact path resolution
Tests: 18/18 milestone-summary, 1184/1184 full suite
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-21 16:31:13 -04:00
Tom Boucher
832b6e19ac
feat: add /gsd:milestone-summary for post-build onboarding ( #1298 )
...
New command that generates a comprehensive project summary from completed
milestone artifacts. Designed for team onboarding — new contributors can
run this against a completed project and understand what was built, how,
and why, with optional interactive Q&A grounded in build artifacts.
- commands/gsd/milestone-summary.md: command definition
- get-shit-done/workflows/milestone-summary.md: 9-step workflow
- tests/milestone-summary.test.cjs: 11 tests (command + workflow validation)
- tests/copilot-install.test.cjs: bump expected skill count 53→54
Reads: ROADMAP, REQUIREMENTS, PROJECT, CONTEXT, SUMMARY, VERIFICATION,
RETROSPECTIVE artifacts. Writes to .planning/reports/MILESTONE_SUMMARY-v{X}.md.
Closes #1298
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-21 16:31:13 -04:00