Skip to content

lyddonb/bstack

v0.43.0MIT

Beau's rigorous agent workflow. beau-mode routes each task to a playbook and the principles; beau-help lists what the kit can do and what's new; skills for understanding (how, why, teach, recall), debugging (root-cause finds a bug's cause from facts, not from reading the code), proof (verify-work, create- and maintain-verification-skill, create- and maintain-formal-verification-skill, swarm), design and planning (architect, arena, state-machines, technical-writing), product repos (scaffold-product and the Product phase playbook), review and trails (interrogate, show-me-your-work), closing out (debrief keeps a checked change record per PR and prints the brief and the release notes), improvement (reflect, correct, unslop, no-comments), and test economics (qualitydirector records per-test time and outcome, books the runs into the quality books, checks them and summarizes a week; local-ci runs a repo's CI on this machine and posts it to the PR as a commit status) do the steps. Adapted from Lauren Tan's pstack to work in any agent.

architect

Design before code. Ground in the affected systems, sketch types and signatures in at least two structurally different shapes (via arena), pick one, implement against it, and scrap it when friction shows the shape is wrong. Use for /architect, "design this", or work where jumping to code would lock in the wrong shape.

arena

Run N parallel candidates at the same task (ideally on different models), have a judge on another model score them against a rubric, pick a base, and graft the best parts of the others into it. Use for /arena, "arena this", "throw it in the arena", or when one attempt at a non-trivial artifact (a design, an API, a doc, a tricky function) would lock in the wrong shape.

beau-help

List what agent-kit and bstack can do (skills, playbooks, subagents) and how to call each one, or show what changed since you last looked. Use for /beau-help, "what can you do", "which skill should I use for X", "what's new", or "what changed in bstack".

beau-mode

Beau's way of doing engineering work with an agent. It picks a playbook, applies named principles, verifies on the real artifact, keeps a decision trail, and writes plain replies. Use for /beau-mode, "beau mode", or any non-trivial engineering task (a bug, a feature, a refactor, a perf problem, an investigation, a prototype, a skill edit, or an unattended run). Skip it for casual questions and one-line answers.

correct

Find the mistakes agents keep repeating in this repo and make each one impossible. Tries architecture first, then types, then a lint or CI check whose error names the fix, then a test, and docs last, and proves each new check fails on a real past mistake. Use for /correct, "agents keep doing X", or after correcting the same mistake twice.

create-formal-verification-skill

Generate a project-local verify-AREA skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits (model checker, prover, SMT-backed verifier). Use for /create-formal-verification-skill, "model-check this race", "prove this invariant", or when concurrency, retries, state machines, parsers or unsafe code need more than tests.

create-verification-skill

Generate a project-local verify-APP skill (for example verify-curator) that launches the real app, drives it like a user through a control CLI, captures evidence, and keeps a feature map. Any stack or surface. Use for /create-verification-skill, "make a control skill for this repo", or when a project has no scripted way to prove behavior.

debrief

Close out a piece of work for the human. Says what was done, what is proven and what is not, what comes next with why and impact, and the release note, and keeps it as a checked change record in the repo. Use for /debrief, "debrief", "what did we just do", "what's next and why", "write the release note", "release notes since X", or at the end of any work that ships a change.

figure-it-out

Design a rigorous, auditable playbook for work no standard playbook fits (a large migration, an ambitious multi-part change, or anything the human will review after stepping away), then run it as a hypothesis loop with a decision trail. Use for "figure it out", large or cross-cutting changes, or overnight and unattended work.

how

Explain how a subsystem, feature or code path works, at the level a senior engineer needs before changing it, covering runtime flow, key concepts, where things live and gotchas. Use for "how does X work", walkthroughs before a change, onboarding to unfamiliar code, and "where should this live" or "which layer owns this" questions.

interrogate

Adversarial multi-model review of a diff, branch, PR or design. Several adversaries try to break it, and a finding survives only when a run proves it. Use for "interrogate", "adversarial review", "tear this apart", "stress test this change", "find blind spots", or before shipping a contested or risky change.

local-ci

Run a repo's CI on this machine instead of GitHub-hosted runners and report the result on the PR as the local-ci commit status, and run a local fallback for a job GitHub didn't start. Use to move a private repo's CI off Actions minutes, to set up or check the launchd agent that runs it, when a PR's local-ci status is missing, pending or red, when an Actions job failed without starting (spending limit, outage), or for "run CI locally", "post local-ci", "why is local-ci red".

maintain-formal-verification-skill

Bring a project's formal verification back in line with the code after the code changes. Finds the commits that touched verified code, updates the model, harness or properties to describe the code as it is now, reruns, and says whether each failure is drift in the verification or a bug in the code. Use for /maintain-formal-verification-skill, "is the model still true to the code", or after merges and refactors that touched verified code without rechecking it.

maintain-verification-skill

Periodic pass that keeps a project's verification skill and feature map honest. Read-only subagents check each feature against source, one live session drives every feature, and at most one PR ships proven corrections. Use for /maintain-verification-skill, "audit the verify skill", "is the feature map still right", or as a daily scheduled task.

no-comments

