/terma:decompositionfrom terma
Guides decomposing systems into modules, services, and packages by isolating change rather than by similarity. Useful for refactors, restructuring, and designing new components.
Ships in terma. 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.
Modularity is not about reuse. It is about isolating change — so that being wrong about one thing costs one thing.
Every boundary is a bet that what is on either side will change at different rates, for different reasons. A good cut means a mistake stays local and can be deleted. A bad cut means a mistake is load-bearing, spread across nine call sites, and the fix is a migration.
Ask of any boundary: when this turns out to be wrong, what does it cost to remove?
The instinct is to group things that look alike. Look-alike grouping produces a utils module containing business logic, and a models directory whose contents change for six unrelated reasons.
Group what changes together, for the same reason. Volatile apart from stable. Policy apart from mechanism — the rule about what should happen apart from the machinery of making it happen. Hard problems isolated so the hardness has one address.
The clearest signal a boundary is wrong: a single feature request keeps requiring edits on both sides of it, every time.
The useful unit is a process: acquire data, turn it into other data, emit it. The three phases have opposite natures and should not be mixed.
Pull and push meet the world. They fail, time out, arrive malformed, and can only be honestly tested against something real. Keep them thin and defensive, and hold low expectations of anything on the other side.
Transform is where the decisions live. Pure, testable with literals, and it should be the large part. Business logic that drifts into the operational phases becomes untestable by accident.
Effects described as data, then performed at the edge, stay inspectable — a decision you can print is a decision you can test. The boundary between phases is where invariants get enforced: strong at the edges means the interior can be understood on its own.
Most code that feels like it is abstracting is reshaping: moving the same information into a different arrangement, adding a layer and no leverage. Real abstraction throws something away on purpose.
To abstract is to treat different things as the same. Whether that is right depends entirely on context — an abstraction has no quality in isolation, only a fit. When judging one, ask what it discards, and whether anyone downstream needs what was discarded.
Build the flexible, clumsy, complete thing. Then build the pleasant thing on top of it.
One API cannot serve both the common workflow and the unusual demand without becoming a configuration language. Two layers can: the lower one is fully capable and nobody enjoys using it, the upper one is a joy and does eighty percent. Neither compromises the other.
Wrap third-party libraries at a boundary you own, even thinly. The wrapper is what makes replacement possible later, and it is the only chance to have the vocabulary be yours instead of theirs.
Not everything should be decomposed. Business logic is irreducibly messy, and premature carving spreads that mess across modules where it becomes structural.
One big mistake is easier to delete than eighteen small entangled ones. When the shape is genuinely unknown, write it in one place, let it be ugly, and let the seams appear under real use. They will — and they will be somewhere other than where they were predicted.
The failure to avoid is not "this file is long". It is "this file has three subjects and every change touches all three".
Each of these is a boundary that has stopped isolating change and started transmitting it.
The value of a design is how cheaply it can be wrong.
Code is a liability carried, not an asset accumulated. Deleted code is progress. A component that can be replaced without touching its neighbours is a good component, whatever its internals look like — and legacy code that stays out of the way is good code, however old.
Write it assuming it is wrong somewhere, and arrange things so that finding out is cheap.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bfollington/terma --plugin terma20 skills in this plugin
/authoring-skillsUse when writing, revising, or judging a skill. A skill is a packet of wisdom that changes how a situation is seen, not a procedure to follow — dense, composable, and worth loading. Trigger on creating a new skill, editing an existing one, deciding whether something should be a skill at all, or reviewing a set of skills for bloat and overlap. Do NOT use for the mechanics of the skill file format, or for ordinary documentation./code-reviewUse when reviewing written code — your own or someone else's. Concerns finding what the code will cost later rather than what it violates now, and saying it in a way that can be acted on. Trigger on requests to review, critique, or give feedback on an implementation, and before handing off work you wrote. Do NOT use for debugging behaviour or for deciding what to build./concurrent-changeUse when work is about to be split across multiple agents, or when deciding whether it should be. Concurrency is a property of the change, not a scheduling decision — what can proceed at once is determined by what the pieces have to agree on. Trigger on any request to parallelise, fan out, delegate to subagents, or run work concurrently, and whenever a plan has more than one independent-looking piece. Do NOT use for single-threaded work, or for splitting purely to appear fast./convergent-planningUse when planning any multi-step change, or when a plan already exists and is about to be executed. A plan is a sequence of ambiguity collapses, not a list of tasks — each step must end at a state that can be checked, and the checks must be capable of failing. Trigger on requests to plan, sequence, break down, stage, or scope work, and on any plan that reads as a list of things to do. Do NOT use for single-step changes, or where the outcome is already known and only the typing remains./domain-modelingUse when deciding what the concepts in a system are and what they are called — the types, the boundaries between contexts, the vocabulary. Concerns whether the model tells the truth about the problem and reads as a story a human can follow. Trigger on designing or changing types, naming things, modelling a business domain, or when the code's words and the problem's words have drifted apart. Do NOT use for local implementation style or for planning work./ideateUse when thinking needs to open rather than close — generating possibilities, breaking out of a stuck frame, reading the state of a creative process, or noticing that a session has gone flat, cynical, or circular. A deck of moves for the infinite game of ideation, where good thinking is playing the right card at the right time. Trigger on brainstorming, exploring possibilities, being stuck, or when the current framing has stopped producing anything. Do NOT use when converging on a decision or executing something already chosen.Other plugins' skills for the same job