softaworks avatar

Agent Md Refactor

If your AGENTS.md has turned into a 500-line wall of text that nobody reads, this will split it into something manageable. It walks through finding contradictions in your instructions, pulling out the truly essential stuff for the root file (project description, non-standard commands, critical overrides), then organizing everything else into linked topic files like typescript.md or testing.md. The process flags vague instructions like "write clean code" for deletion since they just waste context. The goal is a root file under 50 lines that links to self-contained guides, following progressive disclosure principles. Works for CLAUDE.md, COPILOT.md, or whatever you call your agent instructions.

skills.sh installs
4.3K
GitHub stars
2.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add softaworks/agent-toolkit --skill agent-md-refactor --agent claude-code

Installs into .claude/skills of the current project.

Files

Agent MD Refactor

Refactor bloated agent instruction files (AGENTS.md, CLAUDE.md, COPILOT.md, etc.) to follow progressive disclosure principles - keeping essentials at root and organizing the rest into linked, categorized files.


Triggers

Use this skill when:

  • "refactor my AGENTS.md" / "refactor my CLAUDE.md"
  • "split my agent instructions"
  • "organize my CLAUDE.md file"
  • "my AGENTS.md is too long"
  • "progressive disclosure for my instructions"
  • "clean up my agent config"

Quick Reference

PhaseActionOutput
1. AnalyzeFind contradictionsList of conflicts to resolve
2. ExtractIdentify essentialsCore instructions for root file
3. CategorizeGroup remaining instructionsLogical categories
4. StructureCreate file hierarchyRoot + linked files
5. PruneFlag for deletionRedundant/vague instructions

Process

Phase 1: Find Contradictions

Identify any instructions that conflict with each other.

Sponsors

Details

Repository
github.com/softaworks/agent-toolkit
Categories
Documentation, Code Review & Quality, AI & Agent Building

More from softaworks/agent-toolkit

All 43
1shubhamsaboo avatarpython-expertshubhamsaboo/awesome-llm-appsSenior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Py4.3Kskills.sh installs
2dotnet avatardotnet-pinvokedotnet/skillsCorrectly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle,4.3Kskills.sh installs
3ant-design avatarant-designant-design/antd-skillDecision guide for antd 6.x, Ant Design Pro 5/ProComponents, Ant Design X v2, and the offline `@ant-design/cli`. Use for component selection, theming/tokens, SS4.3Kskills.sh installs
4dotnet avatarcrap-scoredotnet/skillsCalculates targeted CRAP (Change Risk Anti-Patterns) scores for a named .NET method, class, or single source file. Use when the user explicitly asks to compute 4.2Kskills.sh installs
5zc277584121 avatarremove-ai-stylezc277584121/marketing-skillsReview and rewrite Chinese or English prose to reduce AI-generated patterns. Use for de-AI polishing, natural-language rewrites, robotic or formulaic writing, a4.2Kskills.sh installs
6xixu-me avatarxgetxixu-me/xgetUse when tasks involve Xget URL rewriting, registry/package/container/API acceleration, integrating Xget into Git, download tools, package managers, container b4.2Kskills.sh installs