Delete the comments a change adds and fix the code that leaned on them. A subagent removes every comment outside a short keep-list and flags the symbols a comment was covering for; you fix those at the root and offer to turn "do not remove" notes into a type, a test or a check. Also ships a check that fails when a diff adds a comment to a Python file. Use for /no-comments, "strip the comments", "remove the comments from this diff", "check this diff for comments", or before review of agent-written code.

qualitydirector

The Quality Director measures what a repo's tests cost and what they catch, from per-test time and outcome, and proposes changes for you to approve. It records a unittest or pytest run (record, record-junit) to JSON Lines, fetches the runs of watched repos from GitHub, books them into the quality books, checks them, summarizes a week as JSON, audits a repo's workflow files for CI speed facts (audit-ci), books skill use from this machine's agent transcripts (book-skills), and checks text for private repo details before it goes public (leak-check). Use for "run the weekly quality brief", "record the tests", "record a pytest run", "how long do our tests take", "fetch and book the test runs", "quality summary for the week", "check the quality books", "audit the CI of a repo", "which CI speed proposals are open", "which tests are slow or flaky", "book skill use", "which skills get used", "check this for private repo details before it goes public", or when a quality books CI check fails.

recall

Rebuild the user's recent context on a topic from their own agent transcripts, the PRs, tickets and reports around it, and live git state, then return a short brief and the next move. Use for "recall my work on X", "catch me up on X", "where did I leave off", before starting or resuming work.

reflect

Mine the current session for durable lessons and turn each one into a concrete, approved edit to a skill, playbook or principle, or a backlog item. Three independent reviewers read the transcript, a synthesizer sorts their findings, and nothing changes without the user's approval. Use when the user says reflect, "capture what we learned", or "so the next run doesn't repeat this".

root-cause

Find a bug's root cause from facts instead of from reading the code. Keeps a case file of facts, hypotheses and the matrix between them, steers by the strongest signal, has an adversarial reviewer on another model check the work, and refuses to name a root cause until exactly one hypothesis explains every fact. Use for "root cause this", "find out why this broke", "debug without reading the code", a bug or regression in agent-written or unfamiliar code, or after two theories have failed. Also turns a solved case into a regression or deploy gate with recheck.

scaffold-product

Set up a repo for product work with agents, either a new product or an existing repo that predates this workflow. Writes the vision, decision log, phase specs, roadmap and agent instructions, then creates its verification skill, and checks the result with check-product.py. Use for "start a new product", "scaffold this repo", "adopt this repo into beau-mode", or when beau-mode's Product phase playbook finds no docs/VISION.md.

show-me-your-work

Keep a reviewable, tamper-evident decision trail for long, unattended or multi-phase work (one ledger entry per decision with what, why, evidence and result, recorded with the ledger CLI), then audit it against the transcript and have a different model flag what deserves attention. Use for /show-me-your-work, "keep a decision log", autonomous or overnight runs, or "catch me up on what you did".

state-machines

Find the implicit state machines in a codebase (lifecycles spread across booleans, status strings, nullable fields, effects and handlers), show which states conflict with exact lines, then make them explicit as a checked spec and a pure transition function with IO at the edge. Use for "find all the implicit state machines in my app", "which states can conflict", "make this state explicit", "model this as a state machine", "review this state machine", or before an agent builds anything with a lifecycle (loading/error, forms, modals, auth, checkout, uploads, jobs, sync, agent loops).

swarm

Fan out N parallel workers (local subagents, or cloud agents where your tool has them), wait for all of them, and return one consolidated report. Use for /swarm, "swarm this", parallel coverage of many slices, races of N attempts at one brief, live-verification lanes, fuzzing, or collecting enough perf samples to trust a number.

teach

Explain a body of work plainly so a person actually understands it, by running the how and why skills and weaving what they find into one clear, layered explanation with diagrams that build up step by step. Use for "teach me this", "help me really understand X", "explain this change or subsystem to me", or "prove to me this approach is better". To be quizzed or drilled to mastery of a topic, use socratic-tutor.

technical-writing

Layered technical-writing standard (Diátaxis structure, Google developer style sentences, Simplified Technical English instruction rules, Global English syntax). Use for /technical-writing, README-driven planning, or when writing or reviewing docs, READMEs, RFCs, design docs, plans, PR descriptions or commit messages.

unslop

Cut AI writing tells from prose, such as filler, inflated vocabulary, em dashes, rule-of-three padding, chatbot phrases, vague metaphors, over-compression. Use when writing or reviewing any prose (replies, docs, READMEs, PR descriptions, commit messages, skill files), or when asked to unslop, tighten or de-AI text.

verify-work

Prove a change works by checking the real artifact (run the feature, read the actual value, drive the real surface) and return VERIFIED, NOT VERIFIED or INCONCLUSIVE with evidence. Use before saying any task is done, when asked "does it work", "prove it", "verify", or when a claim rests on "it compiles" or "tests pass".

why

Find out why code is the way it is (design rationale, past decisions, regressions, where a threshold came from) by searching git, PRs and every connected ticket, doc, chat and observability tool in parallel, and return a cited, confidence-tiered answer. Use for "why does X work this way" or "why did we pick Y". Use how for what code does.