/act-lite:audit-debtfrom act-lite
Audits technical debt by identifying complexity hotspots, structural problems, code duplication, dependency cycles, and coupling in a repository or directory.
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 audits the code health of a repository or a directory with the act-lite MCP tools. It ranks the files where complexity concentrates, lists the structural problems in those files, and shows the largest duplicated code. It ends in a report and never edits a file.
An operator instruction wins over every default below: the scope, the number of files to detail, whether tests are audited.
The tools are the act-lite MCP server's. The same results come from the
act-lite analyze command (act-lite analyze hotspots …), so a session
without the MCP server runs the commands instead.
paths: the files or directories to audit, relative to the workspace
root. Default: [], the whole workspace.top: the number of hotspot files to detail, 1 to 1000. Default: 10.include_tests: false, unless the operator asks to audit tests too.
Pass it to every call only then.Where to start. Call analyze_hotspots with paths and limit =
top. Its findings are the top files, highest score first.
findings is []), no analyzed file has a
function: skip step 3, and say so in the report.Counts for the whole scope. Call analyze_patterns with paths and
limit = 0. Its total and details.counts_by_rule give the findings
per rule in the whole scope; it returns no finding.
Structural problems in the top files. Call analyze_patterns with
paths = the file of each step-1 finding and limit = 1000.
truncated: true, the report shows the first 1000
findings and says how many of total are not shown.Largest duplicates. Call analyze_clones with paths and limit =
20. Its findings are the largest clone classes first.
4a. Dependency cycles. Call analyze_cycles with paths and limit =
20. Its findings are the largest cycles first.
4b. Most coupled files. Call analyze_coupling with paths and limit =
top. Its findings are the most connected files.
include_tests to both calls only when the operator asks to audit
tests too.Empty scope. If a call returns the error that starts with no files to analyze in the requested scope, quote the message in the report's
Coverage and limits section, and still run the other steps.
Report. Write the report below from the four results: their
findings, total, truncated, status, complete, coverage,
excluded, incomplete and details. Write nothing else, and change no
file.
## Technical debt audit: <scope>
Summary: <analyzed_files> files analyzed; supported and unsupported languages; each call's status and completeness;
findings by rule (<counts_by_rule>); <total> clone classes.
### Where to start
| Rank | File | Score | Functions | Top function (complexity × lines) |
Ranking: <details.formula>.
### Structural problems in the top files
| Location | Function | Rule | Value | Threshold |
### Largest duplicates
- <kind> clone, <tokens> tokens, <members_total> members: …
### Dependency cycles
<total> cycles over <cyclic_files> files.
- <members_total> files, <edges_total> edges: <path as <file> → <to> → …>[ (path of <path_total> steps, <n> shown)]; members: <file>, …[ (members not all shown)]
### Most coupled files
| File | Fan-in | Fan-out | Instability | Unresolved |
Instability = fan_out / (fan_in + fan_out). Fan-in counts only files in <scope>.
### Coverage and limits
Unsupported languages and rules (<not_applicable>), exclusions, skipped files, parse failures, regions not analyzed (<file>:<range>: <reason>), truncation.
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.
<scope>: the paths, or "the workspace" for [].coverage.analyzed_files of the hotspots result; the
coverage.languages entries, supported and not; for each call, status
and complete; details.counts_by_rule and total from step 2; the
clones result's total.file, score and functions;
Top function is the first of top_functions: its function (or
(anonymous) for null) at its range, with its complexity × lines.
Then the details.formula line. With no file, write "No analyzed file has
a function."<file>:<range>; Function is function, or (anonymous);
Rule, Value and Threshold are rule, value and threshold. With no
finding, write "None in the top files."members (each <file>:<range>); when members_total is more
than the members listed, add "and more". With no class, write "No
clone class."coverage.languages entries with
supported: false; details.not_applicable of the patterns results; the
excluded.counts; the incomplete.skipped_files and
incomplete.parse_failures; the details.regions_not_analyzed entries
of the analyze_hotspots, analyze_patterns and analyze_clones results,
each entry (file, range, reason) once, and each
details.regions_not_analyzed_total that is more than the entries listed;
any empty-scope message from step 5; each truncation (total against what
is shown); then the sentence above. A result with complete: false can
miss findings in that evidence; say so. In component files (.vue,
.svelte, .astro), only script regions are analyzed: the template and
style regions are not, so no finding comes from them.total and details.cyclic_files of the step-4a
result, then one line per finding, in result order: members_total and
edges_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; and the members, listed separately, with
"(members not all shown)" when members_total is more than the members
listed. The members are sorted by path, not in traversal order: never
write them as a path. With no cycle, write "No cycle."file, fan_in, fan_out,
instability and unresolved. Then the formula line and the fan-in scope
line, word for word, with <scope> as in the heading. With no file, write
"No file with a relationship."analyze_cycles and analyze_coupling 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 cycle or a dependency; 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 cycles or dependencies;
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
/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./2 plugins ship this exact skill · first indexed Nov 13, 2026
Other plugins' skills for the same job