Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By publicalaMITIn 1 marketplace
Keeps CLAUDE.md files deliberately small and shaped: intake records verified evidence from PR reviews, feed grows rules from observed patterns, bake converts them into automated checks, guard turns one review round's findings into checks shipped as their own PRs, audit prunes with evidence, split moves rules to the scope that reads them.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeps CLAUDE.md files like a bonsai: small on purpose, shaped by continuous feeding and pruning.
Every line in a CLAUDE.md loads in every session, so a line that changes nothing still costs context. And a rule a linter or a test can enforce does its job better as a check, because the check runs before review and its failure message teaches the fix. bonsai keeps only the lines that need judgment, in the scope of the sessions they govern. Every skill places a rule on the same ladder, from a type that makes the mistake impossible, through a check and a scoped file, down to a doc read on demand (references/delivery.md). Six skills cover the lifecycle:
| Skill | Role |
|---|---|
/bonsai:intake | Records verified evidence from PR review threads outside the repo, shared only with --export |
/bonsai:feed | Adds rules from observed patterns (commits, in-session corrections, intake entries) |
/bonsai:bake | Converts crystallized rules into automated checks and removes the prose |
/bonsai:guard | Turns review findings into checks, each its own PR from the default branch |
/bonsai:audit | Prunes and verifies what remains, every cut backed by evidence |
/bonsai:split | Moves what remains to the load scope of the sessions it governs |
On a repository bonsai hasn't seen, run three skills in this order:
/bonsai:audit: cuts the lines that change nothing, so the next two skills spend their checks on lines worth keeping./bonsai:bake: turns the rules a tool can check into checks, and removes their prose./bonsai:split: moves each rule that's left to the scope of the sessions it governs.Audit and bake close their report with the next skill of this order, until the repository has a finished run of each (every change applied or skipped). From then on, the skills run as the work brings them up, as listed below.
--search to start from a reviewer's past PRs/doctor prompt-audit is a useful cross-check afterwards: it verifies the same files independently, and also lints skills and dated phrasing/bonsai:intake writes under ~/.claude/bonsai/intake/<owner>/<repo>/, outside every repository. Review threads quote customers, internal names, and unreleased design, so the ledger never leaves the machine. Recurrence counted there is per person. With --export, the candidate sections alone (rule text, target, symbols, ratio) also land in the target repository under .claude/bonsai/candidates/, uncommitted, so once committed the whole team's reviews count toward the same threshold. references/intake-entry.md is the contract.
Placement decisions rest on which instruction files real sessions load. An optional hook records that, so audit and split can read counts in place of estimates. It's off by default. Turn it on in ~/.claude/settings.json:
{ "env": { "BONSAI_LOAD_LOG": "1" } }
Remove the line, or set any other value, to turn it off. Off, the hook exits before starting anything.
Each load of a CLAUDE.md, an import or a .claude/rules file appends one JSON line to ~/.claude/bonsai/loads/<owner>/<repo>.jsonl, keyed by the upstream remote, else origin, else the directory name. The hook makes no network call, so a fork clone without an upstream remote logs under the fork's name. A reader that resolves the canonical key should also read the log under the fork's key. A line holds the time, the session and subagent ids, the working directory and worktree root, the loaded file's path from the root (absolute outside it), its scope (memory_type), the load cause (session_start, nested_traversal, path_glob_match, include, compact), the paths globs, the file that triggered the load or the file that imported it, and the file's git blob hash at load time:
{"time":"2026-11-09T12:00:00.000Z","session_id":"9f1c…","cwd":"/work/catalog","root":"/work/catalog","file":"api/CLAUDE.md","memory_type":"Project","load_reason":"nested_traversal","trigger_file":"api/routes.ts","blob":"5b2a…"}
It never records file contents, prompts or tool output. A headless session (claude -p) loads its session-start files before plugin hooks start, so its log holds only the lazy loads. The hook runs in the background, needs Bun and a POSIX sh (native Windows without Git Bash writes no log), and writes nothing when Bun is missing or anything fails. The log stays on your machine. Delete the directory to clear it.
npx claudepluginhub publicala/claude-plugins --plugin bonsaiPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.