ubench

agent
Security Audit
Fail
Health Warn
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • eval() — Dynamic code execution via eval() in scripts/e2e.py
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Four agent skills for Claude Code and Codex: plan, build, bug-hunt and restructure code with measured proof, explicit state machines and a checked architecture.

README.md
ubench: plan it, build it, hunt the bugs, with proof at every step

ubench: agent skills that plan, build and hunt bugs with proof

Plan it. Build it. Hunt the bugs. With proof at every step.

Four skills for Claude Code and Codex. Each one runs a whole job from start to finish.

Version Skills License Works with

Website · Install · Examples · The four skills · How proof works · FAQ

Sponsored

60dB Token Factory: unlimited tokens, one flat price, no token metering


ubench is a set of agent skills for spec-driven planning, test-driven development, bug hunting and architecture conversion. A script owns every number. The agent never grades its own work.

  • 🧭 Plan an idea into a checked plan folder: architecture, state machines, user stories and gates.
  • 🔨 Build test-first in vertical slices until a locked score reaches its target.
  • 🐛 Hunt state bugs and race bugs, reproduce each one, then fix the cause with proof.
  • 🏗️ Convert a tangled codebase to a sound architecture, with your approval at every phase.
  • 🔒 Prove every claim: a script runs the check, keeps a win and undoes a loss.
  • 🪶 Stay lean: each skill file is under 100 lines. The scripts need only Python 3 and git.
How the four ubench skills connect: plan then build, bug hunter, and convert then plan then build

Install

Pick one way. Version 0.1.0.

Claude Code plugin

/plugin marketplace add uditgoenka/ubench
/plugin install ubench@ubench

You get the four skills and both hooks. Plugin skills carry the plugin name: type /ubench:ubench-plan where this page says /ubench-plan.

Codex plugin

codex plugin marketplace add uditgoenka/ubench
codex plugin add ubench@ubench

You get the four skills. The hooks are tested in Codex only through the script below.

npx

npx skills add uditgoenka/ubench

This copies the four skill folders into the agent you pick. It adds no hooks.

Other agents

The skills are plain SKILL.md folders with Python scripts beside them. The folders load in these agents; only Claude Code and Codex are tested from start to finish.

npx skills add uditgoenka/ubench -a opencode
npx skills add uditgoenka/ubench -a pi
muse skills install skills/ubench-plan --scope user    # from a clone, once per skill

Script

git clone https://github.com/uditgoenka/ubench && cd ubench && ./install.sh

This copies the skills to ~/.claude/skills and ~/.codex/skills and adds two hooks. Your settings files are backed up first. Remove everything with ./install.sh uninstall.

Do not use a plugin and the script together: the hooks would run twice.

way skills hooks update remove
Claude Code plugin yes yes claude plugin update ubench@ubench claude plugin uninstall ubench@ubench
Codex plugin yes not tested codex plugin marketplace upgrade codex plugin remove ubench@ubench
npx yes no npx skills update npx skills remove
Script yes yes git pull && ./install.sh ./install.sh uninstall

Without the hooks, the skills still work. The hooks only stop a turn from ending while gates are open, and block edits to a locked check.

Examples

Each example shows the prompt, then what the skill leaves on disk or what its script prints.

Plan a feature before any code is written:

/ubench-plan add team invites with roles and an expiry date

The skill makes a numbered folder and fills it:

ubench-plan/01-team-invites/
  04-architecture.md       layer table, checked by arch.py
  05-state-machines.md     one table per stateful thing, checked by machine.py
  GATES.md                 what "done" means, one runnable line per gate
  Tasks.md                 every slice, with status and proof

A state table with a hole does not pass:

$ python3 machine.py check 05-state-machines.md
Invite: 1 moves, 2 problem(s)
  PROBLEM end state 'expired' is not in the table
  PROBLEM stored value 'expired' has no row in the table
machine problems: 2

Build that plan until the score says done:

/ubench-build ubench-plan/01-team-invites

The score keeper locks the check, undoes a loss and keeps a win:

Climb invites started on branch climb/invites. Baseline 2, bar 0 (min).
UNDONE step 1: 5 is not better than 2. worse idea
KEPT step 2: 0. send the invite email
DONE: best 0 reached the bar 0.

Hunt bugs in an existing repo:

/ubench-bug-hunter the checkout and refund flow

Every bug gets a row in ubench-bug-hunter/01-checkout/bugs.csv. A bug cannot be marked fixed without proof:

$ python3 tracker.py bugset bugs.csv B001 status=fixed
'fixed' needs: how_reproduced, fix_verified, prevention

Convert a whole codebase to a sound structure:

/ubench-convert this repo: untangle the modules and cut dead code

The skill measures the code as it is, names the core issues, and writes a before and after. It asks for your approval before each phase, then hands to /ubench-plan and /ubench-build.

Check a screen for a generated look:

$ python3 ui.py slop .
files: 1, ignored with a reason: 0
ui problems: 0
ui score: 100/100

The four skills

skill phases what you get
/ubench-plan 1 Discover · 2 Grill and design · 3 Verify and hand off A numbered plan folder: brief, decisions, glossary, architecture with a checked boundary table, explicit state machines, user stories, decision records, solution, test plan, Tasks.md, GATES.md
/ubench-build 1 Orient · 2 Build slices · 3 Prove · 4 Clean · 5 Review · 6 Finish Code built test-first in vertical slices, with a locked score at target, every gate met, property tests, model checks and mutation runs
/ubench-bug-hunter 1 Scope and map · 2 Hunt · 3 Reproduce · 4 Deep checks · 5 Fix · 6 Record and loop A bug tracker where every bug has a reproduction, and every fix has a cause, a proof and a prevention rule
/ubench-convert 1 Evaluate · 2 Plan · 3 Build A whole codebase moved to a sound structure: measured inventory, core issues by root cause, a pattern mix chosen from a catalog of 32, a before and after with a checked boundary table, a kill list, then a plan and a build. It asks before each phase and aims for up to 50% less code in the same language

How proof works

Nine small scripts ship inside each skill. They need only Python 3 and git. When a tool a skill names is missing (oxlint, oxfmt, tsrs, fast-check and the like) and it supports your language, the skill installs it by itself, with the package manager your repo already uses. It asks only before it replaces a tool you already have.

script job
climb.py Keeps the score across all four skills (17 of the 18 phases; the hunt phase only collects suspects, so it has no number yet). Locks the check, keeps a win, undoes a loss, says STUCK after three losses. A new finding is a new locked test, so the score goes up first.
gates.py The done ledger. Runs each gate and writes the proof line itself.
tracker.py Makes run folders. Tracks tasks and bugs. A bug cannot be "fixed" without proof fields.
machine.py Checks state tables for holes and writes a starter model for the model checker.
arch.py Checks the layer table against the real imports.
scan.py Reads touched files for hard-to-read shape, and the whole repo for known security holes, leaked keys and unsafe agent setups.
ui.py Scores screen source out of 100, twice: React health (react) and a generated look (slop). Standard library only.
hook.py Stops a turn from ending while gates are open, and blocks edits to a locked check.

The hooks stay silent until a run lists its ledger in .ubench/active.

What is built in

  • Architecture chosen from the forces: layered, modular monolith, domain-driven design, ports and adapters, event-driven, microservices, serverless. Then checked by a script.
  • No implicit state machines: every stateful thing gets a table, one owner function, and tests that run in enforce.
  • Test first, always: red, green, refactor, in vertical slices.
  • Formal checks by default: property tests, TLA+ model checks with everystate, mutation testing.
  • One locked score per run: the plan has one (plan problems), the build has one, and the hunt has one (failing reproductions). Done means the script prints PROVEN.
  • A quality gate in the build: oxfmt for format, oxlint with a strict preset, tsrs for types, and a shape scan for deep nesting, walls of code and copied blocks.
  • A security scan in the build and in the hunt. A leaked key is reported for the owner to rotate. The skill never rotates one.
  • Two screen scans in the build and in the hunt. Both must read 100. A false alarm is silenced with ubench-ignore: REASON, and every ignore is counted. The scans read source only: contrast, widths, touch targets and keyboard use stay in the real browser check.
  • A new project with a screen gets a default stack (Solid 2, UI SDK, Effect). Versions are looked up at run time, and you can say no. An existing repo keeps its own stack.
  • An optional fast path: one measured hot function moved to Rust, replayed against recorded calls. The skill asks first, every time.
  • A depth pass in every skill: what would a top professional do here that nobody asked for?
  • Lean on tokens: each skill file is under 100 lines, and detail loads only when its step starts.

Layout

skills/<name>/SKILL.md        the phases
skills/<name>/references/     detail, loaded on demand
skills/<name>/scripts/        the nine scripts
shared/                       the one master copy of shared files
scripts/sync.py               copies shared/ into each skill
shared/partial/               files shared by some skills, not all
scripts/check.py              the repo's own check
scripts/e2e.py                runs the documented command flows in a scratch repo

Edit shared files in shared/ only, then run python3 scripts/sync.py.

FAQ

Which agents does ubench work with? Claude Code and Codex are tested from start to finish. Other agents that read SKILL.md folders can load the skills.

What does ubench need? Python 3 and git. The scripts use the standard library only.

How does it know the work is done? A script runs a locked check and prints the score. Done means the script prints PROVEN. The agent cannot edit the check to pass.

Does it change my settings? Only the script and the Claude Code plugin add hooks. The script backs up your settings files first.

Can I use one skill alone? Yes. Each skill carries its own copy of the scripts.

License

Apache License 2.0. Copyright notice: NOTICE.

Reviews (0)

No results found