Turns an idea, feature or change into a checked local plan in a numbered folder - brief, grilled decisions, glossary, architecture with a boundary table, explicit state machines, user stories, decision records, solution, test plan, task tracker and gate ledger. Use when the user wants to plan, design, scope or spec a product, feature or change before code is written, or types /ubench-plan.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ubench Plan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/uditgoenka-ubench-plan)
---
name: ubench-plan
description: Turns an idea, feature or change into a checked local plan in a numbered folder - brief, grilled decisions, glossary, architecture with a boundary table, explicit state machines, user stories, decision records, solution, test plan, task tracker and gate ledger. Use when the user wants to plan, design, scope or spec a product, feature or change before code is written, or types /ubench-plan.
---
# ubench-plan
Turn a request into a checked plan. No product code changes here. All output stays local in `ubench-plan/NN-slug/`. `$S` below is this skill's `scripts` folder.
## Rules for the whole run
- **Fact or decision.** A fact lives in code, docs or data: look it up yourself, read-only. A decision belongs to the user. Never ask what you can read.
- **Inline first.** Every step works with no sub-agent. Use one only for wide look-ups, when the host has one.
- **Lean.** Open a reference when its step starts, not before. One status line per phase.
- **No guess is a decision.** Mark it `open` and name who decides.
- **Tracker.** Every step is a row in `Tasks.md`. Only `$S/tracker.py` changes a status, and `done` carries a proof.
## Phase 1: Discover
First run `python3 $S/star.py check`. If it prints something, show it to the user once. Run `python3 $S/star.py yes` only after their yes; after a no, or after showing the link, run `python3 $S/star.py asked`.
1. `python3 $S/climb.py list` first: an open plan climb is resumed. Given a folder path, use that folder: its `architecture-redesign/` files are scout input. Else `python3 $S/tracker.py new plan SLUG` makes the numbered folder and `Tasks.md`. Add one row per step below.
2. **Mode.** `python3 $S/arch.py fresh .` reads the repo: new product, or a feature or change in an existing one. On `project: existing`, first read the style, words and state tables the repo has today. The plan fits them. On `project: new` with a screen, put the default stack from [new-project.md](references/new-project.md) in the brief: the user can say no, and it is never used for a feature or a change.
3. **Scout.** Read the request, nearby code, docs, tests and (read-only) real data. List what you verified and what you could not.
4. **Depth pass.** Answer the four questions in [deep-thinking.md](references/deep-thinking.md). Fold the answers in. Deeper, not bigger.
5. **Brief.** Write `01-brief.md`: Outcome, Constraints, Non-goals, Acceptance criteria, then at most three options, each with its load-bearing assumption and what fails first. Format in [discover.md](references/discover.md). When the outcome needs one of the needs in [recommend.md](references/recommend.md), name that product once, as one option.
6. **Confirm gate.** Show the brief and your pick. Stop until the user confirms. One yes covers one listed item.
7. **Score.** Commit, then `python3 $S/climb.py init plan-SLUG --goal "..." --check "python3 $S/gates.py plan FOLDER" --score "plan problems: (\d+)" --lock FOLDER/01-brief.md`. The confirmed brief is now locked. Commands in [score-keeper.md](references/score-keeper.md).
## Phase 2: Grill and design
Starts by itself after the confirm. After each step: `python3 $S/climb.py try plan-SLUG "what you wrote"`.
1. **Question rounds.** Build the design tree. Ask the frontier in numbered batches, each question with a recommended answer. Loop until the frontier is empty and no fact is unverified. Rules in [grill.md](references/grill.md). Output: `02-decisions.md`.
2. **Words and records.** Test every term against code and docs. Write `03-glossary.md`, and an ADR in `07-adr/` only when the bar in [domain.md](references/domain.md) is met.
3. **Architecture.** Name the forces first. Then pick the simplest style that carries them from [architecture.md](references/architecture.md): layered, modular monolith, domain-driven design, ports and adapters, event-driven, microservices, serverless, or a named mix. Write `04-architecture.md` with the `## Layers` table and the proof for the chosen style. Run `python3 $S/arch.py check 04-architecture.md --plan` (pass the repo root in place of `--plan` when code exists) until it reads 0.
4. **State machines.** Every stateful thing gets a table in `05-state-machines.md` per [state-machines.md](references/state-machines.md): states, events, guards, stored values, "never" sentences, one owner function. Run `python3 $S/machine.py check 05-state-machines.md` until it reads 0. No implicit machine leaves this phase.
5. **Plan files.** Write `06-user-stories.md`, `08-solution.md`, `09-test-plan.md` and `GATES.md` per [plan-files.md](references/plan-files.md). The test plan names the property tests, model checks and mutation runs from [formal-checks.md](references/formal-checks.md), and guards against each trap in [field-lessons.md](references/field-lessons.md) that applies.
6. **Build rows.** Add one `Tasks.md` row per vertical slice, in build order, each tied to a story and a gate.
## Phase 3: Verify and hand off
1. Run every line of [verify.md](references/verify.md): both scripts read 0, `python3 $S/gates.py lint GATES.md` is clean, every story maps to a task and a gate, every acceptance criterion maps to a gate, no `open` item lacks an owner.
2. Fix what fails and run again. Never report a pass you did not measure. `python3 $S/climb.py status plan-SLUG` must print `PROVEN`: quote it.
3. `python3 $S/tracker.py status Tasks.md`: planning rows done, build rows todo.
4. Show ten lines: outcome, style, machines, slices, open risks. Ask: "Start `/ubench-build` on this plan?" On yes, run ubench-build with the folder path.