click-path-audit
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out…
Skill by Jamkris
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jamkris-click-path-audit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, design, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/click-path-audit
What's inside
- Skill name
click-path-audit- Description
- Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out, produce wrong final state, or leave the UI in an inconsistent state. Use when: systematic debugging found no bugs but users report broken buttons, or after any major refactor touching shared state stores.
- License
- MIT
- Instructions
- 240 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# /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:
```
1. IDENTIFY the handler (onClick, onSubmit, onChange, etc.)
2. TRACE every function call in the handler, IN ORDER
3. For EACH function call:
a. What state does it READ?
b. What state does it WRITE?
c. Does it have SIDE EFFECTS on shared state?
d. Does it reset/clear any state as a side effect?
4. CHECK: Does any later call UNDO a state change from an earlier call?
5. CHECK: Is the FINAL state what the user expects from the button label?
6. CHECK: Are there race conditions (async calls that resolve in wrong order)?
```
---
## Execution Steps
### Step 1: Map State Stores
Before auditing any touchpoint, build a side-effect map of every state store action:
```
For each Zustand store / React context in scope:
For each action/setter:
- What fields does it set?
- Does it RESET other fields as a side effect?
- Document: actionName → {sets: [...], resets: [...]}
```
This is the critical reference. The "New Email" bug was invisible without knowing that `selectThread` resets `composeMode`.
**Output format:**
```
STORE: emailStore
setComposeMode(bool) → sets: {composeMode}
selectThread(thread|null) → sets: {selectedThread, selectedThreadId, messages, drafts, selectedDraft, summary} RESETS: {composeMode: false, composeData: null, redraftOpen: false}
setDraftGenerating(bool) → sets: {draftGenerating}
...
DANGEROUS RESETS (actions that clear state they don't own):
selectThread → resets composeMode (owned by setComposeMode)
reset → resets everything
```
### Step 2: Audit Each Touchpoint
For each button/toggle/form submit in the target area:
```
TOUCHPOINT: [Button label] in [Component:line]
HANDLER: onClick → {
call 1: functionA() → sets {X: true}
call 2: functionB() → sets {Y: null} RESETS {X: false} ← CONFLICT
}
EXPECTED: User sees [description of what button label promises]
ACTUAL: X is false because functionB reset it
VERDICT: BUG — [description]
```
**Check each of these bug patterns:**
#### Pattern 1: Sequential Undo
```
handler() {
setState_A(true) // sets X = true
setState_B(null) // side effect: resets X = false
}
// Result: X is false. First call was pointless.
```
#### Pattern 2: Async Race
```
handler() {
fetchA().then(() => setState({ loading: false }))
fetchB().then(() => setState({ loading: true }))
}
// Result: final loading state depends on which resolves first
```
#### Pattern 3: Stale Closure
```
const [count, setCount] = useState(0)
const handler = useCallback(() => {
setCount(count + 1) // captures stale count
setCount(count + 1) // same stale count — increments by 1, not 2
}, [count])
```
#### Pattern 4: Missing State Transition
```
// Button says "Save" but handler only validates, never actually saves
// Button says "Delete" but handler sets a flag without calling the API
// Button says "Send" but the API endpoint is removed/broken
```From Jamkris/everything-gemini-code, MIT.
More from Jamkris/everything-gemini-code
- 0.588score
brand-voice
Jamkris
Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and…
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
customer-billing-ops
Jamkris
Operate customer billing workflows such as subscriptions, refunds, churn triage, billing-portal recovery, and plan analysis using connected billing tools like…
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
api-connector-builder
Jamkris
Build a new API connector or provider by matching the target repo's existing integration pattern exactly.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
council
Jamkris
Convene a four-voice council for ambiguous decisions, tradeoffs, and go/no-go calls.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
accessibility
Jamkris
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
carrier-relationship-management
evos
Codified expertise for managing carrier portfolios, negotiating freight rates, tracking carrier performance, allocating freight, and maintaining strategic…
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
codebase-onboarding
Jamkris
Analyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter GEMINI.md.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
crosspost
Jamkris
Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
connections-optimizer
Jamkris
Reorganize the user's X and LinkedIn network with review-first pruning, add/follow recommendations, and channel-specific warm outreach drafted in the user's…
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
automation-audit-ops
Jamkris
Evidence-first automation inventory and overlap audit workflow for ECC.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
autonomous-agent-harness
Jamkris
Transform Gemini CLI into a fully autonomous agent system with persistent memory, scheduled operations, computer use, and task queuing.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
customs-trade-compliance
evos
Codified expertise for customs documentation, tariff classification, duty optimization, restricted party screening, and regulatory compliance across multiple…
SkillCFreshness: C★ 91Claude Code +9
Signals
- Stars
- 91
- Forks
- 23
- Open issues
- 1
- Last commit (this folder)
- Mar 24, 2026 (7 months ago)
- Last release
- May 26, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.362score
click-path-audit
nguyentrunghieutcu
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out…
SkillBFreshness: B★ 19Claude Code +9 - 0.356score
click-path-audit
unrealandychan
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out…
SkillBFreshness: B★ 12Claude Code +9 - 0.338score
click-path-audit
sakuradairong
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out…
SkillCFreshness: C★ 48Claude Code +9 - 0.312score
click-path-audit
AI-Degen-69
Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out…
SkillBFreshness: BClaude Code +9
More from Jamkris
- 0.588score
brand-voice
Jamkris
Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and…
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
accessibility
Jamkris
Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
api-connector-builder
Jamkris
Build a new API connector or provider by matching the target repo's existing integration pattern exactly.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
automation-audit-ops
Jamkris
Evidence-first automation inventory and overlap audit workflow for ECC.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
autonomous-agent-harness
Jamkris
Transform Gemini CLI into a fully autonomous agent system with persistent memory, scheduled operations, computer use, and task queuing.
SkillCFreshness: C★ 91Claude Code +9 - 0.583score
codebase-onboarding
Jamkris
Analyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter GEMINI.md.
SkillCFreshness: C★ 91Claude Code +9
Cite this page
click-path-audit skill. Agent Mart. https://agentmart.dev/skills/jamkris-click-path-audit (last updated 2026-10-24)