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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/instruction-management:restructure-instructionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Goal: reduce context bloat by keeping content only at the deepest level where it applies.
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 ../instruction-management/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.
npx claudepluginhub dotknewt/toolkits --plugin instruction-managementSets up isolated workspaces using native worktree tools or git worktree fallback. Use before starting feature work to protect the current branch.