What problem does it solve? Repository agent instructions often accumulate bloat: oversized AGENTS.md bootstrap files, legacy CLAUDE.md content, global applyTo scopes, and duplicated rules that inflate unconditional context cost and reduce reliability. This Skill audits that architecture and, when explicitly requested, restructures it. ## Core Features & Use Cases - Non-mutating audit mode: Classifies instruction material, estimates token costs, and reports findings with ERROR/WARN/INFO severity without changing files. - CLAUDE.md migration: Classifies legacy content as duplicate, bootstrap, scoped, reference, or skill material, migrates useful content, then removes the obsolete file. - Optimise mode: Moves rules between AGENTS.md, .agents/instructions/, and .agents/references/ with validated non-global applyTo scopes and discoverable task triggers. - Use Case: A repository has a 400-line CLAUDE.md and a bloated AGENTS.md. Run the audit to get a cost estimate and migration plan, then run optimise to cut bootstrap context while preserving all behaviour. ## Quick Start Use the agent-instructions-audit skill to audit this repository's agent instruction architecture and report context-cost savings.