Install
openclaw skills install @clarezoe/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 @clarezoe/refactor-agents-md<quick_start>
<essential_principles> 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.
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. Move remaining guidance into separate files grouped by topic or behavior, not by author, chronology, or file location. Flag redundant, vague, self-evident, or outdated instructions for deletion instead of preserving them in a new location. Keep the root file as a router into narrower guidance. Detail belongs in follow-up docs that are only read when relevant. 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.
workflows/audit-agents-md.md workflows/audit-agents-md.md workflows/refactor-agents-md.md<reference_index> All shared guidance lives in references/:
Principles and heuristics: references/principles.md </reference_index>
<workflows_index> Review an AGENTS.md file, classify instructions, and propose a minimal split. Inspect the repo and rewrite AGENTS.md files in place. </workflows_index>
<success_criteria> The skill is complete when it can consistently: