/fabrik:bombadilfrom fabrik
Property-based testing for web UIs using Bombadil. Explores a running web app in a real browser, checking correctness properties via random clicks, typing, and navigation. Use before writing Playwright/Cypress/Selenium tests.
Ships in fabrik. 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.
None: SKILL.md is the whole skill.
Bombadil is property-based testing for web UIs. Instead of scripting fixed click paths, you state properties that must hold in general ("the counter only ever changes by one", "an error message disappears within five seconds"), and Bombadil drives a real Chromium at random -- clicking, typing, scrolling, navigating, reloading -- checking every property in every state it reaches. It finds the sequences nobody thought to script.
It tests anything with a DOM: server-rendered pages, single-page apps, static HTML. The bombadil CLI is installed.
When web UI testing comes up, consider Bombadil first:
Start the app, then point Bombadil at it:
bombadil browser test --headless --exit-on-violation --time-limit 1m http://localhost:8080
Without a specification file, Bombadil uses its defaults: generic actions on semantic HTML elements and navigation, and properties that fail on uncaught exceptions, unhandled promise rejections, console errors, and HTTP 4xx/5xx responses. That alone is a useful smoke test for any web app.
With a specification, pass it after the URL:
bombadil browser test --headless --exit-on-violation --time-limit 1m http://localhost:8080 spec.ts
Flags worth knowing (bombadil browser test --help has the rest):
--headless -- no visible window. Use it unless the user wants to watch.--time-limit 30s|5m|1h -- without it the test runs until interrupted. Always set one.--exit-on-violation -- stop at the first violated property instead of collecting more.--output-path FILE -- where the trace goes (default: a unique file in the system temp directory). Add --output-path-overwrite to replace an existing one.--cookie NAME=VALUE and --header KEY=VALUE -- start authenticated, e.g. with a session cookie.--allow-url PATTERN -- exploration stays on the origin's scheme, host, and port by default; this replaces that boundary with Chrome match patterns.--chrome-virtual-time-policy Advance -- speeds up timer-heavy apps.Exit codes: 0 completed without violations (including hitting the time limit), 2 property violation, 1 any other error. A run also ends with Error: no actions available (exit 1) when Bombadil reaches a state with nothing to do, such as a page without links or controls; give it an action there, or allow back and reload.
Bombadil clicks whatever it finds, including "Delete account". Run it against a local or disposable environment, never against production data.
A specification is a TypeScript (or JavaScript) ES module whose exports are all properties or action generators. Bombadil resolves the @antithesishq/bombadil imports itself; npm install --save-dev @antithesishq/bombadil is only needed for editor types.
import { always, eventually, now, next } from "@antithesishq/bombadil";
import { extract } from "@antithesishq/bombadil/browser";
// Keep the default properties and actions.
export * from "@antithesishq/bombadil/browser/defaults";
// Extractors run in the browser on every captured state and return JSON-serializable data.
const counter = extract((state) =>
parseInt(state.document.querySelector("#counter")?.textContent ?? "0", 10),
);
const error = extract(
(state) => state.document.querySelector(".error")?.textContent ?? null,
);
// State machine: the counter never jumps by more than one between states.
export const counterStepsByOne = always(
now(() => {
const before = counter.current;
return next(() => Math.abs(counter.current - before) <= 1);
}),
);
// Guarantee: an error message goes away again.
export const errorDisappears = always(
now(() => error.current !== null).implies(
eventually(() => error.current === null).within(5, "seconds"),
),
);
The pieces:
extract(state => ...) returns a Cell; read it with .current, derive another with .map(...). state.document and state.window are the browser's own.always(x) (this and every future state), eventually(x) (this or some future state; bound it with .within(n, "seconds")), next(x) (the next state), now(x) (this state; turns a thunk into a formula)..and(y), .or(y), .implies(y), .not().counterStepsByOne does.The defaults can be picked individually from @antithesishq/bombadil/browser/defaults/properties (e.g. noUncaughtExceptions) and @antithesishq/bombadil/browser/defaults/actions (e.g. clicks, inputs, scroll, back, forward, reload) -- useful when a default property is noise for the app at hand, such as an expected 404.
Good properties come from what the app promises, not from its current markup: invariants (a total equals the sum of its rows), state machines (only these transitions are legal), and guarantees (after submit, a confirmation eventually appears). Ask what must never happen and what must eventually happen.
The default actions go a long way. Add your own when Bombadil needs help getting somewhere, such as past a login form or a cookie banner:
import { actions, extract, registerCustomAction } from "@antithesishq/bombadil/browser";
const onLoginPage = extract((state) => state.document.querySelector("#login") !== null);
const logIn = registerCustomAction("logIn", async (document, _window, email: string) => {
const input = document.querySelector<HTMLInputElement>("#login [type=email]");
if (!input) throw new Error("email input not found");
input.value = email;
input.dispatchEvent(new Event("input", { bubbles: true }));
document.querySelector<HTMLButtonElement>("#login [type=submit]")?.click();
});
// Only offer an action in states where it can be performed.
export const login = actions(() => (onLoginPage.current ? [logIn("[email protected]")] : []));
weighted([[10, back], [1, reload]]) biases the choice between generators, and generators have map, filter, and flatMap for adapting the defaults (say, clicks restricted to elements outside a sidebar).
The run prints the violated property, the state it failed in, and two ready-made commands: one to inspect, one to reproduce.
bombadil trace FILE lists the states with their actions, URLs, and violations, in the terminal. Narrow it with --state 40..50, get JSON lines with --json, and write screenshots with --screenshots DIR. This is the way to read a trace yourself.bombadil browser inspect FILE opens an interactive timeline in the user's browser, with before and after screenshots per action. Offer it to the user; it is no use to you.bombadil browser test --reproduce FILE URL [SPEC] replays the same actions, to confirm a fix. Use the same options as the original run. It is best-effort and fails if the app diverges.bombadil browser shrink --trace FILE URL [SPEC] (experimental) searches for a shorter trace that still violates the property.A violation is a claim that the app broke its promise, so check which side is wrong before fixing anything: a property that is too strict is as common as a real bug. Tell the user what Bombadil did to get there in plain steps, not as a trace dump.
antithesishq/bombadil-action@v2 wraps the CLI for GitHub Actions (driver: browser, origin, specification, time-limit, exit-on-violation, output-path). Short runs suit pull requests; longer ones suit a schedule on the main branch. Runs are random, so a longer time limit finds more, and a passing run means no violation was found, not that none exists.
@antithesishq/bombadil/browser/extras/resources), and the CLI reference.bombadil browser test-external tests an already-running browser or an Electron app over a remote debugging port.bombadil terminal (experimental) does the same for terminal UIs.What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/ableton-liveGuide for making music in Ableton Live 12 on macOS. Use this skill whenever the user asks how to do something in Ableton Live or "in Live", wants help with a Live Set, project, or session, asks which stock Live device or instrument to use for a sound (Operator, Wavetable, Drift, Meld, Simpler, Sampler, Roar, Echo, Hybrid Reverb, Auto Filter, Drum Rack, Racks, Macros...), needs warping, Session vs Arrangement, clip launching, Follow Actions, MIDI editing, MIDI Tools, scale awareness, grooves, automation, clip envelopes, routing, sidechain, resampling, comping, stem separation, bouncing, freezing, exporting, Push 1/2, Link, MIDI sync, CPU or latency troubleshooting, or keyboard shortcuts. Trigger even when the user doesn't say "Ableton" -- words like "Live Set", ".als", "clip slot", "scene", "Drum Rack", "Simpler", "warp marker", "Session View", "Arrangement View", "Max for Live", or "Push" are enough. Also use it when the user is producing electronic music and asks for a workflow or sound-design recipe that will be executed in Live./accomplishmentsExtract accomplishments from new implementation diary entries into docs/accomplishments.md, written as one-line reflections that blend self-appraisal with Markus's appreciation. Use only when the user invokes /accomplishments or explicitly asks to extract, update, or refresh accomplishments from the diary. Do not run proactively.npx claudepluginhub maragudk/fabrik --plugin fabrikOther plugins' skills for the same job