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.
52 lines
1.8 KiB
Markdown
52 lines
1.8 KiB
Markdown
---
|
|
type: prompt
|
|
name: gsd:milestone-summary
|
|
description: Generate a comprehensive project summary from milestone artifacts for team onboarding and review
|
|
argument-hint: "[version]"
|
|
allowed-tools:
|
|
- Read
|
|
- Write
|
|
- Bash
|
|
- Grep
|
|
- Glob
|
|
---
|
|
|
|
<objective>
|
|
Generate a structured milestone summary for team onboarding and project review. Reads completed milestone artifacts (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION files) and produces a human-friendly overview of what was built, how, and why.
|
|
|
|
Purpose: Enable new team members to understand a completed project by reading one document and asking follow-up questions.
|
|
Output: MILESTONE_SUMMARY written to `.planning/reports/`, presented inline, optional interactive Q&A.
|
|
</objective>
|
|
|
|
<execution_context>
|
|
@~/.claude/get-shit-done/workflows/milestone-summary.md
|
|
</execution_context>
|
|
|
|
<context>
|
|
**Project files:**
|
|
- `.planning/ROADMAP.md`
|
|
- `.planning/PROJECT.md`
|
|
- `.planning/STATE.md`
|
|
- `.planning/RETROSPECTIVE.md`
|
|
- `.planning/milestones/v{version}-ROADMAP.md` (if archived)
|
|
- `.planning/milestones/v{version}-REQUIREMENTS.md` (if archived)
|
|
- `.planning/phases/*-*/` (SUMMARY.md, VERIFICATION.md, CONTEXT.md, RESEARCH.md)
|
|
|
|
**User input:**
|
|
- Version: $ARGUMENTS (optional — defaults to current/latest milestone)
|
|
</context>
|
|
|
|
<process>
|
|
Execute end-to-end.
|
|
</process>
|
|
|
|
<success_criteria>
|
|
- Milestone version resolved (from args, STATE.md, or archive scan)
|
|
- All available artifacts read (ROADMAP, REQUIREMENTS, CONTEXT, SUMMARY, VERIFICATION, RESEARCH, RETROSPECTIVE)
|
|
- Summary document written to `.planning/reports/MILESTONE_SUMMARY-v{version}.md`
|
|
- All 7 sections generated (Overview, Architecture, Phases, Decisions, Requirements, Tech Debt, Getting Started)
|
|
- Summary presented inline to user
|
|
- Interactive Q&A offered
|
|
- STATE.md updated
|
|
</success_criteria>
|