/ekosistem-edho-ferdian:click-path-audit-edho-ferdianfrom ekosistem-edho-ferdian
Traces button/toggle/form submit state changes to find handlers that undo each other, async races, stale closures, and effects that reset state. Use when clicks do nothing or state reverts.
Ships in ekosistem-edho-ferdian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ordinary debugging asks: does the handler exist, does it crash, are the types right. All three can be YES while the button is still broken. This skill asks the question those three miss:
Does the final state match what the control's label promises?
A "New Email" button called setComposeMode(true) and then
selectThread(null). Both functions existed, neither threw, types were
correct — and selectThread reset composeMode: false as an undeclared side
effect. The button did nothing. A systematic debugging pass that found 54 other
defects missed this one, because nothing about it is visible from either
function in isolation. It only appears when you look at the sequence.
This audit is expensive; scope it before starting:
| Scope | When |
|---|---|
| One control | A user reported one specific broken button |
| One screen | A new page was just built, or one screen misbehaves |
| One store | A shared store action was modified — audit every caller of the changed actions |
| Whole app | Pre-release, or after a refactor that touched shared state broadly |
For a whole-app audit, Step 1 must complete before any Step 2 work begins —
its output is the input for everything else. On a harness with sub-agent
delegation, build the map yourself, then fan out Step 2 to
click-path-tracer-edho-ferdian in parallel — one delegate per
screen/module, each given the complete map, never building its own
partial one. This is worth the delegation overhead at whole-app scale
(potentially dozens of touchpoints, each independent to trace once the
map exists) but not for the smaller scopes above — trace those inline.
On a harness with no delegation primitive, trace every touchpoint inline
regardless of scope, per Step 2 below. When a tracer's report doesn't hold
up against the map (it cites a handler or a store action that isn't
there), re-run that one screen one tier up rather than the whole fan-out —
config-hygiene-edho-ferdian's references/harness-operation.md §4.2.
For every state store in scope (Zustand store, Redux slice, React context reducer, signal container, view model), record for each action:
STORE: emailStore
setComposeMode(bool) → sets {composeMode}
selectThread(t|null) → sets {selectedThread, selectedThreadId, messages, drafts}
RESETS {composeMode: false, composeData: null, redraftOpen: false}
setDraftGenerating(b) → sets {draftGenerating}
DANGEROUS RESETS (an action clearing state it does not own):
selectThread → resets composeMode (owned by setComposeMode)
reset → resets everything
The DANGEROUS RESETS list is the whole point of this step. Every defect this skill exists to catch lives there. Do not proceed to Step 2 with an incomplete map — an audit against a partial map produces false confidence, which is worse than no audit.
For every interactive element in scope (onClick, onSubmit, onChange,
keyboard handler, gesture handler):
TOUCHPOINT: "New Email" — ThreadList.tsx:88
HANDLER: onClick
1. setComposeMode(true) → sets {composeMode: true}
2. selectThread(null) → RESETS {composeMode: false} ← CONFLICT
EXPECTED (from the label): a blank compose form opens
ACTUAL: composeMode is false; nothing renders
VERDICT: BUG — Sequential Undo
Check every trace against these six patterns:
For each call in a trace, answer four questions: what does it read, what does it write, does it touch shared state, and does it reset anything as a side effect.
CLICK-PATH-001 [HIGH]
Touchpoint: "New Email" — src/components/ThreadList.tsx:88
Pattern: Sequential Undo
Trace:
1. setComposeMode(true) → sets {composeMode: true}
2. selectThread(null) → RESETS {composeMode: false}
Expected: blank compose form opens
Actual: nothing renders; composeMode is false by the end of the handler
Fix: reorder (selectThread first, then setComposeMode), or remove the
undeclared composeMode reset from selectThread and clear it at the
call sites that actually mean to
Severity: CRITICAL — a money, auth, or destructive control that silently does nothing (the user believes the action happened). HIGH — a primary control that does nothing. MEDIUM — a control whose final state is partly wrong. LOW — a redundant call with no user-visible effect (dead code, not a defect).
test-authoring-edho-ferdian/references/regression-testing.md for the test.e2e-testing-edho-ferdian/references/qa-sweep.md).performance-audit-edho-ferdian.A click-path finding is a proven defect with a known reproduction, which makes
it the ideal RED gate. Hand each one to dev-kickoff-edho-ferdian's normal
PLAN → TEST → IMPLEMENT loop: the failing test asserts the final state after
the handler runs, not that each individual function was called. A test that
asserts setComposeMode was called would have passed against the original bug.
references/worked-examples.md — each of the six bug patterns with buggy code, the numbered trace, the fix and the regression test; a side-effect map and a report entry. Read it when doing the work, not before routing.
| You say | What it does | Parameters it uses |
|---|---|---|
| "tombol New Email diklik tapi gak ada yang terjadi" | Step 1 map of the store, then Step 2 trace of that control | scope = one control, target |
| "halaman checkout baru, cek semua tombolnya" | map plus trace of every handler on the screen | scope = one screen, target |
| "habis refactor store, cek semua pemanggil action-nya" | map first, then every caller of the changed actions | scope = one store, target |
| "audit semua klik sebelum rilis" | whole-app map, then Step 2 fanned out per screen | scope = whole app |
| "state-nya balik lagi setelah di-set" | pattern 6 (effect interference) first | scope = one control, target |
| Parameter | Required | Allowed values | Default |
|---|---|---|---|
scope | yes | one control, one screen, one store, whole app | none: scope is fixed before Step 1 |
target | for all but whole app | the control label, the screen file or the store file | none |
tracing mode | optional | parallel click-path-tracer-edho-ferdian delegates (whole app, harness with delegation) or inline | inline |
Output: CLICK-PATH-NNN [SEVERITY] entries with the numbered call trace and
the conflicting write marked, expected vs actual, and a suggested fix. The
audit does not edit code; each finding goes to a test. Examples:
references/worked-examples.md.
When the work reaches one of these, load that skill with the Skill tool and follow it — don't write its part from memory.
frontend-engineering-edho-ferdiane2e-testing-edho-ferdiandesign-engineering-edho-ferdianCommunication to the user in Bahasa Indonesia; the trace report and call
sequence in English, since it gets pasted into an issue or handed to
dev-kickoff-edho-ferdian's TEST/IMPLEMENT loop. Full contract:
skill-authoring-edho-ferdian §7.
This skill is intentionally single-file. If the defect-pattern list (Step 2)
grows past six patterns, or this file passes ~250-300 lines, split framework-
specific tracing detail (e.g. a Zustand/Redux-specific vs. a signals-specific
lens) into references/, following the domain+lens pattern other skills in
this ecosystem use — do not let a single growing file replace that split.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
state-debugging, click-path, side-effect-audit, react-state, zustand, redux
npx claudepluginhub edhoferdian/eef --plugin ekosistem-edho-ferdian43 skills in this plugin
/api-design-edho-ferdianDesign and evolve API contracts: REST resource naming, status codes, pagination, versioning, and one authoritative OpenAPI/schema so client and server never drift. Use for "desain API untuk fitur ini", "struktur endpoint yang baik", "API contract berubah", "REST vs apa", or a new API surface./ask-eefEntry point to the EEF skills: reads the request and the project, then loads the right skill or sequence (dev-kickoff, design-engineering, build-fix, code-review...). Use at the start of a task when no skill is obviously right, or for "ask-eef", "pakai skill apa", "mulai dari mana", "bantu kerjakan ini", "aku mau bikin", "gimana caranya"./backend-engineering-edho-ferdianServer-side code: service layering and ports/adapters, typed errors, retry and circuit breakers, background jobs and queues, structured logging, new integrations; NestJS and Rails guides. Use for "struktur service layer", "error handling di backend", "retry/circuit breaker", "background job", "tambah integrasi baru", "bikin app Rails"./billing-ops-edho-ferdianDiagnose billing incidents (duplicate subscriptions, failed checkout, double charges, broken portal) and verify pricing/entitlement claims against code. Refunds, credits, cancellations need an explicit go-ahead. Use for "pelanggan minta refund", "subscription ganda", "checkout gagal", "kena tagih dua kali", "billing portal rusak"./build-fix-edho-ferdianFix build, compile, dependency and startup failures with a minimal verified diff, never a cast, ts-ignore or disabled check that hides the error; lenses for ~20 stacks. Load it even for one pasted error. Use for "build error", "gagal build", "compile error", "tidak bisa jalan", "fix the build", "dependency conflict", "migration error", or a stack trace./code-quality-tooling-edho-ferdianSet up the automated quality gate: Biome or ESLint+Prettier, Husky, lint-staged, and the equivalents for Python (Ruff), Go and Rust. Use for "setup ESLint", "setup Biome", "tambah Prettier", "pasang husky", "pre-commit hook", "lint-staged", "commit ke-block linter", "format on save", "linter belum ada".Other plugins' skills for the same job