/motoedie-code-review:change-analysisfrom motoedie-code-review
Report-only project-impact summary of current branch changes. Explains the problem the change answers, what changed, and its direct and downstream effects on system behavior, UX, workflows, contracts, compatibility, and operations. Use before opening an MR or when a reviewer needs concise project context. Does not perform defect, maintainability, or security review.
Ships in motoedie-code-review. 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.
Build the mental model a reviewer needs to understand a branch. Internally account for the complete selected scope and supporting evidence, then report only the project-level change and its concrete consequences. Do not expose the working decomposition as the deliverable.
This skill is report-only and read-only. It does not find defects, security vulnerabilities, maintainability problems, or test gaps, and it does not approve the change.
Read the argument reference and resolve one analysis scope. Take the arguments from the message that invoked this skill; with none, analyze the current branch against the detected baseline, including staged, unstaged, and non-ignored untracked changes.
For substantive Jira content, follow the Jira acceptance workflow. Ignore missing, unavailable, or fetch-error placeholders. Keep the resolved Git scope unchanged.
Apply any scope override from the arguments. Otherwise identify the current
branch and its merge baseline against main, master, or the default remote
branch. Record the comparison baseline, selected content source, and path
filters as the resolved scope defined in references/arguments.md. Use that
scope unchanged for the manifest, every semantic unit, and synthesis.
Use available read-only repository tools, normally Git, to build a deterministic manifest of every changed file. Record add, modify, delete, and rename status. Assign every file to at least one semantic change unit, classifying its role as primary, supporting, generated, or vendored, or record an explicit exclusion reason. Do not silently omit files.
Group files by the behavior or contract they implement, not merely by directory, extension, or equal-sized batches. Keep entry points, implementations, shared types, schemas, configuration, consumers, and relevant tests together when they describe one change. A branch may contain one change unit.
Inspect changed hunks and the corresponding base and current implementations to establish what happened before and what happens now. Read neighboring callers, callees, consumers, types, configuration, and tests only where they establish a relationship or support a material claim.
If the scope contains multiple semantic change units, an item exceeds an observed tool or context limit, analysis is truncated, or any unit fails, read and follow the large-scope workflow.
For each semantic change unit, establish:
Anchor every material claim to a changed location and, where needed, a relevant
unchanged caller, consumer, contract, or test. Use path:line, path:symbol, or
a specific changed area. Classify claims as:
Do not infer product intent from implementation alone. Branch names, commit messages, and local documentation may support intent, but distinguish them from implemented behavior. The same split applies to the problem: the base behavior is observable, while the reason it needed changing is intent.
A downstream effect is a behavior change in a feature the branch did not edit, caused by that feature consuming something the branch changed. List every contract the change alters — an exported function or type, an API request or response, a table or column, a message or event, a shared component, or configuration. For each one, search the repository for its unchanged consumers and classify every consumer as behaves differently or unaffected, with the reason.
The step is done when every altered contract has a consumer list and every consumer has a classification. A consumer that another unit of this branch changes is a direct change, not a downstream one. When consumers cannot be enumerated — string-keyed lookups, reflection, external clients — record the gap for Limitations.
A flow is an ordered sequence the change implements or materially alters, in which a trigger leads through intermediate steps to an outcome — an event that starts a job that writes a result that something else reads. A single call, a configuration change, a rename, or an unordered set of edits is not a flow.
Identify each distinct flow. Two sequences are distinct when they have different triggers or different outcomes; do not merge distinct flows into one diagram and do not split one flow across several. A branch may implement no flow, one, or several.
For each flow, render exactly one Mermaid flowchart diagram:
Give every flow a short, specific name that says what the flow does — for
example "Flow A — MR note posting" or "Flow B — once-per-MR skip", not "Flow 1"
or "Main flow". Letter the flows A, B, C in the order they are presented, and
put the name in a #### heading directly above its diagram so a reader can tell
the diagrams apart at a glance.
Under the heading and before the diagram, write one sentence: what triggers the flow and what it produces. That is the only prose a flow gets — the diagram is the explanation, so do not narrate its steps. Omit the section entirely when the change implements no flow; do not invent one to fill it.
The rest of the report must use these names. When a summary sentence or a main change concerns a flow, refer to it by name — "see Flow A", or "the skip check in Flow B" — instead of re-describing the steps. A reader should be able to move from any sentence to the diagram it talks about, and a flow no other section mentions is a sign the text and the diagrams have drifted apart.
Synthesize the internal units into project-level topics. For each topic, connect what changed to its concrete effect on a user, system, workflow, data flow, contract, integration, deployment, or operation. Include a constraint, compatibility effect, or rollout consequence when it materially changes how the result behaves or is adopted.
An impact statement must name the affected actor, surface, or flow and explain how its behavior changes. Do not substitute generic claims such as "improves UX," "affects grouping," or "changes the backend." When evidence establishes the mechanism but not its consequence, say what remains uncertain instead of inventing an impact.
Topics are human-facing project concepts, not semantic-unit IDs. Merge related implementation details into the behavior and consequence they collectively produce. Avoid repeating the summary in the topics.
Be brief. A reviewer reads this once, before opening the diff; a report they have to skim has already failed. Prefer the consequence over the mechanism, and cut anything a reader could learn as fast from the diff itself. In particular do not enumerate configuration keys, default values, flag names, timeouts, file paths, or directory listings — name the capability and its effect instead, and mention a specific value only when that value is the change. Touchpoints are the exception: name the exact UI path, endpoint, or command, because that is where the reader goes to see the change.
Keep file manifests, file roles, evidence anchors, claim-status labels, unit dependencies, and coverage ledgers internal. Do not print file paths unless the user asks for evidence or a specific location is essential to an unresolved question.
Add an Open questions section only when the repository cannot answer a specific product, architectural, compatibility, deployment, or operational question. State the question, why local evidence cannot resolve it, and what behavior depends on the answer. Omit the section when there are no questions.
Reconcile analyzed and excluded file IDs with the original manifest. Before claiming completion, confirm that every semantic unit received the analysis in step 3, that every altered contract met the step 4 completion criterion, and that cross-unit relationships were synthesized.
If a file, unit, dependency, or required analysis could not be completed, preserve successful results and keep the exact coverage gap internally. Add one concise limitation explaining which reported topic or conclusion is uncertain and why. Do not print the manifest or a file-level gap list unless the user asks for it. Priority or sampling is not a substitute for internal coverage unless the user explicitly requested an incomplete analysis.
Print a concise project-impact summary with:
Settings → Discovery → …), an API method and
path, a CLI command, a scheduled job, or a discovery task. When no surface
changes, the whole section is Internal only.#### heading
with its lettered name ("Flow A — …"), one sentence on trigger and outcome,
then its Mermaid flowchart. Place it before Main changes, so the names
are defined before later sections use them. Omit when the change implements
no flow.erDiagram when three
or more of them relate to each other, and a stateDiagram-v2 when the change
adds a lifecycle.192.0.2.0/24 and generic names such as
router-1 — in place of any device names, addresses, credentials, or customer
data the source contains. Omit when no observable input or output changes.No downstream behavior changes found.Before-and-after material lives only in Background, Example, and Main changes. The report carries no semantic-unit, cross-unit, reading-route, scope, coverage, evidence, or file-inventory section.
Length. Aim for under 700 words of prose, excluding diagrams, the example, and the acceptance section. Exceed it only when dropping something would hide a behavior, constraint, or consequence a reviewer must know — and prefer a diagram or the example over adding paragraphs. If the change is genuinely large, report fewer topics at the same brevity rather than more topics in more words.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub motoedie/.dotfiles --plugin motoedie-code-review6 skills in this plugin
/code-behaviorReport-only review of changed code for functional correctness, data and API contracts, and performance and resource risks. Use for branch, staged, uncommitted, or path-scoped defect review. Excludes test-gap, structural maintainability, lint, type-checker, and security analysis./code-qualityReport-only review of changed production code for structural maintainability after implementation, especially after reactive edits. Checks minimal change, single responsibility and misleading names, duplication, coupling, and module boundaries. `Richard Ejem` adds clarity/contracts, type modeling, reuse/evolution, and nit findings. Excludes lint/typechecker and test concerns. Supports base, path, revision-range, uncommitted, focus/skip, and instruction scopes./Other plugins' skills for the same job