/classify-change:classify-changefrom classify-change
Classifies code changes as Leaf Node or Core Code to determine appropriate AI usage and review rigor. Asks 6 diagnostic questions about propagation, change frequency, tech-debt tolerance, failure cost, and review intensity.
Ships in classify-change. 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.
The single most important rule for AI-assisted coding in production: confine the AI's mass output to leaf nodes, where the inevitable bit of tech debt won't propagate through the system. This skill makes the leaf-vs-core call concrete and consistent, so individual judgment doesn't drift across the team.
Use whenever the leaf-vs-core distinction matters. Triggers include:
plan-feature or pr-prepare, when the leaf/core call should be explicit and consistent with this frameworkSkip only for changes that are obviously trivial (typo fixes, etc.).
Leaf node. Code that nothing else depends on — feature endpoints, UI components, scripts, reports, one-off migrations. Failure is local. Tech debt here doesn't spread. Safe for high AI involvement, lighter review.
Core code. Code many things depend on — auth, payment, data schema, public APIs, shared frameworks, orchestrators. Failure is system-wide. Tech debt here compounds. Requires human leadership and line-by-line review, even if AI assists.
When a change spans both, it counts as core (the stricter rule wins).
Walk through these in order. Get user input where the answer isn't obvious from the codebase.
If we change this, what depends on it?
Will this part of the codebase keep evolving, or is it close to "done"?
If this code becomes a little ugly, will future work suffer?
Which of these does the change look most like?
- Reports, dashboards, single endpoints, UI components, scripts, one-off jobs → leaf
- Auth, payments, data schema, public APIs, shared utilities, orchestration → core
If this code goes wrong, how far does the failure spread?
Can the change be trusted via interface + tests, or must someone read every line?
After running through the questions:
## Classification: [LEAF NODE | CORE CODE]
## Why
- Q1 (propagation): <answer> → <leaf/core>
- Q2 (frequency): <answer> → <leaf/core>
- Q3 (tech debt): <answer> → <leaf/core>
- Q4 (examples): <answer> → <leaf/core>
- Q5 (failure cost): <answer> → <leaf/core>
- Q6 (review intensity): <answer> → <leaf/core>
## Recommended approach
### If LEAF
- Safe for high AI involvement
- 1 reviewer is enough
- Trust the tests + interface; you don't need to read every line
- 3 e2e tests minimum (1 happy + 2 errors)
- Plan still required, but plan.md can be lightweight
### If CORE
- AI may assist, but a human must lead the design and own the review
- 2+ reviewers, including the module owner
- Line-by-line review of the diff
- PR description must mark which files were human-reviewed line-by-line
- If the change is large, split into a human-led core change + a leaf feature change
If the change reads core code (imports, calls) but doesn't modify core code, it's still leaf. The classification is about which lines change, not which lines exist.
These are leaf even if they read core data — failure is bounded by a single run. But: if the script writes to production data, the verification of the script needs to be core-grade (don't trust it from spot-checks alone).
E.g., a script that accidentally writes to every user record. Reclassify based on failure cost, not file location. The point of the framework is failure containment.
True. Today's core might be tomorrow's leaf as models become more reliable. Tech leads should re-examine the leaf/core boundary quarterly. But don't move the line based on hope — move it based on track record.
End the skill when the user has a clear classification + the recommended approach for it. Carry the classification into plan-feature or pr-prepare to set the review rigor there — this skill is the canonical owner of the leaf/core definition those workflows should follow.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-classification, ai-usage, code-review, change-management
npx claudepluginhub appleboy/skills --plugin classify-changeOther plugins' skills for the same job