From hal-skills
Refactors CLAUDE.md files toward progressive disclosure by auditing instructions, deleting no-ops, demoting path-specific rules, and rewriting for clarity.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hal-skills:refactor-claude-mdfableThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Refactor a CLAUDE.md toward progressive disclosure. Every line it keeps is loaded into every session the file covers, and a frontier model follows only around 150 to 200 standing instructions consistently, so each line competes for that budget. Everything else moves down the ladder or out of the file.
Refactor a CLAUDE.md toward progressive disclosure. Every line it keeps is loaded into every session the file covers, and a frontier model follows only around 150 to 200 standing instructions consistently, so each line competes for that budget. Everything else moves down the ladder or out of the file.
Pick the target. If the invocation names one, use it. Otherwise ask with AskUserQuestion, one option per file that exists, with the resolved path in the label:
~/.claude/CLAUDE.mdFetch the yardsticks. Fetch these pages. They calibrate the delete and rewrite verdicts below:
Audit. Read the file and give every instruction exactly one verdict, judged against the target's bar below. Done when no instruction lacks one.
The bar per target:
paths:-scoped file in ~/.claude/rules/.paths:-scoped file in .claude/rules/, or a doc file linked from CLAUDE.md.Get decisions. One AskUserQuestion per contradiction, with each conflicting version as an option. Then present the delete and demote lists for sign-off. The file stays untouched until sign-off.
Rewrite. Apply the signed-off verdicts in one pass. When creating a new rules file, fetch https://code.claude.com/docs/en/memory#path-specific-rules for the paths: frontmatter syntax. Done when every audited instruction landed where its verdict says: kept, rewritten, demoted, or deleted.
npx claudepluginhub vinta/hal-9000 --plugin hal-skillsCreates, updates, or optimizes CLAUDE.md files following Anthropic best practices for project context, coding standards, and persistent memory management.
CLAUDE.md instruction quality: writing effective project instructions, diagnosing why Claude ignores rules, routing content to the right layer, and systematic improvement. Invoke whenever task involves any interaction with CLAUDE.md files — writing, reviewing, auditing, improving, or debugging instruction compliance.
Provides best practices for creating, updating, and auditing CLAUDE.md files including constraints, commands, architecture overviews, and bloat reduction for projects.