/act-lite:review-changefrom act-lite
Reviews a code change (diff, branch, commit range, or PR) for structural problems, complexity, nesting, parameter lists, and duplication using act-lite analysis tools.
Ships in act-lite. 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.
This skill reviews one change for code health with the act-lite MCP tools. It reports structural problems in the functions the change touches and the duplication the change takes part in. It ends in a report and never edits a file.
An operator instruction wins over every default below: the base to compare against, the files to review, whether tests are reviewed.
The tools are the act-lite MCP server's. The same results come from the
act-lite analyze command (act-lite analyze patterns …), so a session
without the MCP server runs the commands instead.
act-lite does not run git; you do. Run only the read-only git commands
below. Never stash, reset, check out or commit.
HEAD with the default
branch (git merge-base HEAD origin/HEAD, else main, else master).
The change is the working tree against the base.include_tests: false, unless the operator asks to review tests too.
Pass it to both tools only then.Changed files and changed lines. Skip this step for a file list.
git diff --name-only --diff-filter=AMR <base>, plus the
untracked files from git ls-files --others --exclude-standard.
Every line of an untracked file counts as changed.git diff -U0 --diff-filter=AMR <base>. Each hunk header
@@ -a,b +c,d @@ marks the new-side lines c to c + d - 1 as
changed. A hunk that only deletes lines (d = 0) marks the new-side
line c at the deletion point as changed, so the function around a
deletion is reviewed.Nothing to review, or nothing in scope.
<base>." and call no tool.no files to analyze in the requested scope (for example every changed file is a test),
quote the message in the report's Not analyzed section, and still run
the other step.Structural problems. Call analyze_patterns with
paths = the changed files and limit = 1000.
range ("L:C-L:C", lines inclusive) overlaps
a changed line of its file.truncated: true, split the file list in two halves
and call once per half, again while a result is truncated and its list
has more than one file. Concatenate the findings in file order. A single
file that is still truncated contributes its first 1000 findings, and
the Limits section gives its total.Duplication. Call analyze_clones with paths = [] (the whole
workspace), focus = the changed files and limit = 1000.
file is a changed file and
whose range overlaps a changed line of that file.members of a class; members_total gives
the full count. When no listed member overlaps a changed line and
members_total is more than the members listed, keep the class too: a
member that is not listed can overlap the change. Mark it "overlap not
determined". Members in focus files are listed first, so this occurs
only when at least 20 members are in changed files.truncated: true, split focus in two halves and call
once per half, again while a result is truncated and its list has more
than one file. A single file that is still truncated contributes its
first 1000 classes, and the Limits section gives its total. Each call
analyzes the whole workspace, so a split is the rare case.4a. Files exposed to the change. Call analyze_impact with paths =
[] (the workspace), focus = the changed files that exist in the working
tree and limit = 100.
focus and named in the
section.details.focus_files_not_analyzed.include_tests to analyze_impact and analyze_cycles only when
the operator asks to review tests too.4b. Cycles that involve the change. Call analyze_cycles with paths =
[] and limit = 1000. Keep every cycle when the change can re-resolve a
relationship of an unchanged file, that is, when the change:
git diff --name-only --diff-filter=ADRT <base>, plus the untracked
files). A file list has no base, so (a) cannot be decided and every cycle
is kept;package.json, go.mod or Cargo.toml, any *.json file (a tsconfig
extends target can have any name), .gitignore, .git/info/exclude,
pyvenv.cfg or CACHEDIR.TAG. (b) also holds when the change touches
any file listed in the analyze_cycles result's
details.resolution_inputs (for example a tsconfig extends target
named base.jsonc or with no extension). When
details.resolution_inputs_total is more than the entries shown, every
cycle is kept. A listed input that is a symbolic link is read through its
target, which the list does not name: when any listed input, or a
directory above it, is a tracked symbolic link (git ls-files -s mode
120000), every cycle is kept;.rs file that contains a module declaration (mod <name>; or mod <name> {, also inside a macro invocation) or a
#[path attribute, before or after the change (the Rust module tree); or__init__.py file. Its bound names decide whether
from pkg import n in an unchanged file resolves to pkg/__init__.py or
to the submodule pkg/n.py, so a change to them can create a cycle with
no changed member. (A module file x.py has no submodules, so its
bindings cannot redirect an edge to another file.) It also holds when the
change modifies a Python file that a package's __init__.py is a
symbolic link to, because that file's bound names are the package's:
when the repository tracks a symbolic link named __init__.py, or one
to a directory (git ls-files -s mode 120000), treat a change to any
.py file as (d).Otherwise keep each cycle that has a changed file among its members. When
members_total is more than 20 and no shown member is a changed file, keep
the cycle and mark it "members not all shown". If truncated is true, say
how many of total were examined.
status, complete, coverage, excluded,
incomplete and details. Write nothing else, and change no file.## Code health review: <base>..<working tree>
Scope: <n> changed files; patterns <status>, complete <bool>; clones <status>, complete <bool>.
### Structural problems in changed functions
| Location | Function | Rule | Value | Threshold |
### Duplication that touches the change
- <kind> clone, <tokens> tokens, <members_total> members: <file>:<range> (variant <v>), …
### Files exposed to the change
<n> dependents (<direct> direct, <transitive> transitive) of <changed> changed files (<focus_files> focus files; not analyzed themselves: <focus_files_not_analyzed>).
| Dependent | Depth | Reaches | Through |
A dependent is a file that imports a focus file, directly or through other files. It is exposed to a change in the focus file. This is not proof that it will break, and a file that is not listed is not proof that it is safe: relationships that act-lite does not model (see the README) are not followed.
### Cycles that involve the change
<all cycles kept, because the change <adds, deletes or renames a file | touches a resolution or discovery input | changes a Rust file with a module declaration | modifies a Python __init__.py file>> | <n> cycles with a changed file>.
- <members_total> files: <path as <file> → <to> → …>[ (path of <path_total> steps, <n> shown)]; members: <file>, …[ (members not all shown)]; changed members: <file>, …
### Not analyzed
Unsupported languages, excluded counts (tests, generated, vendored, ignored), skipped files, parse failures, component regions not analyzed (regions_not_analyzed).
### Limits
A clone class shows that code has the same syntax tree, apart from formatting, comments and, for renamed clones, identifier names and literal values. It does not show that the members behave the same, that they can share one function, or that extracting them is safe. Findings are measurements against fixed thresholds (<details.thresholds>).
<file>:<range>; Function is function, or (anonymous) for
null; Rule, Value and Threshold are rule, value and threshold.
With no kept finding, write "None in the changed functions."members (each <file>:<range> (variant <variant>)); when
members_total is more than the members listed, add "and more".
For a class marked "overlap not determined", end its line with
"— overlap not determined ( of <members_total> members shown)".
With no kept class, write "None that touches the change."details.direct, details.transitive,
details.focus_total, details.focus_files and
details.focus_files_not_analyzed counts, then one row per finding, in
result order: Dependent is file, Depth is depth, Reaches is reaches,
Through is chain written as <file> → <to> steps. Then the statement
line, word for word. With no finding, write "No dependent." If step 4a was
skipped, name the deleted files instead of the table.members_total;
the path steps, from the cycle's file back to it, written as
<file> → <to> steps (the first step's file, then each step's to), with
"(path of <path_total> steps, shown)" when path_total is more than the
steps shown; the members, listed separately, with "(members not all
shown)" when members_total is more than the members listed (this includes
each cycle marked "members not all shown" in step 4b); and the changed
members. The members are sorted by path, not in traversal order: never
write them as a path. The section
says that the cycles are those that involve the change, not only those that
it creates. With no kept cycle, write "No cycle involves the change."coverage.languages entries with
supported: false, the excluded.counts, the incomplete.skipped_files
and the incomplete.parse_failures, and any empty-scope message from step
2. A result with complete: false can miss findings in that evidence; say
so. Also add each details.regions_not_analyzed entry (file, range,
reason) of the analyze_patterns calls, and details.files_without_analyzed_code;
when details.regions_not_analyzed_total is more than the entries shown,
give the total. Do not use the list of the analyze_clones call: that call
analyzes the whole workspace. In component files (.vue, .svelte,
.astro), only the script regions are analyzed; the template, style and
other regions are not.analyze_patterns
result's details.thresholds, and, for each split that stayed truncated,
the file and its total.analyze_impact and analyze_cycles results: the coverage.languages
entries with supported: false; the details.relationships counts (total,
resolved, external, unresolved); the relevant incomplete.counts.unresolved
and the first entries of incomplete.unresolved (file, kind, target,
reason), with a note that an unresolved relationship can hide a dependent
or a cycle; each limits_hit entry; the excluded.counts,
incomplete.skipped_files and incomplete.parse_failures; and each
truncation (total against what is shown). A result with complete: false
can miss dependents or cycles; say so.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub act101-ai/act101 --plugin act-lite9 skills in this plugin
/audit-debtAudits technical debt in a repository or directory: where complexity concentrates, which functions exceed structural thresholds, and where code is duplicated. Use when the operator asks for a tech-debt audit, a code-health audit or where to start cleaning up./define-workTurns a request into a design document with no open question, delivered in a mergeable pull request, before any code is written. Use when the operator asks to build, add, change or design something whose intent, scope or constraints are not yet settled ("I want to add…", "what should we build", "help me think this through", "let's design this"), or asks to brainstorm, scope or spec a change./deliver-workTakes finished work to a reviewed, CI-green pull request, reports it, and carries out a merge or discard only when the operator authorizes it. Use when implementation is complete and the operator asks to finish, wrap up, ship, deliver or open a PR for the work ("open a PR", "ship it", "we're done, wrap this up"), to respond to review feedback on that PR, to merge a finished branch ("merge it", "land it on main") or to discard one./diagnose-defectFinds the root cause of a defect and fixes it at the cause, proven by a test that failed first. Use when something is broken and its cause is not yet known, before proposing a fix: a bug, a failing or flaky test, a crash or error message, a regression ("this used to work"), a failure seen only in CI, or a performance regression./execute-workRuns a work graph to completion, schedules the ready nodes in parallel, plans and implements each node test-first in its own checkout through its fixed acceptance check and a verification stage, keeps or discards, archives, and hands the finished branch to delivery. Use when the operator asks to run, resume, continue or execute a plan, work loop, work graph or tracker ("run the graph", "resume the work loop", "continue the remediation loop", "execute the plan", "resume the work in docs/work/<program>/graph.md"))./map-repoMaps a repository for orientation: its languages and size, where complexity concentrates, and how the most complex files connect to the rest. Use when the operator or an agent is new to a repository, asks for an overview, a map, a tour, or where to start reading.2 plugins ship this exact skill · first indexed Nov 13, 2026
Other plugins' skills for the same job