/act-lite:diagnose-defectfrom act-lite
Finds root cause of defects (bugs, failing/flaky tests, crashes, regressions, CI failures, performance regressions) and fixes at the cause, proven by a test that fails first.
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 finds why something is broken, fixes the cause, and proves the fix with a test that failed first. It does not deliver the fix.
An operator instruction, then the project's declared workflow (its test layout, commit and branch rules, ticket or defect tracker), win over every default below. A workflow applies only when it is written down (CLAUDE.md, AGENTS.md, CONTRIBUTING and the documents they name, CI configuration) or the operator states it.
Never stash, reset or discard the operator's uncommitted files. A run at another commit never happens in the operator's checkout: it happens in a separate checkout at that commit, created only with the operator's consent and removed after (step 4).
When this skill runs inside a planned unit of work, a defect that blocks the unit is fixed in the unit, inside its files. A defect outside the unit's files is reported for a new unit and not fixed here.
Reproduce. Make the defect happen on demand before anything else.
Read the code path end to end, from the symptom (the failing assertion, the stack frame, the wrong output) to the code that produced it. Follow the actual calls and data, not the names: never infer a cause from a symbol name, a comment or a commit message. Read every function on the path that could change the outcome, and the compiler's errors and warnings on those files.
Hypotheses. Write down the candidate causes, ranked by how well each explains all the evidence. Test the cheapest one that discriminates between them: an experiment whose result differs depending on which cause is real. Change one variable at a time. A cause is confirmed when an experiment it predicts comes out as predicted.
Regression: with a known-good and a known-bad commit, bisect between them.
Fix at the cause, not the symptom. A retry, a sleep, a longer timeout, a caught and ignored error or a special case for the failing input is a symptom fix unless step 3 showed that it is the cause.
Siblings. Search for the same mechanism elsewhere: the same misuse, the same assumption, other callers of the faulty code, copies of the pattern. A text match is not a binding: confirm each one by reading it. Fix each instance that has the same cause, test-first. Record each other instance in the project's defect tracker when it has one, else in the report, with its file:line and why it was not fixed.
Three failed fixes mean the model of the problem is wrong. Stop changing code. Re-read the evidence from step 1, list the assumptions the three fixes shared, test the weakest of them, and tell the operator what failed and what you now think. Then go back to step 3 with the revised model.
Report (below). First remove every probe and temporary logging line you added, whether or not anything is committed, except an observation the operator agreed to keep (step 1).
Every claim cites a result from this session. A not-found answer is not proof of absence: say how it was searched.
What SKILL.md sets; muted values are Claude Code's defaults
9 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./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./plan-workPlans work as a resumable work graph of nodes with contracts, dependencies and fixed acceptance checks, cut from an approved design, validated, reviewed and delivered in a mergeable pull request. Use when the operator asks to write a plan, plan a change, break work down or turn a spec into tasks before writing code ("write a plan", "plan this", "implementation plan", "break this down"), or to create or set up a work loop, work graph or tracker ("create a work loop for this spec", "set up a tracker", "make this resumable").npx claudepluginhub act101-ai/act101 --plugin act-liteOther plugins' skills for the same job