/click-path-audit:click-path-auditfrom click-path-audit
Audits UI event handlers for behavior bugs. It maps each state action's side effects, then traces every handler call in order to find sequential undo, async races, stale closures, dead paths and effects that reset what a click just set. Use when a button does nothing or leaves the wrong state though each function works alone, or after a shared-state refactor.
Ships in click-path-audit. 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.
Read when SKILL.md points to them.
Each function in a handler can be correct while the handler is not. A later call resets what an earlier call set, two async results land in the wrong order, or an effect clears the flag the click just raised. Static reading and per-function tests miss these, because the bug lives in the sequence. This skill traces the sequence.
Not for building or fixing components (react), API or data-shape bugs (problem-solving), styling, or performance profiling.
It is store-agnostic. "State action" below means any writer of shared state: a Redux reducer, a Zustand or Pinia action, a context setter, a signal, a component's own setState.
Scope. Pick one page, one feature, or the consumers of one changed action. Ask the person if the target is unclear. A whole-app audit is expensive, so run it only before a release or after a broad state refactor, and split it by page.
Build the side-effect map. For every state action in scope, record the fields it sets and the fields it resets or overwrites without owning them.
store: <name>
setComposeMode(bool) sets {composeMode}
selectItem(item|null) sets {selected, messages, drafts} resets {composeMode, composeData}
foreign resets: selectItem resets composeMode (owned by setComposeMode)
The foreign-reset list is the key output. Read the action bodies, including reducers, middleware, and subscriptions that run on write. Do not infer effects from names. When the repo is indexed, the codebase-memory MCP tools (search_graph, trace_path) find every writer of a field faster than Grep.
Trace each touchpoint. For each button, toggle, form submit, and change handler in scope, list its calls in execution order and what each reads and writes.
touchpoint: "New item" button, ItemList.tsx:42
1. setComposeMode(true) sets {composeMode: true}
2. selectItem(null) resets {composeMode: false} <- conflict
expected: compose panel opens
actual: composeMode is false after the click
Check the final state against the label. The question is whether the state after the handler matches what the control promises, not whether each call succeeded.
Report each confirmed bug with the trace, the expected and actual end state, and a fix. Suggest a regression test per bug and stop there unless asked to write it.
Read references/patterns.md for each pattern's shape, how to confirm it, and the usual fix. The six are:
inferred when you did not run it. Do not claim a runtime outcome you did not observe.file:line for each call in the trace.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin click-path-audit