click-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 jeanchastel
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/jeanchastel-click-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-audit
What's inside
- Skill name
click-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
- 209 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- example.md · references/
SKILL.md (first lines)
# /click-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 jeanchastel/arkira, MIT.
More from jeanchastel/arkira
- 0.570score
intent-layer
jeanchastel
Scaffold or audit a repo's hierarchical AGENTS.md Intent Layer.
SkillAFreshness: AClaude Code +9 - 0.570score
onboarding
jeanchastel
Analyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md.
SkillAFreshness: AClaude Code +9 - 0.570score
intake-runbook
jeanchastel
Take a client's externally-hosted project (Lovable export, a repo on another GitHub/GitLab, a dev project) and re-home it onto your own GitHub + Vercel, then…
SkillAFreshness: AClaude Code +9 - 0.567score
design-system
jeanchastel
Generate or audit a design system from Tailwind or CSS tokens, extract and check design tokens, run an AI-slop visual-consistency audit, and review…
SkillAFreshness: AClaude Code +9 - 0.565score
deploy-prep
jeanchastel
Pre-flight gate before pushing a static brochure site to FTP or Netlify, composing html-audit, a11y-audit-aa, perf-budget, responsive, and deploy-specific…
SkillAFreshness: AClaude Code +9 - 0.565score
adr
jeanchastel
Capture architectural decisions made during Claude Code sessions as structured ADRs with context, alternatives considered, rationale, and an ADR log.
SkillAFreshness: AClaude Code +9 - 0.565score
bug-report
jeanchastel
Use when behavior looks like an Arkira harness defect in any repo, including bin/arkira, goal, gate, session state, hooks, or Arkira CI workflows.
SkillAFreshness: AClaude Code +9 - 0.565score
context-discipline
jeanchastel
Use when a task involves heavy file reading, repo-wide search, or long tool output.
SkillAFreshness: AClaude Code +9 - 0.565score
css-tokens
jeanchastel
Migrate hardcoded color, spacing, and typography values in static-site CSS to custom properties aligned with the static-web token layer and entity brand kit.
SkillAFreshness: AClaude Code +9 - 0.565score
perf-budget
jeanchastel
Check a static brochure site against the static-web performance budget: Lighthouse mobile 90+, page weight under 1MB, WebP with srcset, self-hosted fonts with…
SkillAFreshness: AClaude Code +9 - 0.561score
ideate
jeanchastel
Mine an operator's business or expertise to score three to five product directions and sharpen one into docs/product-idea.md.
SkillAFreshness: AClaude Code +9 - 0.561score
native-scaffold
jeanchastel
Scaffold an Expo + React Native native app version of an existing Arkira web app with shared design tokens and EAS.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 7, 2026 (1 month ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jeanchastel/arkira
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jeanchastel
- 0.570score
intake-runbook
jeanchastel
Take a client's externally-hosted project (Lovable export, a repo on another GitHub/GitLab, a dev project) and re-home it onto your own GitHub + Vercel, then…
SkillAFreshness: AClaude Code +9 - 0.570score
onboarding
jeanchastel
Analyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md.
SkillAFreshness: AClaude Code +9 - 0.570score
intent-layer
jeanchastel
Scaffold or audit a repo's hierarchical AGENTS.md Intent Layer.
SkillAFreshness: AClaude Code +9 - 0.567score
design-system
jeanchastel
Generate or audit a design system from Tailwind or CSS tokens, extract and check design tokens, run an AI-slop visual-consistency audit, and review…
SkillAFreshness: AClaude Code +9 - 0.565score
css-tokens
jeanchastel
Migrate hardcoded color, spacing, and typography values in static-site CSS to custom properties aligned with the static-web token layer and entity brand kit.
SkillAFreshness: AClaude Code +9 - 0.565score
bug-report
jeanchastel
Use when behavior looks like an Arkira harness defect in any repo, including bin/arkira, goal, gate, session state, hooks, or Arkira CI workflows.
SkillAFreshness: AClaude Code +9
Cite this page
click-audit skill. Agent Mart. https://agentmart.dev/skills/jeanchastel-click-audit (last updated 2026-10-24)