/han-planning:plan-a-change [size: small | medium | large | dynamic] [what needs to change, optional: source findings path]from han-planning
Produces a buildable, architecture-driven change plan for existing code, naming types, modules, and methods involved. Use to scope restructures, extractions, splits, consolidations, responsibility shifts, or API revisions.
Ships in han-planning. 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.
Read when SKILL.md points to them.
find . -maxdepth 1 -name "CLAUDE.md" -type ffind . -maxdepth 3 -name "project-discovery.md" -type fbash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"cat .han/config.md 2>/dev/null || echo ""As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read
that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md
probe supplies content, apply it per config-rule.md, which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
## Deferred (YAGNI) with the reopening trigger named.change-plan.md is the deliverable and sits at the root of
{folder}/; artifacts/change-decision-log.md and artifacts/current-state-findings.md sit beneath it. The plan
cites decisions with inline ([D-N](artifacts/change-decision-log.md#...)) links and cites current-state evidence with
([C-N](artifacts/current-state-findings.md#...)) links. Any edit to one file updates the matching cross-reference
fields in the others.Read the user's argument and the conversation context, then answer one question before anything else: why is a change being planned? Do not assume a prior report exists, and do not assume something is broken. Classify the reason into one of these, and record which:
architectural-analysis report, an investigate report, a code review, or an
ADR names the structural problem. Capture its path.When the context supplies none of these, ask for one, and ask for nothing else in that turn. A run with no recorded reason has nothing to apply the YAGNI evidence test against, so it produces taste rather than a plan. This is the one place the skill stops before doing any work.
Resolve the area. Name the modules, directories, or types the change concerns. If no area resolves to real files, ask the user to name one. "Restructure the codebase" is not a valid input.
Resolve the output location through the precedence chain in ../../references/config-rule.md:
output-directory setting from the project or personal .han/config.md, with the run's own folder
structure created beneath it.## Project Discovery section, project-discovery.md, or a Glob fallback (docs/changes/, docs/plans/,
docs/). Confirm the name with the user before creating files.Three files will be written. The plan sits at the root of {folder}/; the companions sit in {folder}/artifacts/:
{folder}/change-plan.md — the deliverable. Always written.{folder}/artifacts/change-decision-log.md — every committed decision with rationale, evidence, and rejected
alternatives. Always written.{folder}/artifacts/current-state-findings.md — what the code does today, as numbered C-N findings with file paths
and verbatim code. Always written, whether this run produced the findings or read them from a prior report.One more is written by Step 1.5:
{folder}/artifacts/scope-boundary.md — the boundary record.Create the artifacts/ subfolder before writing the companions. If any file already exists, ask whether to overwrite or
append before proceeding.
Read ../../references/planning-boundary-rule.md for the record's name and
its sections. Establish the boundary before Step 2 discovery begins. This skill plans code structure rather than
screens, so the rule's visual-material convention does not apply to it: write no ui-designs/ folder and run no
completeness gate. A diagram the user supplies is ordinary context.
A record already exists at {folder}/artifacts/scope-boundary.md, or in the folder of a source report Step 1
captured. Read it and use it. Do not re-ask anything it answers.
No record exists. Identify the work item this change descends from — a ticket, an issue, a pull request, or a written request the user typed — and read it. Record its stated scope and its stated exclusions word for word. When no work item exists, record that explicitly along with the statement that the user's request is the only boundary this run has.
The read does not traverse outward. A linked item, a sibling, or a closed item is not scope evidence for the item in hand.
Then take one confirmation turn before Step 2. It restates the recorded boundary in the user's own terms, restates the reason recorded in Step 1, and asks whether the area named is the whole area the change may touch. This turn is a confirmation rather than an escalation, and the one turn that carries more than one ask.
Source the explanation standard by invoking han-communication:explanation-guidance before you write the confirmation
turn, and again before any escalation later in the run.
When the user hands you a work item that conflicts with the recorded one, surface the conflict in the confirmation turn and ask which governs.
The plan's target state is only as good as the account of what exists today. Two paths reach that account, and which one runs depends on what Step 1 recorded.
A prior findings report exists. Read it in full. Extract its findings into
{folder}/artifacts/current-state-findings.md as numbered C-N entries, preserving each finding's file paths and
verbatim code. Note which findings the report left unverified, and carry that label forward. Do not re-run the analysis
the report already performed.
No prior findings report exists. Dispatch the discovery round yourself. This is the orchestration this skill exists to own:
han-core:structural-analyst — always. Module boundaries, coupling, dependency direction, duplication, abstractions.han-core:behavioral-analyst — always. Data flow, error propagation, state, integration boundaries at runtime.han-core:concurrency-analyst — only when the area actually contains concurrent access, async coordination, or shared
mutable state.Brief each with the area from Step 1, the reason from Step 1, the boundary record's path, and a report-length target matched to the size of the area rather than a size word. Ask each for numbered findings with file paths and verbatim code. Launch them in parallel, in a single message.
Either path, then: run one Glob and Grep sweep of your own for the project context the specialists do not cover, and
fold it into the same file — CLAUDE.md and project-discovery.md for stack and conventions, ADRs under docs/adr/,
coding standards, and, when git is available, git log --since="90 days ago" --name-only --pretty=format:"" over the
area's directories to surface churn and recent precedent.
Write {folder}/artifacts/current-state-findings.md using
current-state-findings-template.md. It is the single source of truth
for the current state across the rest of the run. Every later agent is told to read it first and not to re-grep for
what is already there.
Enumerate the gaps explicitly: what you searched for and did not find. A missing ADR or absent coding standard is itself a finding the plan should note.
Read team-selection.md. It carries the size bands with their specialist and round caps, the size-override rule, the seats every team fills, and the roster to draw the rest from.
Default to small and escalate only when the signals clearly require it. State the chosen size, the recommended team, and the reason in one short message before launching agents. If the user disagrees, accept their override of the size, the specialists, or both.
Dispatch han-core:software-architect with the current-state findings, the recorded reason, the boundary record, and
the project conventions from Step 2. Ask it for the target structure: which responsibilities live where, which module
and interface boundaries change, and the refactoring path between the two states.
Add han-core:system-architect only when the area crosses a service boundary, changes a context-map relationship, or
shifts data ownership between services. When it is not dispatched, its deferrals from the software architect are
surfaced in the plan rather than absorbed.
Both get the YAGNI directive in full: every new type, interface, abstraction layer, extension point, and adapter must cite evidence per ../../references/yagni-rule.md, and a proposal whose concern is satisfied by a strictly simpler structure returns the simpler structure. Both also get the contract directive: every contract two parts must independently agree on is specified to a concrete signature, field layout, or worked example, per ../../references/contract-pinning-rule.md.
The architect proposes; this skill decides. Where the proposal and the recorded reason do not line up — a restructure larger than the reason justifies, or one that leaves the reason unaddressed — that gap is a decision to settle at Step 5, not a recommendation to adopt.
Read surface-delta-rule.md before writing a single entry. It defines what counts as a surface element, the five delta verbs, and the target-state statement every entry carries.
Walk the target state element by element and commit each one as a delta entry. For each:
han-core:junior-developer to reframe. Launch it in conversational mode with
the question and the input that raised it, and a directive to restate the issue in plain language and surface the
clarifying questions a three-to-five-year generalist would ask. The reframing frequently exposes an unstated
assumption and settles the question without the user.Never escalate a question the recorded boundary already answers. When the boundary places an element outside scope, cut it and record why, rather than asking the user to choose between options their own work item already decided between.
Record every settled entry as a D-N decision in artifacts/change-decision-log.md with its rationale, evidence, and
rejected alternatives.
Classify every delta entry from Step 5 as one of two, and record the classification on the entry:
Every behavior-changing entry is escalated to the user before it is committed, one per turn under the Step 5 escalation
rules, whether or not the change looks obviously desirable. An architecture-driven change is planned on the premise that
it is safe to make, and this gate is where that premise is checked rather than assumed. Record the user's answer as its
own D-N decision.
An entry you cannot classify from the evidence available is recorded as behavior-unknown and escalated the same way. Do not resolve an unknown by assuming preservation.
Launch the specialists selected in Step 3 in parallel, in a single message, with domain-scoped briefs as team-selection.md specifies. Give each the current-state findings path, the target state, the delta with its behavior classifications, the boundary record, and a report-length target matched to the size of the area.
Aggregate their verbatim output into the plan's review record. Three passes run first, in this order:
Pass A: merge by substance. Two specialists often raise one finding in different words. Merge those into a single record carrying every originating specialist's identifier.
Pass B: strip blocking severity from findings resting on an uninspected input. A specialist that could not inspect
something says so on the finding itself. Every such finding, and every finding depending on that same input, is labeled
Unverified and cannot carry build-blocking severity. Keep it — it may be real, and you can often verify it
yourself. What it cannot do is reach the user looking like a blocker on the strength of something nobody read.
Pass C: close what the current-state findings already answer. A finding the C-N record answers directly is closed
with the citation rather than promoted to an open question.
Then resolve what remains under the Step 5 order: evidence, then han-core:junior-developer reframing, then escalation.
A finding that changes a delta entry sends that entry back through the Step 6 gate.
The round cap from Step 3 bounds this: small runs one round, medium two, large three. Re-engage specialists only when a finding names a specialist whose domain was not covered. At the cap, surface what remains to the user with recommendations and a note that the review has reached a plateau.
Run three gates over every part the target state introduces.
## Deferred (YAGNI) with the reopening trigger named.Rejected alternatives: in its D-N entry.artifacts/scope-boundary.md per
../../references/scope-justification-rule.md. Entries the boundary
excludes land in ## Cut for Scope with the citation.An item lands in one section or the other, never both, and never silently disappears.
Invoke han-communication:readability-guidance to source the shared readability standard into your context, then apply
it to the plan's prose. Hold the named audience: the engineer who will make the change. The standard governs how a fact
is said, never whether a required fact appears — keep the type names, paths, and contracts the plan depends on.
Write {folder}/change-plan.md using change-plan-template.md, and
{folder}/artifacts/change-decision-log.md using
change-decision-log-template.md. Read each template in full and copy its
structure whole.
Sequence the change units so each one leaves the codebase working. A unit that only compiles once a later unit lands is not a unit; merge it into the one it depends on, or split the dependency out first. This is the property that makes the plan buildable directly rather than needing a second planning pass, so state the ordering constraint on every unit that has one.
Then wire the cross-references: inline ([D-N](artifacts/change-decision-log.md#...)) citations in the plan for every
non-obvious claim, ([C-N](artifacts/current-state-findings.md#...)) for every claim about the code as it stands today,
and the Referenced in plan: field back from each decision.
Dispatch han-communication:readability-editor (one Agent call) to audit and rewrite the plan's prose. Pass it the file
path {folder}/change-plan.md and the named audience: the engineer who will make the change. The editor reads
han-communication's own canonical rule, so pass no rule path. It must preserve every fact and operate on prose regions
only — never inside code fences, tables, or the D-N and C-N citation identifiers, which must survive unchanged so
they still resolve. Apply its rewrite to the plan file.
It must also leave every plan section heading unchanged, because the decision log names those headings as text in its
Referenced in plan: field. The editor is otherwise free to make a heading descriptive, and here that would break a
link.
Then read the editor's fact-preservation report. Do not walk the self-check over the text the editor produced. The canonical readability rule says the dedicated editor replaces a skill's own readability pass rather than stacking a second one on top.
The editor's report has three shapes that need no repair, and one that does:
Insertions names nothing, or names a line whose quoted source= span you find in the plan. Nothing further is
needed.Insertions names a line whose quoted source= span is not in the plan. The editor wrote that sentence from
something the draft does not carry. Name it in the Step 10 summary and record it in artifacts/, quoting the inserted text
and the span the editor claimed. Change no text: there is no pre-edit draft on disk to restore, because the rewrite
was applied in place. Check nothing else.When no usable report comes back — the editor could not be reached, returned nothing, or returned something you cannot read as any of those shapes — run the readability rule's standardized self-check yourself over the plan's prose regions only. Say in the Step 10 summary that you did so and why. With no report, that check is the only fidelity guard the output has.
Summarize for the user:
change-plan.md, artifacts/change-decision-log.md, artifacts/current-state-findings.md, and
artifacts/scope-boundary.md.## Deferred (YAGNI), kept distinct from the cut list. Omit this line if nothing qualified.Unverified because a specialist could not inspect its input. Neither these nor the
deferrals are presented as blocking.Then name what comes next: plan-work-items to break the change units into independently-grabbable work, tdd to build
a unit test-first, or refactor to carry out a behavior-preserving unit directly. Ask whether the user wants to iterate
on specific sections or considers the plan ready.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub testdouble/han --plugin han-planning6 skills in this plugin
/iterative-plan-reviewSharpens and stress-tests an existing plan file through multiple codebase-grounded review passes, editing it in place and recording every finding and iteration in cross-referenced companion files. Use this skill whenever the user wants to iterate on, refine, tighten, or improve a plan. Also use it when the user asks to verify, validate, or confirm feasibility of an approach. Does not implement plan steps, write test plans, review code, or investigate bugs, and does not generate new plans from scratch — use plan-a-feature for a new plan. Runs its review rounds to completion without pausing between them; to review each round as it lands, use pairing.
/plan-a-featureBuilds a feature specification from scratch through a relentless, evidence-based interview that walks the design tree decision-by-decision, resolving dependencies as it goes. Use when the user wants to plan, design, scope, specify, or flesh out a new feature, capability, or system behavior before implementation. Produces a feature specification focused on system behaviors, not implementation detail. Does not plan a restructure of code that already exists — use plan-a-change. Does not refine or stress-test an existing plan — use iterative-plan-review. Does not document already-built features — use project-documentation. Does not design the contract for an interface — use design-an-api. Does not research open-ended options before there is a feature to specify — use research. Does not map the bounded contexts of existing code — use ddd-analysis.
/plan-a-phased-buildSplits a body of context into a sequence of vertical-slice build phases where each phase is independently demonstrable to a real user and each builds on the previous. Use when the user wants to plan, sequence, phase, slice, break down, or order the build of a feature, capability, system, or initiative, and produces a plain-language phased build outline. Does not produce implementation detail — use plan-implementation. Does not specify behavior that has not been decided — use plan-a-feature. Does not perform gap analysis between two artifacts — use gap-analysis. Does not break a plan into independently-grabbable work items — use plan-work-items.
/plan-implementationBuilds a feature implementation plan from an existing feature specification (or equivalent context) through a facilitated team conversation. Use when the user wants to plan how to implement, build, deliver, or ship a feature that has already been specified. Does not specify what the feature should do — use plan-a-feature first. Does not design the contract for an interface — use design-an-api. Does not refine or stress-test an already-written plan — use iterative-plan-review. Runs its resolution rounds to completion and holds its questions until after they finish; to review each round as it lands, use pairing.
/plan-work-itemsBreak a trusted implementation plan (or other provided context) into independently-grabbable, atomic work items, written to a single work-items.md file. Use when the user wants to convert a plan into work items, create implementation tickets or tasks, divide a plan into work units, or break the plan down into grabbable pieces. Do not use when there is no implementation plan yet or the plan is not yet trusted — use plan-implementation to produce the plan or iterative-plan-review to harden it first. Does not sequence work into demoable delivery phases — use plan-a-phased-build for that. Does not write code — use tdd to implement a work item.
Other plugins' skills for the same job