Refactor AGENTS.md files so the root file stays small, stable, and broadly useful while detailed guidance moves into focused follow-up docs. The skill helps identify contradictions, separate essentials from bloat, and produce a clearer instruction hierarchy that is easier for agents to follow.
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:
If the user already gave enough context, skip extra questions and go straight to the matching workflow.
All shared guidance lives in references/:
Principles and heuristics: references/principles.md
The skill is complete when it can consistently:
共 2 个版本