/act-lite:diagnose-defectfrom act-lite
Finds 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.
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, which this skill creates and removes 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 record in the report what failed and what you now think. Then go back to step 3 with the revised model, without waiting for an answer.
Report (below). First remove every probe and temporary logging line you added, whether or not anything is committed, except the observation that step 1 keeps.
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
npx claudepluginhub act101-ai/act-lite --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.Other plugins' skills for the same job