Refactor Rule Tree

Runs one placement-and-pointer pass over a rule tree — the personal global rule file by default, or a given root path, plus every file reached by import or mention edge. A rule in an auto-loaded file gets a verdict: stay, move to a topic file, become a model-invoked skill or hook, or delete. A file reached without being auto-loaded is left untouched — only its pointers get checked. Every pointer gets live, dead, or unverifiable; an uncited target is reported unrouted, separately. Before a move, finds every in-scope file that cites the rule's location and either updates those citations in the same change or blocks the move. Presents one complete plan, checked for completeness, before writing anything. Never compares two files' guidance against each other. Use when asked to refactor, restructure, reorganize, or clean up a CLAUDE.md or rule file, or when /refactor-rule-tree is typed.

bgutschke 9235bfa 23 files · 114.8 KB Updated

File contents

bgutschke/skills/tree/main/skills/productivity/refactor-rule-tree commit 9235bfa256

Frequently asked questions

npx skillmds@latest add bgutschke/refactor-rule-tree