Command Palette

Search for a command to run...

Назад к скиллам
скилл № 97009

bombadil

Use when a web or terminal UI needs property-based testing or fuzzing with Bombadil (Antithesis): writing a TypeScript specification with properties…

БесплатноБез исполняемых скриптов
fcsouzaот fcsouza★ 29 звёзд на GitHub

Установить bombadil в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Bombadil

Bombadil is property-based testing for UIs, from Antithesis. You write a TypeScript specification that exports properties and action generators. Bombadil drives Chrome (browser driver) or a pseudo-terminal (terminal driver), picks random actions, and checks every property on every state it captures. A violation comes back as a trace you can replay and shrink.

This skill was checked against @antithesishq/bombadil 0.8.0 on macOS arm64 with Bun 1.4.4 and Chrome. Lines marked "not verified here" were read in the docs but not run. The terminal driver, fuzz and shrink carry the EXPERIMENTAL label in 0.8.0.

When to use it, and when not

Use it to find bugs nobody wrote a test for: odd action orders, double clicks, back and forward, timing, strange input. It complements example tests. It does not replace them.

It needs a runnable app. The browser driver needs Chrome or Chromium on the machine. The terminal driver runs any program that reads stdin and writes to a terminal.

Skip it for pure logic with no UI, for a page you cannot run locally or on staging, and when the user wants one specific flow checked. Write an example test for that.

In the team process this skill comes from, every correction the user makes becomes a deterministic check, and most agent tokens go to verification. Bombadil is the fuzz layer of that process for UIs. A rule the user states becomes a property, and the property runs on every state from then on.

The loop Bombadil runs

  1. Extract the current state from the page or the terminal.
  2. Check every exported property against it and record violations.
  3. Pick the next action from the exported generators, by weight, and perform it.
  4. Wait for an event: navigation, DOM change or timeout in the browser; output bytes or timeout in the terminal.
  5. Go to step 1.

Install

bun add -d @antithesishq/[email protected]
bunx bombadil --version        # bombadil 0.8.0

The npm package ships prebuilt binaries for linux-x64, linux-arm64 and darwin-arm64 only, and the TypeScript types. Intel macOS gets unsupported platform. Pin the version: the manual on the website can be ahead of the package.

Workflow

  1. Get a safe target. Start the app on localhost or a staging host with disposable data. Never point Bombadil at production or a third-party site. Generators click everything they can reach, including "Delete", "Pay" and "Send".
  2. Turn the user's rules into properties. One exported property per rule, named after the rule. See "From a rule to a property" below.
  3. Choose actions. Start from the defaults. Filter out destructive controls. Add custom generators for flows random clicks rarely reach.
  4. Typecheck the spec before you run it: bunx tsc --noEmit --strict --target esnext --module preserve --moduleResolution bundler --lib esnext,dom --skipLibCheck bombadil/spec.ts. Add --ignoreConfig when the folder has a tsconfig.json; TypeScript 7 refuses file arguments next to one otherwise. A type error found by tsc costs seconds; one found by Bombadil costs a Chrome start.
  5. Run a bounded test. Always pass --time-limit and --exit-on-violation, and --headless for the browser.
  6. Read the trace, reproduce it with the same options, then shrink it.
  7. Fix the app, not the property. Replay the shrunk trace against the fix, then run a fresh bounded test.
  8. Report the violation to the user in the app's own words, with the trace as evidence.
  9. Wire it into CI once the spec is stable.

A bounded run for an agent

mkdir -p .bombadil
bunx bombadil browser test --headless --time-limit 2m --exit-on-violation \
  --output-path .bombadil/run-1 http://localhost:3000/ bombadil/spec.ts
echo "exit=$?"

bunx bombadil terminal test --specification bombadil/cli.spec.ts \
  --time-limit 1m --exit-on-violation --output-path .bombadil/cli-1 ./my-cli --flag

Without --time-limit a test runs until you stop it. Without --output-path the trace goes to a temp file you then have to find. The output path names a file, not a directory. Its parent must exist, and an existing file is refused unless you pass --output-path-overwrite. Add the trace folder to .gitignore.

Exit codes seen in 0.8.0: 0 for a clean run that hit the time limit. 2 for a browser violation. 1 for a terminal violation, although the manual says 2. 1 for runtime errors such as a bad output path. 2 also for a command-line usage error. So never read the exit code alone: read the last lines of output too. The browser driver ends with "Test finished, finding N violation!" and prints the exact inspect and --reproduce commands; the terminal driver ends with "terminal test failed: N violation(s) reported".

From a rule to a property

Properties are formulas over time. An extractor turns state into a cell, and a property reads cell.current.

The user says Property shape
"Never more than five notifications" Invariant: `alw
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • NOTICE.md
  • references/ci.md
  • references/cli-and-traces.md
  • references/property-patterns.md
  • references/sources.md
  • references/spec-language.md

FAQ

Что делает скилл bombadil?

Use when a web or terminal UI needs property-based testing or fuzzing with Bombadil (Antithesis): writing a TypeScript specification with properties, extractors and action generators, running a bounded `bombadil browser test` or `bombadil terminal test`, reading a trace with `bombadil trace --json`, reproducing or shrinking a violation, or adding the bombadil-action GitHub Action to CI. Also use when the user wants random clicks and inputs to hunt UI bugs that example tests miss, wants a UI rule such as "never more than five notifications" or "the error goes away" checked over every state, or says @antithesishq/bombadil, property-based UI testing, fuzz the UI, testa a UI com fuzz, teste baseado em propriedades, fuzzing de interface or acha bug de UI com Bombadil.

Как установить скилл bombadil?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bombadil запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bombadil с