What problem does it solve?
Agent-facing documentation like AGENTS.md drifts out of sync with the codebase after refactors, renames, and crate changes, causing AI agents and developers to follow stale paths and outdated structural information.
Core Features & Use Cases
- Structure Sync: Runs a pre-commit script to refresh the crate inventory in the STRUCTURE section after adding or removing crates.
- Entry Point Verification: Validates every path in the WHERE TO LOOK table against the actual filesystem, updating moved files and removing dead references.
- Hotspot Detection: Computes complexity hotspots using git churn and file size metrics to highlight large, frequently changed files.
- Use Case: After renaming several core modules during a refactor, run this Skill to verify all AGENTS.md paths, recompute complexity hotspots, update the datestamp, and commit the refreshed documentation.
Quick Start
Ask the agent to refresh the fact-based sections of crates/AGENTS.md so they match the current codebase state.