Refactor CLAUDE.md files to follow progressive disclosure principles. Use when CLAUDE.md is too long or disorganized.
Refactor CLAUDE.md files to follow progressive disclosure principles.
I want you to refactor my CLAUDE.md file to follow progressive disclosure principles.
Follow these steps:
Report the current line count. Flag issues:
.claude/rules/ files)Read the workflow skill at ~/.claude/skills/workflow/SKILL.md and incorporate its principles into the CLAUDE.md or a .claude/rules/workflow.md file. Adapt the content to fit the project — don't copy verbatim, but ensure the key behaviors are represented:
tasks/lessons.mdFor short CLAUDE.md files, add a concise workflow section. For longer ones, create .claude/rules/workflow.md and link to it.
Check for a ## Verification section with commands Claude can run after making changes. If missing:
## Verification section with discovered commandsThis is critical—Claude performs dramatically better when it can verify its work.
Identify any instructions that conflict with each other. For each contradiction, ask me which version I want to keep.
Look for content that could become a reusable global skill in ~/.claude/skills/:
If found, suggest creating a global skill with name and description.
Extract only what belongs in the root CLAUDE.md:
npm test, npm run build if standard).claude/rules/ files with brief descriptionsOrganize remaining instructions into .claude/rules/ files by category (e.g., TypeScript conventions, testing patterns, API design, Git workflow).
Identify content that should be removed entirely:
# Project Name
One-line description.
## Commands
- `command` - what it does (only non-obvious ones)
## Rules
- [Topic](/.claude/rules/topic.md) — brief description
## Verification
After making changes:
- `npm test` - Run tests
- `npm run lint` - Check lintingKeep in CLAUDE.md:
Move to .claude/rules/:
Remove entirely:
1a9819e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.