Install
openclaw skills install refactor-agents-mdRefactors AGENTS.md files into a minimal root file plus topic-specific follow-up docs using progressive disclosure. Use when cleaning up, splitting, or reviewing AGENTS.md / CLAUDE.md guidance — or when the file has grown into a "ball of mud" with contradictions, bloat, and stale instructions.
openclaw skills install refactor-agents-md<quick_start>
<essential_principles> <principle name="keep-root-minimal"> The root AGENTS.md should contain only what applies to every task: a one-line project description, package manager expectations if non-default, non-standard build or typecheck commands, and truly universal constraints. </principle>
<principle name="resolve-conflicts-first"> If two instructions disagree, do not silently merge them. Surface the conflict, explain the tradeoff briefly, and ask the user which version to keep before rewriting. </principle> <principle name="group-by-purpose"> Move remaining guidance into separate files grouped by topic or behavior, not by author, chronology, or file location. </principle> <principle name="delete-bloat"> Flag redundant, vague, self-evident, or outdated instructions for deletion instead of preserving them in a new location. </principle> <principle name="prefer_progressive_disclosure"> Keep the root file as a router into narrower guidance. Detail belongs in follow-up docs that are only read when relevant. </principle> </essential_principles> <intake> Ask the user which mode they want: 1. Review only 2. Propose a rewrite 3. Apply the refactor in the repoIf the user already gave enough context, skip extra questions and go straight to the matching workflow. </intake>
<routing> <mode name="review-only">workflows/audit-agents-md.md</mode> <mode name="propose-rewrite">workflows/audit-agents-md.md</mode> <mode name="apply-refactor">workflows/refactor-agents-md.md</mode> </routing><reference_index> All shared guidance lives in references/:
Principles and heuristics: references/principles.md </reference_index>
<workflows_index> <workflow name="audit-agents-md.md">Review an AGENTS.md file, classify instructions, and propose a minimal split.</workflow> <workflow name="refactor-agents-md.md">Inspect the repo and rewrite AGENTS.md files in place.</workflow> </workflows_index>
<success_criteria> The skill is complete when it can consistently: