# Click path audit

> Click path audit is an open-source agent skill for developer tools. Traces each button's state changes to find handlers that silently undo each other. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/click-path-audit
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** click-path-audit
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through a behavioural audit of user-facing controls. For each button, toggle or form submit in a chosen area, it walks the handler's calls in order and records which state each one reads, writes or resets, then checks whether the final state matches what the label promises. It targets bugs that pass ordinary checks: functions that exist and run without errors but cancel each other out, leave the interface inconsistent, or depend on async calls resolving in the wrong order.

The workflow starts by mapping every action in the relevant state stores, noting which fields each one sets and which it clears as a side effect. Each touchpoint is then checked against a set of patterns, including sequential undo, async races, stale closures, missing transitions, dead conditional paths and effects that reset state. Findings are reported with a severity, the trace of calls, the expected and actual outcome, and a suggested fix. The skill also suggests scoping the audit to a single page, a store, or a full app split across parallel agents.

It is written for a React-style codebase using shared stores such as Zustand, Redux or context, and the example it gives is drawn from that setup. It expects access to the source code of the components and stores in scope, and it does not replace API-level debugging.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/click-path-audit)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/click-path-audit)

## Features

- **Store side-effect mapping:** Builds a map of which fields each state action sets and which other fields it resets.
- **Handler call tracing:** Walks each button or form handler call by call to see how state changes stack up.
- **Bug pattern checklist:** Checks for sequential undo, async races, stale closures, dead paths and effect interference.
- **Structured bug reports:** Outputs findings with severity, trace, expected versus actual behaviour and a fix.
- **Scoped audit options:** Supports auditing a single page, one store's consumers, or the whole app in parallel.

## Good for

- Find out why a "New Email" button does nothing even though its handlers run
- Audit all buttons on a dashboard page after a state management refactor
- Check every consumer of a changed Zustand store action for unintended resets
- Review a checkout or form submit flow for async calls resolving in the wrong order

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/click-path-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/click-path-audit &&
cp -R "$tmp/.agents/skills/click-path-audit" ~/.claude/skills/click-path-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/click-path-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/click-path-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/click-path-audit &&
cp -R "$tmp/.agents/skills/click-path-audit" ~/.agents/skills/click-path-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/click-path-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/click-path-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/click-path-audit &&
cp -R "$tmp/.agents/skills/click-path-audit" ~/.cursor/skills/click-path-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/click-path-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/click-path-audit
```

Or copy the folder to `~/.gemini/skills/click-path-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/click-path-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/click-path-audit &&
cp -R "$tmp/.agents/skills/click-path-audit" ~/.copilot/skills/click-path-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/click-path-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/click-path-audit` into your agent's skills folder as `click-path-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I run Click path audit?

It is meant for cases where systematic debugging finds no bugs but users report broken buttons, or after a major refactor touching shared state stores.

### What does Click path audit check that normal debugging misses?

It checks whether a later call in a handler undoes an earlier state change and whether the final state matches the button label, which standard checks for missing wiring, crashes and types do not cover.

### What does the audit output look like?

Each bug is reported with an ID, severity, touchpoint, pattern, handler, a step-by-step trace, expected and actual results, and a specific fix.

### Does Click path audit run any scripts?

No scripts are included; the skill consists of instructions and a method for the agent to follow.

### How do I install Click path audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/click-path-audit to use it in all your projects, or to .claude/skills/click-path-audit in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Click path audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Click path audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Click path audit?

The closest alternatives to Click path audit are Principle fix root causes, Diagnosing bugs, Audit frontend design, Agent architecture audit and Frontend security.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Principle fix root causes](https://ai-powered.com/skills/principle-fix-root-causes): Principle fix root causes is an open-source agent skill for developer tools.
- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Audit frontend design](https://ai-powered.com/skills/audit-frontend-design): Audit frontend design is an open-source agent skill for design and media.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Frontend security](https://ai-powered.com/skills/frontend-security): Frontend security is an open-source agent skill for security.
- [Shiplog trace](https://ai-powered.com/skills/shiplog-trace): Shiplog trace is an open-source agent skill for developer tools.
- [Vue debug](https://ai-powered.com/skills/vue-debug): Vue debug is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/click-path-audit
