Restructure project instruction files (AGENTS.md / legacy CLAUDE.md) to move content closer to where it is needed, reducing context bloat in the root file. Use when the user asks to restructure, reorganize, rebalance, or clean up instruction-file depth, or when root AGENTS.md content only applies to a specific subdirectory and should live there instead.
Ships in instructions-restructure. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Goal: reduce context bloat by keeping content only at the deepest level where it applies.
AGENTS.md = orientation onlyApplies equally to AGENTS.md and any legacy CLAUDE.md not yet migrated. Never edit a CLAUDE.md stub (one containing only @AGENTS.md) — restructure the AGENTS.md it points at instead.
find . \( -name "AGENTS.md" -o -name "CLAUDE.md" -o -name ".claude.local.md" \) \
-not -path '*/node_modules/*' -not -path '*/.git/*' 2>/dev/null | sort
Read each file and flag content that belongs deeper:
If both AGENTS.md and a non-stub CLAUDE.md exist in the same directory, flag the drift and propose consolidating on AGENTS.md first (see ../instructions-audit/references/migration.md). Then restructure.
For each move or removal:
### Move: ./AGENTS.md → ./packages/api/AGENTS.md
**Why:** [rule is specific to the api package]
\`\`\`diff
- [content being removed from shallower file]
\`\`\`
\`\`\`diff
+ [content being added to deeper file]
\`\`\`
Ask the user to confirm before editing any files.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/instructions-restructure:instructions-restructurefrom instructions-restructure
npx claudepluginhub dotknewt/awesome-agency --plugin instructions-restructure2 plugins in one repository ship this exact skill · first indexed Aug 3, 2026