claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Merges ephemeral report and analysis artifacts into permanent documentation. Use when LLM-generated markdown files have accumulated and need consolidation.
$ npx -y skills add athola/claude-night-market --skill doc-consolidation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/doc-consolidationContext preview
The summary Claude sees to decide when to auto-load this skill.
Merges ephemeral report and analysis artifacts into permanent documentation. Use when LLM-generated markdown files have accumulated and need consolidation.
name: doc-consolidation description: Merges ephemeral report and analysis artifacts into permanent documentation. Use when LLM-generated markdown files have accumulated and need consolidation. globs: "**/*.md" alwaysApply: false category: documentation tags: - docs - consolidation - cleanup - git-hygiene - knowledge-management status: stable created: 2025-12-06 updated: 2025-12-06 modules: - modules/candidate-detection.md - modules/content-analysis.md - modules/destination-routing.md - modules/merge-execution.md model_hint: standard
Extracts valuable knowledge from ephemeral LLM outputs and merges it into permanent documentation.
Use this skill when:
Do NOT use when:
(`docs/`, `skills/`)
When merging content into permanent documentation, follow `Skill(leyline:markdown-formatting)` conventions: wrap prose at 80 chars (prefer sentence/clause boundaries), blank lines around headings, ATX headings only, blank line before lists, and reference-style links for long URLs.
/consolidate-docs
Or invoke directly:
I have some report files that need consolidating into permanent docs.
Read-only analysis to generate a consolidation plan:
1. **Detect candidates** - Find untracked markdown files with LLM output markers 2. **Analyze content** - Extract and categorize valuable sections 3. **Route destinations** - Match content to existing docs or propose new files 4. **Present plan** - Show user what will be consolidated and where
**Checkpoint**: User reviews and approves plan before execution.
After approval, performs the consolidation:
1. **Merge content** - Weave into existing docs or create new files 2. **Delete sources** - Remove ephemeral files after successful merge 3. **Generate summary** - Report what was created/updated/deleted
Load: `@modules/candidate-detection.md`
Identifies files using:
Load: `@modules/content-analysis.md`
For each candidate:
Load: `@modules/destination-routing.md`
For each valuable chunk:
Present consolidation plan to user:
# Consolidation Plan ## Source: API_REVIEW_REPORT.md | Content | Category | Value | Destination | Action | |---------|----------|-------|-------------|--------| | API inventory | Findings | High | docs/api-overview.md | Create | | Action items | Actionable | High | docs/plans/2025-12-06-api.md | Create | ### Post-Consolidation - Delete: API_REVIEW_REPORT.md Proceed with consolidation? [Y/n]
Load: `@modules/merge-execution.md`
After user approval:
Phase 1 tasks are delegated to haiku-class models for efficiency:
# plugins/sanctum/scripts/consolidation_planner.py handles: -scan_for_candidates() -extract_content_chunks() -categorize_chunks() -score_value() -find_semantic_matches()
Phase 2 stays on the main model for careful merge execution.
| Category | Description | Default Destination | |----------|-------------|---------------------| | Actionable Items | Tasks, TODOs, next steps | `docs/plans/YYYY-MM-DD-{topic}.md` | | Decisions
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.