Copilot & AGENTS Optimizer Skill
When to use
Use this skill when:
- Running
/docs-optimizeto refactor AGENTS.md and copilot-instructions.md - Adding new content to either file and needing to check if it belongs there
- After changes to
.augment/(new skills, rules, guidelines) that may make content in these files redundant - When either file exceeds the line budget
Do NOT use when:
- Writing application code
- Creating new skills or commands
Procedure: Optimize copilot/agents files
0. Analyze current state
Before changing anything, read and understand:
- Read
AGENTS.md— current content, line count, what's duplicated vs. unique. - Read
.github/copilot-instructions.md— same analysis. - Scan
.augment/— which skills, rules, and guidelines already cover topics from the files above.
3b. Scan the playbooks too, not only .augment/. A packages/<n>/AGENTS.md may
duplicate a playbook rather than a shipped rule, and dedup against .augment/ alone
misses it entirely — the content is not in .augment/ at all. Run
findRestatedSteps (src/scripts/derive_playbooks.ts) over each workspace file: a line
carrying a playbook's invokes id outside a link is a restatement to replace with a
pointer. The same id inside a link label is the shape the contract wants — see