/act101:diagnose-defectfrom act101
Finds root cause of defects (bugs, flaky tests, crashes, regressions) and fixes at the source, proven by a failing test. Use before proposing a fix.
Ships in act101. 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/act101 --plugin act10126 skills in this plugin
/agent-safety-auditUse before an autonomous agent edits a sensitive or high-blast-radius file, or to judge an edit it already made. Composes secret surface, taint flow, blast radius, API width, and the repo scan into one safety verdict./architectural-refactoringUse when breaking circular dependencies, splitting god classes, reducing coupling between modules, extracting interfaces at seams, or executing any structural change identified by an architecture audit. Requires a prior architecture-audit run that produced project-map.md and a report./architecture-auditUse when asked to audit architecture, get the full structural picture of a codebase, assess overall health or porting readiness, or find module boundaries, circular dependencies, coupling hotspots, dead code, or code smells. Full hypothesis-driven audit, optionally enriched with coverage and git evidence./boundary-analysisUse when looking for extraction candidates, planning a module split, analyzing module boundaries, or asked "where should I split this?". Produces ranked extraction candidates with cut costs, layer violations, interface width, orphan types, and a decomposition sequence./change-impactUse before modifying a file or symbol, or when asked "what breaks if I change X?". Returns a blast-radius, test-coverage, and cycle-risk verdict immediately, with no follow-up investigation./code-generationGenerates boilerplate (constructors, accessors, builders, equals and hash methods, JSON serialization, toString, interface stubs, test stubs) from a type's existing fields, previewed and reversible. Use when creating any of that boilerplate from an existing class or struct, or when porting a type and its boilerplate to another language. Business logic is written by hand.Other plugins' skills for the same job