
Description
The agent-md-refactor skill helps an AI agent reorganize a bloated instruction file, such as AGENTS.md, CLAUDE.md or COPILOT.md, into a set of smaller files. It follows the principle of progressive disclosure: the essentials stay in the root file, and the rest is split into linked, categorized files that the agent reads only when a task needs them. This keeps the instruction file short enough to be followed, which matters because a long file dilutes the rules that matter most. The skill is triggered by requests such as refactor my CLAUDE.md, split my agent instructions, my AGENTS.md is too long, or clean up my agent config. The agent reads the existing file, decides which content belongs at the root, and moves the detailed material into organized files with links back to them. It is useful when a project has accumulated many rules over time and the instruction file has grown hard to maintain. The skill is listed on skills.sh and is published in the softaworks agent-toolkit repository on GitHub, which shows about 2.6K stars. Its security checks all passed. Review the new file structure before you commit it, because moving rules can change how the agent behaves.…
Highlights
- Keeps essentials at the root of the instruction file
- Splits the rest into linked, categorized files
- Works with AGENTS.md, CLAUDE.md and COPILOT.md
- Triggered by requests to clean up agent config
- Progressive disclosure of instructions
Ratings & Reviews
No ratings yet
Be the first to rate agent-md-refactor.
People also visit
agent-md-refactor FAQ
What does this skill do?
It reorganizes a long agent instruction file into a short root file plus linked, categorized files that are read when needed.
How do I install it?
Run: npx skills add https://github.com/softaworks/agent-toolkit --skill agent-md-refactor
Which files does it handle?
AGENTS.md, CLAUDE.md, COPILOT.md and similar agent instruction files.
Why split the instructions?
The skill follows progressive disclosure, so the root file stays short and the detailed rules are loaded only when a task needs them.
What are the security audit results?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best agent-md-refactor alternatives?
Popular alternatives to agent-md-refactor include agents-md, init and agents-md. See all agent-md-refactor alternatives



















