|
49 | 49 | | **Greenfield Bias** | Works well for new projects | `/speckit.discover-constitution` generates constitutions from existing code | |
50 | 50 | | **Task Overhead** | Full spec workflow for everything | `/speckit.quickfix` provides lightweight workflow for bug fixes | |
51 | 51 | | **Documentation Drift** | Specs accumulate and become stale | `/speckit.release` archives artifacts and maintains living docs | |
| 52 | +| **Repo Clutter** | AI-generated docs and stale drafts accumulate | `/speckit.harvest` consolidates knowledge and archives obsolete artifacts | |
52 | 53 | | **Constitution Staleness** | No formal update process | `/speckit.evolve-constitution` proposes amendments from findings | |
53 | 54 | | **Context Management** | Same context for all tasks | Right-sized workflows optimize AI agent effectiveness | |
54 | 55 |
|
@@ -404,6 +405,44 @@ Use the **`/speckit.release`** command to archive development artifacts and prep |
404 | 405 | - `/.documentation/decisions/ADR-{NNN}.md` - Architectural Decision Records |
405 | 406 | - Updated `CHANGELOG.md` |
406 | 407 |
|
| 408 | +### Harvest Documentation Cleanup |
| 409 | + |
| 410 | +Use the **`/speckit.harvest`** command to clean stale docs, rewrite spec-linked code comments, and archive obsolete artifacts after preserving useful knowledge in living documentation: |
| 411 | + |
| 412 | +```bash |
| 413 | +# Full harvest |
| 414 | +/speckit.harvest |
| 415 | + |
| 416 | +# Documentation-only review and cleanup plan |
| 417 | +/speckit.harvest --scope=docs |
| 418 | + |
| 419 | +# Rewrite stale spec/task references in code comments only |
| 420 | +/speckit.harvest --scope=comments |
| 421 | + |
| 422 | +# Dry-run inventory and report only |
| 423 | +/speckit.harvest --scope=scan |
| 424 | +``` |
| 425 | + |
| 426 | +**Key Features**: |
| 427 | + |
| 428 | +- **Knowledge Preservation First** - Updates living docs before archival |
| 429 | +- **Documentation Scoring** - Assigns taxonomy, usefulness score, and disposition to scanned artifacts |
| 430 | +- **Comment Hygiene** - Rewrites spec-linked comments into self-contained code documentation |
| 431 | +- **Safe Archival** - Moves stale content to `/.archive/` with preserved structure |
| 432 | +- **Approval Gate** - Presents a harvest plan and requires explicit confirmation before changes |
| 433 | + |
| 434 | +**Output**: |
| 435 | + |
| 436 | +- Updated `CHANGELOG.md` or living docs where knowledge is harvested |
| 437 | +- Harvest report at `/.documentation/copilot/harvest-YYYY-MM-DD.md` |
| 438 | +- Archived stale docs and completed artifacts under `/.archive/` |
| 439 | + |
| 440 | +**When to Use**: |
| 441 | + |
| 442 | +- After several specs or quickfixes have accumulated supporting docs |
| 443 | +- When AI-generated reviews, drafts, or session notes are cluttering the repo |
| 444 | +- Before a release or documentation cleanup pass |
| 445 | + |
407 | 446 | ### Constitution Evolution |
408 | 447 |
|
409 | 448 | Use the **`/speckit.evolve-constitution`** command to analyze PR reviews and propose constitution amendments: |
@@ -579,6 +618,7 @@ These commands only require a constitution and work independently of the spec wo |
579 | 618 | | `/speckit.site-audit` | Comprehensive codebase audit for security, quality, and compliance | |
580 | 619 | | `/speckit.quickfix` | Rapid bug fixes and small features without full spec overhead | |
581 | 620 | | `/speckit.release` | Archive dev artifacts at release and generate release documentation | |
| 621 | +| `/speckit.harvest` | Harvest living knowledge from stale docs and archive obsolete artifacts | |
582 | 622 | | `/speckit.evolve-constitution` | Propose constitution amendments based on PR review patterns | |
583 | 623 |
|
584 | 624 | #### Spec Workflow Commands |
@@ -657,6 +697,7 @@ Spec Kit Spark is actively developed with a clear vision for the future: |
657 | 697 | - ✅ Adversarial risk analysis (`/speckit.critic`) |
658 | 698 | - ✅ Lightweight quickfix workflow (`/speckit.quickfix`) |
659 | 699 | - ✅ Release documentation management (`/speckit.release`) |
| 700 | +- ✅ Documentation harvest and cleanup workflow (`/speckit.harvest`) |
660 | 701 | - ✅ Constitution evolution (`/speckit.evolve-constitution`) |
661 | 702 | - ✅ 17+ AI agent integrations |
662 | 703 |
|
|
0 commit comments