Skip to content
affaan-m avatar

Click Path Audit

Trace every user-facing button through its state change sequence to catch bugs that static checks miss.

CCM score
75 of 100
skills.sh installs
11.3K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers systematic tracing of each touchpoint's handler calls in order, mapping which state each call reads, writes, and resets
  • Includes six bug patterns (sequential undo, async race, stale closure, missing transition, dead path, useEffect interference) and a store side-effect map
  • Enforces a check that the final state matches the button label, flagging handlers where later calls silently undo earlier ones
  • Designed for debugging when systematic checks find no bugs but users report buttons that do nothing, or after refactors touching shared state stores

Install

$ npx -y skills add affaan-m/ecc --skill click-path-audit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

/click-path-audit — Behavioural Flow Audit

Find bugs that static code reading misses: state interaction side effects, race conditions between sequential calls, and handlers that silently undo each other.

The Problem This Solves

Traditional debugging checks:

  • Does the function exist? (missing wiring)
  • Does it crash? (runtime errors)
  • Does it return the right type? (data flow)

But it does NOT check:

  • Does the final UI state match what the button label promises?
  • Does function B silently undo what function A just did?
  • Does shared state (Zustand/Redux/context) have side effects that cancel the intended action?

Real example: A "New Email" button called setComposeMode(true) then selectThread(null). Both worked individually. But selectThread had a side effect resetting composeMode: false. The button did nothing. 54 bugs were found by systematic debugging — this one was missed.


How It Works

For EVERY interactive touchpoint in the target area:

Details

Repository
github.com/affaan-m/ecc
Categories
Debugging, Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the click-path-audit skill do?

It traces every user-facing button or touchpoint through its full sequence of state changes. It finds bugs where functions work alone but cancel each other out, leave the wrong final state, or leave the UI inconsistent.

When should I use click-path-audit instead of systematic debugging?

Use it when systematic debugging found no bugs but users still report broken buttons, or after a major refactor touching shared state stores. It is not meant for API-level bugs, styling issues, or performance problems.

How do I install click-path-audit?

Run npx -y skills add affaan-m/ecc --skill click-path-audit -y in your project. The skill then lets the agent map state store side effects and audit each button's handler for bugs like sequential undo or stale closures.

Where does click-path-audit rank in the Debugging category?

It ranks in the top 50 of the Debugging category on Claude Marketplaces, alongside diagnosing-bugs, safe-debug, and systematic-debugging. It differs from those by focusing on button handlers whose individual calls work but whose combined effect breaks the UI.

More from affaan-m/ecc

All 257

Similar to Click Path Audit

More Debugging