compound-refresh

Audit docs/solutions Markdown files for staleness, duplication, and broken references.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/lucasmccomb/ccgm --skill compound-refresh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compound-refresh
Source: https://github.com/lucasmccomb/ccgm/tree/main/modules/compound-knowledge/skills/compound-refresh
Command: npx skills add https://github.com/lucasmccomb/ccgm --skill compound-refresh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solution documentation in docs/solutions can become stale, reference deleted or moved code, duplicate other entries, or drift in relevance; that makes retrieval noisy and onboarding harder. This Skill performs a structured audit to identify outdated, missing, consolidated, or duplicate solution docs and recommends or applies corrective actions.

Core Features & Use Cases

  • Inventory & Validation: Walks docs/solutions/**/*.md, reads frontmatter and body, records path, mtime, and metadata, and surfaces invalid frontmatter for user correction.
  • Staleness Probes & Heuristics: Verifies referenced file existence and moved paths, checks for missing identifiers, computes age versus severity thresholds, and classifies each doc into Keep, Update, Consolidate, Replace, or Delete.
  • Modes & Safe Application: Supports interactive, autofix, and report-only modes, writes a run artifact summarizing outcomes, stages only touched docs and the artifact, and enforces commit/worktree safety rules before applying changes.

Quick Start

Run compound-refresh from the repository root in report-only mode to generate a classification table of docs/solutions files.

Frequently Asked Questions about compound-refresh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect stale solution documentation that references deleted or moved code?

Solution documentation staleness is detected by walking docs/solutions/**/*.md files, verifying referenced code paths exist, checking for moved paths, and flagging invalid references during scheduled maintenance or post-refactor audits.

Can I audit markdown documentation for duplication and consolidation candidates automatically?

Markdown documentation duplication and consolidation candidates are identified by reading frontmatter and body content, computing age-versus-severity heuristics, and classifying each file into Keep, Update, Consolidate, Replace, or Delete outcomes.

What is the safest way to run a documentation staleness audit before applying fixes?

Report-only mode generates a classification table of docs/solutions files without modifying anything, allowing you to review Keep, Update, Consolidate, Replace, and Delete recommendations before staging changes.

How does automated documentation maintenance handle git commit and worktree safety?

Automated documentation maintenance enforces commit and worktree safety rules before applying changes, stages only touched docs and the run artifact, and supports interactive, autofix, and report-only modes to control application.

When should I run a solution docs audit after refactoring code?

A solution docs audit should be run post-refactor to detect identifier drift, missing referenced code, and moved file paths, ensuring documentation accuracy and reducing retrieval noise and onboarding friction.

Does solution documentation maintenance require external model invocation to classify files?

Solution documentation maintenance avoids external model invocation entirely, relying on file existence probes, identifier checks, and age-versus-severity heuristics to classify files and produce corrective action recommendations.