Consolidate ephemeral LLM-generated markdown files into permanent documentation.
Consolidates ephemeral LLM-generated markdown files into permanent documentation.
/plugin marketplace add athola/claude-night-market/plugin install pensive@claude-night-marketConsolidates ephemeral LLM-generated markdown files (reports, analyses, reviews) into permanent documentation.
[file...] - Optional specific file paths to consolidate. If omitted, scans for all candidates.--scan-only - Show consolidation plan without executing (dry run).--docs-dir PATH - Target documentation directory (default: docs/).# Scan and consolidate all detected candidates
/merge-docs
# Consolidate specific files
/merge-docs API_REVIEW_REPORT.md REFACTORING_REPORT.md
# Preview without executing
/merge-docs --scan-only
# Target a different docs directory
/merge-docs --docs-dir plugins/abstract/docs/
Use the sanctum:doc-consolidation skill to orchestrate this workflow:
Skill(sanctum:doc-consolidation)If the user provides file paths, skip candidate detection and directly analyze those files:
python scripts/consolidation_planner.py analyze FILE1.md FILE2.md
python scripts/consolidation_planner.py plan FILE1.md --docs-dir docs/
Scan the repository for all consolidation candidates:
python scripts/consolidation_planner.py scan --repo-path .
Then generate plans for each detected candidate.
The skill identifies files by:
.md files)*_REPORT.md, *_ANALYSIS.md, *_REVIEW.md)docs/, skills/)Content is routed based on category:
| Category | Default Destination |
|---|---|
| Actionable Items | docs/plans/YYYY-MM-DD-{topic}.md |
| Decisions Made | docs/adr/NNNN-{date}-{topic}.md |
| Findings/Insights | Best-match existing doc |
| Metrics/Baselines | docs/benchmarks/ |
| Migration Guides | docs/migration-guide.md |
| API Changes | CHANGELOG.md or API docs |
This command invokes the doc-consolidation skill. For manual control:
# Direct script usage
python plugins/sanctum/skills/doc-consolidation/scripts/consolidation_planner.py scan
python plugins/sanctum/skills/doc-consolidation/scripts/consolidation_planner.py plan FILE.md
/update-docs - General documentation updates/git-catchup - Understand recent git changes/pr - PR preparation (warns about untracked reports)