claude-booping
CLAUDE.md15 starsChanged 5 months agoMITView on GitHub
Claude Code plugin that grooms and executes plans across user projects. Plans and other run artifacts live in the per-project vault — ~/Claude/{project}/ by default, or a repo-local directory via the .booping marker's vault_path: key. Skills, agents, playbooks, templates, and config live in this repo. One shipped skill (/playbook); everything procedural is a playbook it drives (groom, develop, code-review, retro, learn, specs, project-manager, setup, migrate, makemigration, playbook-authoring).
- Installs packages
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 90
Agent decisions: every gate and question an autonomous run settled itself is one file under {vault}/agent-decisions/, written by booping …
- Distinctive: line 119
No comments that restate code — only WHY for non-obvious bits.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
booping plugin — project guide
Claude Code plugin that grooms and executes plans across user projects. Plans and other run artifacts live in the per-project vault — ~/Claude/{project}/ by default, or a repo-local directory via the .booping marker's vault_path: key. Skills, agents, playbooks, templates, and config live in this repo.
One shipped skill (/playbook); everything procedural is a playbook it drives (groom, develop, code-review, retro, learn, specs, project-manager, setup, migrate, makemigration, playbook-authoring).
Commands
just lint/just typecheck/just pytest— ruff / basedpyright / pytest over both uv projects,booping-python/thenbooping-tracker/.just snapshots— diff committed playbook reports against a fresh hermetic render (writes nothing); a playbook in this repo'svault/_playbooks/joins once it commits a_reports/output.md, rendered against a stub-pinned temp copy of the vault.just snapshots-accept [playbook]— the only writer of the committed reports.just mdcheck— structural rule checks over the rendered reports. Needs themdcheckbinary:cargo install markdown-checker --version 0.1.2 --locked(the crate namedmdcheckis unrelated). It is a user-facing runtime dependency too: groom checks every milestone file with it againstplaybooks/groom/_schemas/milestone.yaml.just e2e [pytest args…]— run both txtar contract corpora through pytest, passing any arguments straight to it (just e2e -k create,just e2e --txtar-update);--txtar-updaterebaselines the selected cases. Cases run in parallel (pytest-xdist,-n auto);--txtar-updateruns serially. A-kexpression that selects in one corpus only leaves the other collecting nothing, which is not a failure.just specs-check—bin/booping specs checkover the core tier,specs/(records shipped to every user), and this repo's project tier, the type directories invault/; needsmdchecktoo.just ci— everything CI runs, in order:lint typecheck pytest snapshots mdcheck specs-check e2e. Run before committing.just eval|smoke|regress <playbook>/<step>(orall) — promptfoo eval suites;just suiteslists them. Runs on subscription auth (claude -p), never in CI; each run posts a sticky, advisory PR comment viascripts/eval-pr-comment.sh(EVAL_PR=0opts out) — no commit status, no merge gate.just docs/just docs-serve— build / preview the public docs site.bin/booping <subcommand> --help— the runtime CLI. Reach for these primitives before adding a command:create <config.path> <dest> --set k=v— writes any config-defined file tree from Jinja templates, filled by--setvars, macros (time, session id, commit) andnext_id(prefix)(the next free numbered name in the destination);--stub-macropins the macros.query— filters, sorts and projects markdown files by frontmatter (--config <spec>or--glob/--where/--columns); the same specs run at render time as the| queryfilter.set <file> k=v— sets, appends (--append) or removes (--remove) frontmatter keys of any file, or keys of the.boopingmarker when the file is one.render/render-playbook— render a template, or a playbook's composed procedure, with full project context.transition <file> <status>/state <file>— move a file along thestates:machine its path matches, hooks included (--playbook/--statenarrow it); report its run's frontier.config <key>— print a merged config value by dotted path.debug-context— dump the assembled context.session-stats— mine active minutes, tokens and models from artefacts' stamped sessions.status— the project status computed from the vault, short or per-section detail.run(groom,develop,code-review,ack) — launch a recorded headless run, ack a finished one.plan(split) — cut a one-file draft into milestone files; check milestones against the contract.specs(ls,next,check,scan,init,site,site-index) — list, number, check and publish typed spec records of a tier;scanfiles an open item per mark and check finding.
bin/booping-tracker <verb> --help— the task-tracker CLI:states,show,comment,issue-create,issue-update,relate,sync. Reference: booping-tracker/README.md.
Layout
booping-python/— uv Python project with theboopingCLI. Sourcesrc/booping/, teststests/, contract corpuse2e/— cases plus aconftest.pyconfiguring thepytest-txtarplugin, which owns the runner and the case-format spec (https://github.com/A/pytest-txtar);createis verified there, not by the unit tests.booping-tracker/— second uv project with thebooping-trackerCLI, holding every tracker concern (andhttpx) out ofbooping-python. Sourcesrc/booping_tracker/—cli.py,config.py,facade.py(the operation set) and one module per provider underproviders/— teststests/, contract corpuse2e/with its ownconftest.pyandREADME.md. Config is not re-implemented: it shells tobin/booping config core.tracker.bin/booping,bin/booping-tracker— the two product entry points: shell wrappers exec'inguv run --project {booping-python|booping-tracker} … "$@".scripts/— dev tooling behindjust:snapshots.py,mdcheck.py(uv inline Python), and the eval harness (eval-*.sh,report-*.jq). Not shipped to users.src/ci/— shipped CI templates and their helper script (gitlab/: the specs-site and specs-indexpagesjobs,list-specs-projects.py), consumed by URL, not by the CLI.src/config.yaml— runtime config, single source of truth for structured data (macros, query specs, template trees, task types, sprint scale, per-playbook agents). Heavily commented — read it for key semantics.src/templates/— runtime skill/agent templates +_partials/, rendered at skill-load time. Edits are live, no rebuild.hooks/— plugin hooks declared in.claude-plugin/plugin.json:session-start.sh(SessionStart) walks up for.boopingand injects thesrc/templates/hooks/session_start.md.j2render, silent outside a project and on any failure.skills/<name>/SKILL.md,agents/<name>.md— hand-authored thin shells: frontmatter (includingeffort:) plus one!booping render src/templates/…`` line that pulls in the body at load time. Agents use the same shape with a STOP line telling the agent to run the render;agents/adr-scorer.mdallows only its own render command (tools: Bash(booping render …)), and since a Bash pattern exposes Bash without restricting the command, its isolation — judge from the prompt alone — is the core rule targeted atagent:adr-scorer.src/specs/— the shipped specs format:README.md(the guide) andschemas/<type>.yaml(one mdcheck rule file per shipped record type). A tier overlays its own{tier root}/_schemas/<type>.yaml(override or add, no cascade) and may carrytags.yaml; no translatedschemas-{lang}/sets — structural headings stay English.playbooks/<name>/— core playbooks. Also:_partials/(shared fragments),_scripts/(shared hook scripts),_lib/(eval harness),_fixtures/vault/(hermetic render fixture). Each playbook commits its rendered report atplaybooks/<name>/_reports/output.md.specs/— the core specs tier (core.specs.tiers.core.path): rules shipped with the plugin whosetargetssteer core playbooks for every user. Their## Follows fromlinks point intovault/value/.playbooks/*/_specs/— playbook-authoring run artefacts and design history; intentionally stale, not a spec of current behaviour.migrations/<NNN>_<slug>/migration.md— plugin-shipped vault migrations. Frontmatteridis the authority; a vault's applied watermark is the.boopingmarker'slatest_migrationkey, and every render surface gates on it — withcore.auto_migrateon (the default) the notice orders the agent to runmigrateunattended and resume, off it stops for the user. Authoring primitives: query specs withroot: corescan plugin-shipped files, numeric--whereordering (gt/lt),{{ booping.latest_migration }}in templates, marker writes viabooping set .booping.docs/— hand-authored plugin-internal fragments, lazy-loaded by skills via${CLAUDE_PLUGIN_ROOT}/docs/<name>.mdlinks. No build step.documentation/— public docs site source (MkDocs → gh-pages on push tomaster). Hand-authored.
Rendering pipeline
One stage, at runtime (skill load): a thin shell's !booping render src/templates/…`` line renders the body with full project context — config merge, vault, rules, playbooks.
Config
- Three-tier deep merge, core → global → project:
src/config.yaml←${XDG_CONFIG_HOME:-~/.config}/booping/config.yaml←{vault}/config.yaml. Later tiers win; lists replace wholesale. No schema gate and no tier restriction — any key loads in any tier. - Top level is exactly
home_dir+core. Placement rule undercore: a key one playbook owns lives atcore.{name}_playbook; a shared key sits directly undercore. A user's own playbook namespace copies this shape. - Any mapping in the merged config can be a query spec (
booping query --config <dotted.path>,| queryfilter) or a template tree (booping create <dotted.path> <dest>) — the value at the dotted path is the spec/tree, no wrapper key. Specs live beside their consumer (core.{name}_playbook.queries.<id>), never in a central registry. core.plans— plan shape shared by groom and develop:glob(plan discovery) andmilestones(globrelative to the plan dir, matching the milestone file inside each milestone directory and never a sidecar beside it, +table_columnsfor the generated table). Never restate either literal in prose.core.tracker— task-tracker surface, directly undercorebecause several playbooks mirror outward through it:driver(cliis the one shipped driver,--driveroverrides per invocation, an unknown name is a hard error) plus one settings block per driver. Secrets are named, never carried:api_key_envholds the name of the environment variable the token lives in — no config value anywhere is env-interpolated, in any tier.core.status— the status report's query specs (active_plans,unreviewed_plans), directly undercorebecause the CLI and the project-manager share it.core.corrections/core.agent_decisions— one vault file per entry: atemplatetree keyed{{ name }}.md(the caller passes--set name=<ts>-<step>, macros stampsessionandlogged_at) and anopenquery spec (state: open). Shared keys, directly undercore, because several playbooks write them and retro / the project-manager read them.core.run— the launch shape ofbooping run groom|develop|code-review:command(the child's argv,--session-idand the prompt appended),env(merged over the inherited environment),prompt({playbook},{target}filled),preamble(appended under--autonomous) anddir(the records' vault directory). A shared key, directly undercore; like every config value, none of it is env-interpolated.core.specs— the specs surface, directly undercorebecausebooping specsand rule injection share it:format(plugin-root-relative dir of the guide + schemas; types are per tier — the shipped stems overlaid by the tier's_schemas/stems) andtiers.{core,global,project}withpath(anchored at plugin root /home_dir/ repo) andnamespace(booping; globalnull→$USER; projectpath: null→ the vault root, its type directories besideplans/;specswith no vault), andopen_items— the item store:dir, the itemtemplatekeyed bynext_id('OI-'), theindexquery spec (booping query --config core.specs.open_items.index).core.project_manager_playbook— the project-manager'sagents(the worker for tiny fixes and review fixes, the researcher), shaped likecore.develop_playbook.agents, andbatch— the itemsizeswith their SP, thedirectsizes that skip grooming, themax_spcap theworkstep packs a batch under.core.macros.<name>— an argv list, or a mapping withcommand:pluscwd: repo|vaultscoping; rendered bodies call them via themacro()global; a non-zero exit is a render error, sosessionprints an empty string outside a Claude Code session;--stub-macro(or a vaultmacro_stubs:mapping) pins them for reproducible renders.- Full reference: documentation/project_config.md.
Playbooks
Multi-step guided procedures discovered from three roots — core playbooks/, global <home_dir>/_playbooks/, local {vault}/_playbooks/ — names unique across roots. Each dir: playbook.md (identity frontmatter + preamble body), optional playbook.yaml (graph: + optional state:/states:), and one directory per step holding prompt.md.
graph:defines order and parallelism via topological waves; a mapping node is a one-level subgraph. Parallel co-members must bedetached:.- Delegation per step via the single
detached:frontmatter field: absent → runner-performed;<model>:<effort>→ generic sub-agent; other string → named sub-agent. jinja: trueopts all bodies into Jinja through the full context env, each with a loader chain body → step dir → playbook dir → discovery roots (local → global → core) →src/templates/.- Run state is opt-in via
states:(named state machines:artifact,initial,statuses, transitions withwhen/gates/hooks).booping transition <file> <status>is the only writer of run state, the machine inferred from the file's path; its printed mutation report is authoritative — never re-read to verify.booping state <file>is the read-only frontier report used to resume; both need--playbookwhen the machine declares noartifact:. Hooks:setandscript <name> [args…](argv passed through; playbook_scripts/first, then the discovery roots'_scripts/, most specific wins). - Tracker mirroring:
playbooks/_scripts/tracker-sync(push the artifact's status) andtracker-comment <workdir-relative-path>(post a file as a comment) arescripthooks on groom's edges. Both absorb the tracker's exit code and warn on stderr — a hook failing afterstatus:is written would abort the transition with the vault advanced and the tracker behind;booping-tracker sync --artifact …by hand is the reconcile. - Rules:
status: acceptedspec rules withtargets:({playbook},{playbook}/{step},agent:{id},skill:{name}) andbrief:, read from the threecore.specstiers and injected as brief plus link in a## Rulessection byrender-playbookand by internal agent and skill bodies; an untargeted rule injects nowhere;--no-rulesopts out of render-playbook's. See documentation/playbook.md#rules. - Graph/render problems surface as in-band
**STOP — tell the user:**/**Note — tell the user:**notices at exit 0, never crashes. - The driving protocol lives in
src/templates/_partials/_playbook_driving.j2. Full mechanics: documentation/playbook.md.
Lifecycle
Each playbook owns its own status vocabulary in its states: block — there is no shared lifecycle, and those blocks are the authoritative sets.
- Plan track (
groom+develop): the plan is a directory{vault}/plans/{slug}/whoseindex.mdis both run artifact and plan document; groom ends atready-for-dev, develop atdone|fail, both alsocancelled. Shape is thecore.plans.globconfig key (plans/*/index.md). - Parked groom runs:
awaiting-clarificationholds a groom run that raised a question it cannot answer itself — entered fromframingand fromdrafting, each entering edge stampingreturn_towith its own source and each return edge clearing it, so the mapping is static per edge rather than computed. The questions are prose in theclarifications.mdsidecar besideindex.md, written by hand todocs/clarifications.md(one H2 per question,open/answered); a later invocation resumes from it, andtracker-commentposts it verbatim.tracker_provider/tracker_request/tracker_issueonindex.mdrecord the mirror, hook- and CLI-written only. - Corrections: a user's correction during a run is one file under
{vault}/corrections/, written bybooping create core.corrections.templatewith the user's words verbatim (step, did, said, why,state: open, session, time, artefact link); core rulebooping:rule/0031tells the driver when. Retro'spreparerenders thecore.corrections.openquery and sets each handled entrystate=handledwithbooping set. - Autonomy is prose, not config: a run is autonomous when the user told the session so or
booping run … --autonomouslaunched it (core.run.preamble, openingAUTONOMOUS RUN), otherwise supervised. Autonomous auto-confirms review gates and settles step questions; a STOP notice and a question a step marks always-asked (migrate's uncommitted-work question) still stop. - Agent decisions: every gate and question an autonomous run settled itself is one file under
{vault}/agent-decisions/, written bybooping create core.agent_decisions.template(step, asked, decision, why,state: open, session, time, artefact link); the project-manager listscore.agent_decisions.openat its merge gate and sets eachstate=reviewed. - Milestone directories: each milestone is a directory
milestones/M{nn}-{kebab}/under the plan directory, holding the milestone file named after it (core.plans.milestones.glob,milestones/*/M*.md) — frontmatterid/title/sp/status/planplus tasks, DoD and Verify — and any sidecar the sprint writes beside it, currentlyfeedback.md, the runner's findings on a rejected attempt and the only place attempts are counted. The milestone file is the contract handed to a worker by path —index.mdis context only, its## Milestonestable (core.plans.milestones.table_columns) and the plan'sspare generated. Milestonestatus:is develop's per-instance run state (pending→in-progress→done,blockedoff in-progress), instanceM{nn}-{kebab}; every edge runs therefresh-milestone-tablehook. The worker runs its milestone's## Verifyand leaves the work uncommitted; the runner validates the working tree against the DoD, makes the repo commit (scoped staging, nevergit add -A), flips the checkboxes and takes the transitions — no worker of any harness touches git history. - Retro track (
retro+learn): artifact is a standalone{vault}/retrospectives/{slug}.md(awaiting-retro→awaiting-learning→done); plans stay atdonethroughout. Addressed with--targetsince the machines declare noartifact:. - Code-review track (
code-review): artifact is{vault}/codereviews/{plan-dirname}/{ts}.md(ad-hoc scopes:codereviews/{target-slug}/{ts}.md,plan: null), machinein-agent-review→human-review→done; plans stay atdone. Addressed with--targetsince the machine declares noartifact:. - The tracks join through plan frontmatter, not status:
retro:is null until covered, so{status: done, retro: null}is the retro queue;code_reviews:is a list of every review that closed on the plan — history, not a queue flag — so the review queue is every{status: done}plan, re-review included. - Open-items track (
specs): artifact is one{vault}/open-items/OI-NNNN.mdper item — a user request (source: request/backlog, verbatim text, no direction) or a spec gap — under theopen_itemmachine inplaybooks/specs/playbook.yaml— astandalone: truestate, exempt from the subgraph and orphan checks, created bybooping create core.specs.open_items.template, sized bybooping set … size=(checked byplaybooks/specs/_schemas/open_item.yaml), moved bybooping transition, never by aspecsrun;open → donecloses an item settled without a plan. An item that asks the user a question goesopen → clarifyand back once answered, the question and answer prose in its body, moved bybooping transition {vault}/open-items/OI-NNNN.md <to>;booping statuslistsclarifyitems as waiting on the user. The plan link lives only on the item (plan:), never on the plan. Groom intake links the items a request names (booping set {item} plan=…, thenbooping transition {item} planned); the sharedopen-items-follow-planscript hook, on develop's terminal edges and groom's cancel edges, closes or reopens a plan's linked items and absorbs failure the way the tracker hooks do —booping transition {item} done|openby hand is the reconcile. - Run records:
booping run groom|develop|code-reviewwrites{vault}/runs/{id}.mdbefore launching the child (running, the wrapper'spid) and its outcome when the child ends (finished|failed,exit_code); it is the only writer, no state machine.lostis computed at read time — arunningrecord whose pid names no live process.booping run ackstampsacked_at, hiding a run frombooping statuswithout deleting it. - Vault commits are each playbook's own business, via
scripthooks on its edges.
Vault (out of framework scope, authored per project)
plans/, retrospectives/, codereviews/, open-items/ (created on the first item), runs/ (run records plus their gitignored logs, written only by booping run), corrections/ and agent-decisions/ (one file per entry, written by booping create), _playbooks/ (user playbooks), plan_templates/, review_templates/, notes/ (gitignored here: the one place for private notes and references — other projects' data, local paths, raw experiment inputs; never linked from a tracked record), sprints.md (Obsidian Bases fence, seeded once, written by nothing), .booping.log (CLI log at the vault root, gitignored there). Obsidian-ready: markdown + YAML frontmatter only. See documentation/vault.md. Everything benchmark — registry, runbook, method, bench-score, mutations, fixtures, run artifacts, and the scorecard table in its README — lives in the separate booping-benchmarks repo; only the model-benchmark playbook that drives a run stays in this vault's _playbooks/.
This repo's own vault is checked in at vault/ without its run history — no plans, open items, reviews, retros, corrections, agent decisions or run records; only the spec records, _playbooks/, docs/, config.yaml, tags.yaml and sprints.md. Its type directories (vault/value/, vault/rule/, …) are booping's project tier: values, rules, ADRs, stories, ideas, references and runbooks as typed records about developing booping (format: src/specs/README.md, check: just specs-check) — the authority on why booping is the way it is; read the values and rules before a design change. The core tier, specs/ at the repo root, holds only the rules shipped to and injected into every user's runs; a rule that concerns booping's own development stays in vault/rule/. The docs playbook reads and keeps current the value records, reference/0001–0003 and the story records, its feature index rendered from the stories.
Principles
- Minimum useful context: a skill or step body carries only what it needs; lazy-link route-specific detail via
docs/instead of inlining. - Less prose, less drift: cut motivation, restated context, and preambles. The schema is the source of truth; prose decays.
- Schema over prose: structured data lives in
src/config.yamland is rendered from there — never restated in body prose. - Reference the source, never the literal: dynamic values (statuses, queues, agent ids) render from config/query specs.
- Wide-domain: skills and playbooks stay stack-agnostic. Project specifics live in the project specs tier (rule records) and the attached repo's own
CLAUDE.md— the only two destinations learn writes. - Agent wiring: the driver owns all vault reads/writes, run state and every commit; worker agents edit code — the attached repo's, or code outside it once the user confirms that for the plan — never the vault or git history. Project-local shaping of an agent or a skill is a targeted rule (
agent:{id},skill:{name}), not a separate extension file. External global agents at~/.claude/agents/wire in via config — see documentation/integrating-external-agents.md.
Editing conventions
src/templates/**edits are live — no rebuild step anywhere in the repo.- Playbook source edits (manifests, step
prompt.md, shared partials) drift the committed reports. Loop: edit →just snapshots(read the diff) →just snapshots-accept→ commit source and report together. - Eval suites sit beside their step (
tests.yaml+promptfooconfig.yaml+_fixtures/); two tiers per fixture,smoke(deterministic) andregress(llm-rubric judges). Shared asserts, graders and rubric prompts live inplaybooks/_lib/. An agent's own suite sits atplaybooks/_agents/{agent}/(just smoke _agents/{agent}), never underagents/, where Claude Code would load its fixture.mdfiles as agents. - No comments that restate code — only WHY for non-obvious bits.
- Conventional commits with scope:
feat(booping): …,fix(groom): …. - README's Statuses section is hand-maintained narrative over the per-playbook
states:blocks — revisit it when one changes. - New procedures should be playbooks, not skills; a skill is only for a surface
/playbookcannot drive. Reference for the rare new skill:src/templates/skills/playbook.md.j2+ its thin shell atskills/playbook/SKILL.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

