Use this skill when a user wants to standardize repository-level agent instructions, especially when they mention:
- integrating
CLAUDE.mdandAGENTS.md - making one file the source of truth
- adopting a redirect-based pattern
- removing duplicated guidance across agent-specific instruction files
Goal
Make AGENTS.md the shared instruction entrypoint for the repo.
In the common case:
- Move or merge reusable repository guidance into
AGENTS.md. - Reduce
CLAUDE.mdto a single@AGENTS.mdredirect. - Keep agent-specific differences only if they are truly necessary.
Workflow
- Read the current
CLAUDE.mdandAGENTS.mdif they exist. - Identify which content is shared repo guidance versus tool-specific behavior.
- Put the shared, durable guidance in
AGENTS.md. - Remove duplication so
CLAUDE.mddoes not drift fromAGENTS.md. - If the repo follows the redirect-based setup, replace
CLAUDE.mdwith exactly@AGENTS.md. - Verify that no important instruction was dropped during consolidation.
Rules
- Prefer one source of truth over mirrored copies.
- Preserve repository-specific rules; do not overwrite them with generic boilerplate.
- Keep
AGENTS.mdconcise and repo-focused. - Do not invent extra files unless the repo already uses a multi-level instruction layout.
- If a subdirectory already has its own
AGENTS.md, keep the root file focused on root-level guidance and references to child scopes.
Verification
After editing:
- diff
CLAUDE.mdandAGENTS.md - confirm
CLAUDE.mdis only a redirect when using the redirect-based pattern - check that any previously documented repo rules still exist in
AGENTS.md