refactor-agents
Installation
SKILL.md
Refactor AGENTS.md
Optimize an existing AGENTS.md file using progressive disclosure principles. Extracts essentials to root, groups related instructions into sub-files, and flags content for deletion.
Step 1: Load Current State
AGENTS_FILES = Glob("**/AGENTS.md")
ROOT_AGENTS = Read("AGENTS.md")
If no AGENTS.md exists: suggest Skill("init") instead.
Step 2: Find Contradictions
Analyze ROOT_AGENTS for conflicting instructions: