/bugfinding:ui-state-explorationfrom bugfinding
Guides model-free exploration of browser and React UI states by discovering clickable events, abstracting and deduplicating states, resetting and replaying paths, and checking oracles at every new state, driven by Playwright. Use when asked to crawl a web app, explore a React or single-page UI, or find bugs by clicking through an app; when bugs need unknown click and input paths and no operation model exists; or to find UI state cycles for leak checks.
Ships in bugfinding. 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.
Discover reachable UI states without a model and check each one as it appears. A crawl alone is not a test: "just running CRAWLJAX would correspond to conducting a smoke test" (Mesbah et al., TSE 2012, p.50). Choose stateful-property-testing instead when an operation model with preconditions exists or is cheap to write. Crawljax, the reference crawler, is Java and was last pushed 2023-09-18 (repository); write a small target-specific loop over Playwright, not a general crawler framework.
Build the key from an aria snapshot or a filtered DOM, passed through an ordered list of named normalizers, each limited by a precondition to the states it applies to. Aria snapshots "provide a YAML representation of the accessibility tree", detailing "roles, attributes, values, and text content" (Playwright aria snapshots). Normalizers hide faults when broad: comparators "can also be too permissive, grouping DOM trees that should be considered different" (TSE 2012, p.40), and "Using only the generic comparators would result in a false negative, namely the leading-zero bug" (Roest et al., ICST 2010, p.134). Remove nondeterminism at its source first with setFixedTime (Playwright clock) and route.fulfill (Playwright network). Compare each new state against all visited states, not only its parent (Mesbah et al., TWEB 2012, p.9). A URL is not a state key. Read state abstraction.
Take candidates from interactive roles in the current snapshot, new ones first; Crawljax extracts candidates from the DOM diff and counts a candidate as a transition only if firing it changes the DOM under the chosen comparison (TWEB 2012, pp.8-9). Handlers registered with addEventListener are invisible to DOM inspection (TWEB 2012, p.5); record that blind spot. Exclude elements that "can cause problems (delete items or log the user out)" unless that path is the target (TSE 2012, p.39).
Wait on an app-specific settle predicate with waitForFunction (Playwright Page API). 'networkidle' is "DISCOURAGED" (Playwright params); a fixed wait is slow or unsafe and an app completion flag is more reliable (TWEB 2012, p.27); comparing an incomplete DOM gives false failures (ICST 2010, p.135). Auto-wait hides early windows: Playwright will click a button "regardless of when the [method: Locator.click] call was made" (Playwright actionability). Read crawl loop.
Open a fresh browser context per replayed path; each context "has its own local storage, session storage, cookies etc." (Playwright browser contexts), and cookies broke Crawljax's reload reset (TWEB 2012, p.26). Reset server state with a hook (TSE 2012, p.44; ICST 2010, p.135). Label edges by event, role and accessible name, re-resolved after reload: positional locators can select "a similar element", causing "a transition to a different state than expected" (ICST 2010, p.129), and aria refs "resolve against the latest snapshot" (Playwright Page API). Record a replay that lands in a different state as a nondeterminism finding; do not merge it silently.
Attach generic checks (page errors, console errors, HTTP error responses, error-boundary fallback, error strings), application invariants with preconditions, and graph checks after the crawl (TSE 2012, pp.38, 41-42). DOM-only checks miss faults "silently swallowed by the JAVASCRIPT engine" (TSE 2012, p.48). Read per-state oracles and hand-offs.
Bound depth, state count, time and exclusions; depth 1 to 2 grew one site from 148 to 1,071 states (TWEB 2012, p.18), and depth 3 exceeded 60 minutes without changing fault detection (TSE 2012, p.48). Default to your own Playwright loop. chaosbringer can serve as a random-crawl baseline and oracle harness where the target already uses it, but it deduplicates by URL only (crawler.ts:917-925).
stateful-property-testing.resource-complexity-testing.correctness-oracles.failure-reduction; attribution: evidence-based-triage.schedule-exploration.playwright-cli.Return the normalizer list, states and labeled edges, unsettled and unreplayable paths, oracle evaluations and violations with replay traces, and blind spots. The graph is "an instance" of the state machine, not "the" instance (TWEB 2012, p.26); zero findings is a bounded result. Read common mistakes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ctoth/computational-bugfinding-skills-plugin --plugin bugfinding26 skills in this plugin
/bounded-model-checkingGuides source-linked CBMC, JBMC and Kani checks with explicit input domains, unwind bounds and executable counterexamples. Use when finite hard paths or invariants merit solver search beyond fuzzing, or when interpreting bounded verification, vacuous success or counterexample playback./bugfinding-campaignGuides compute-budgeted bugfinding campaigns by finding gaps in existing generators, execution models and correctness oracles. Use when choosing what to test next, extending an established fuzzing setup, or deciding whether more compute will produce useful evidence./configuration-differential-testingOther plugins' skills for the same job