click-path-audit
Skill1 starsChanged 7 months agoMITView on GitHub
Trace every user-facing touchpoint (button, toggle, form submit) through its full state-change sequence to find interaction bugs where handlers individually work but conflict when combined — silent resets, async races, stale closures. Use when a button "does nothing" despite no crash or type error, after modifying a shared state store, or after a refactor touching shared state, and static debugging already came up empty.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- pankaj-mahaur/Agent-Daemontheir own version, first seen Nov 6, 2026
- renepf/claude-skillstheir own version, first seen Oct 25, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- gongyijie85/dsh-ecctheir own version, first seen Oct 13, 2026
- hahuyhungdev/ai-coding-configtheir own version, first seen Oct 2, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- loulanyue/awesome-claude-notes★ 272same name
- Fmarzochi/EGC★ 61same name
- gongyijie85/dsh-ecc★ 8same name
- hahuyhungdev/ai-coding-config★ 3same name
- Rojios/everything-claude-code★ 1same name
- SamuelNDCE/claude-super-skill-library★ 1same name
- TironFox/everything-claude-code★ 1same name
- AI-Degen-69/issue-to-pr-skills★ 0same name
- davidanthonyn/claude-skills★ 0same name
- kuker24/OpenCodeBestFriend★ 0same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- codebase-designSkill
- code-review-checklistSkill
- code-tourSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- decision-logSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Before auditing any handler, build a side-effect map for every store/context action in scope (Redux slice, Zustand store, React context, …
- Distinctive: line 40
Check whether a later call undoes an earlier call's state change (Sequential Undo).
- Distinctive: line 41
Check async calls for order-dependent resolution (Async Race).
- Distinctive: line 42
Check closures capturing stale values across repeated calls (Stale Closure).
- Distinctive: line 43
Check the handler actually performs the action its label promises, not just a partial step (Missing Transition).
- Distinctive: line 44
Check guard conditions that can never be true at that point (Dead Path).
- Distinctive: line 45
Check for a watcher/effect that reacts to this state and reverts it (Effect Interference).
- Very specific: line 82
Early exit: If the audit target has no shared state store or context (grep for common store/reducer/context patterns returns nothing), skip …
- Very specific: line 95
Read-only analysis. No file changes and no test runs.
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Click Path Audit
Find interaction bugs that reading code or running the debugger misses: a handler calls two functions that each work in isolation, but the second silently undoes the first's state change.
Usage
/click-path-audit # audit UI files changed in the working tree
/click-path-audit <file-or-dir> # audit a specific component or directory
/click-path-audit --store <name> # audit every consumer of one shared state storeBehavior
Phase 1: Map shared state side effects
Before auditing any handler, build a side-effect map for every store/context action in scope (Redux slice, Zustand store, React context, signal, view-model — whichever this stack uses):
For each action/setter/reducer case:
- fields it sets
- fields it resets as a side effect (not the fields the caller asked it to change)Flag any action that resets a field it does not own — that is the recurring root cause. Skip this phase if the audit target has no shared state (a single stateless component).
Phase 2: Trace each touchpoint
For every interactive element in scope (click, submit, change, keydown handlers):
- List the handler's function calls in call order.
- For each call, note what it reads, what it sets, and what it resets (from the Phase 1 map).
- Check whether a later call undoes an earlier call's state change (Sequential Undo).
- Check async calls for order-dependent resolution (Async Race).
- Check closures capturing stale values across repeated calls (Stale Closure).
- Check the handler actually performs the action its label promises, not just a partial step (Missing Transition).
- Check guard conditions that can never be true at that point (Dead Path).
- Check for a watcher/effect that reacts to this state and reverts it (Effect Interference).
Phase 3: Report
One entry per confirmed bug, worst first:
Touchpoint: <label> in <file>:<line>
Pattern: <Sequential Undo | Async Race | Stale Closure | Missing Transition | Dead Path | Effect Interference>
Trace: call 1 sets {x:true} -> call 2 resets {x:false}
Expected: <what the label promises>
Actual: <observed final state>
Fix: <minimal change>Report zero findings plainly if none are confirmed — do not pad with stylistic notes.
Examples
Store-focused audit after a refactor:
/click-path-audit --store cartStoreFinds that removeItem(id) resets checkoutStep to 0 as a side effect, so the "Continue to checkout" button silently returns users to step 0 after they remove one item mid-checkout.
Single component after a bug report:
/click-path-audit src/components/ComposeButton.tsxFinds the handler calls openCompose(true) then selectItem(null), and selectItem resets composeOpen: false — the button does nothing, no crash, no type error.
Token Optimization
Expected range: 800–3,000 tokens (initial), 150–350 tokens (cache hit)
Caching: Caches the Phase 1 side-effect map per store file in .claude/cache/click-path-audit/<store-hash>.json, keyed on the store file's content hash, 7-day TTL. Reused across Phase 2 runs against the same store until the store file changes.
Early exit: If the audit target has no shared state store or context (grep for common store/reducer/context patterns returns nothing), skip Phase 1 and audit handlers as self-contained — report immediately if none call more than one state-mutating function.
Patterns used: Grep-before-Read to locate store definitions and handlers before reading full files, git diff scope default (changed UI files only when no target given), caching, progressive disclosure (summary list first, full trace on request).
Edge Cases
- No shared state anywhere in scope: Phase 1 is skipped; only Async Race, Stale Closure, Missing Transition, and Dead Path patterns apply.
- Large app with no target given: scope to files changed in the working tree (
git diff --name-only HEAD); ask the user to confirm scope before a full-app sweep, since this audit is expensive per touchpoint. - Store spans multiple files (slices/modules): build one combined side-effect map before Phase 2; a partial map produces false negatives.
- Handler behavior only diverges under async timing: note the race as a finding even if it cannot be reproduced deterministically; do not discard it for being non-repro.
Safety
Read-only analysis. No file changes and no test runs. Use /ui-harden for production-readiness UI gaps (empty/error states, overflow) and /e2e-generate to turn a confirmed finding into a regression test — this skill does not generate or run tests itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

