bombadil
Use when a web or terminal UI needs property-based testing or fuzzing with Bombadil (Antithesis): writing a TypeScript specification with properties…
от 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
- Extract the current state from the page or the terminal.
- Check every exported property against it and record violations.
- Pick the next action from the exported generators, by weight, and perform it.
- Wait for an event: navigation, DOM change or timeout in the browser; output bytes or timeout in the terminal.
- 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
- 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".
- Turn the user's rules into properties. One exported property per rule, named after the rule. See "From a rule to a property" below.
- Choose actions. Start from the defaults. Filter out destructive controls. Add custom generators for flows random clicks rarely reach.
- 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--ignoreConfigwhen the folder has atsconfig.json; TypeScript 7 refuses file arguments next to one otherwise. A type error found bytsccosts seconds; one found by Bombadil costs a Chrome start. - Run a bounded test. Always pass
--time-limitand--exit-on-violation, and--headlessfor the browser. - Read the trace, reproduce it with the same options, then shrink it.
- Fix the app, not the property. Replay the shrunk trace against the fix, then run a fresh bounded test.
- Report the violation to the user in the app's own words, with the trace as evidence.
- 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 |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…