/bonsai:feedfrom bonsai
Turns recurring corrections (conversation, intake entries, recent commits) into CLAUDE.md rules. Run after a working session or a review round.
Ships in bonsai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Judge every recurring correction against one question: which CLAUDE.md line would have prevented it? A correction asked for once is an incident. Asked for twice, or recorded by intake from two reviews, it is a pattern, and a pattern with no line yet is the gap this skill closes. The goal is a small set of rules a fresh session would have broken without them.
Throughout, "propose" means recording a candidate in the report. No file changes before approval, no exceptions.
Writes land only in CLAUDE.md files and path-scoped rule files (.claude/rules/*.md) inside the current project tree, plus the status line and History of intake candidates this run encoded, local or exported. Never write to ~/.claude/ (global skills, settings, user memory), to ~/.claude/projects/*/memory/ (auto-memory is read-only input), or to any path outside the project root.
Check each candidate against this list before anything else:
${CLAUDE_PLUGIN_ROOT}/references/probe.md prescribes: the task that surfaced the pattern, without the rule. The probe decides the skip. A wrongly written rule gets pruned by a later audit, a wrongly skipped one is gone for good, so the probe guards the skip side.Read the sources in priority order. Explicit intent outranks inference:
feedback*.md, and any file with type: feedback in its frontmatter, under ~/.claude/projects/*/memory/, in both the user-home-encoded and the project-cwd-encoded directories when present. Prior corrections at lower confidence: they may be stale. Skip silently when none exist.Group what recurs into candidate rules: the same correction asked for twice, the same edit across commits, the same nit, the same naming or style choice, the same architectural decision applied repeatedly. One candidate per class of mistake, however many incidents show it.
For each candidate, find the strongest rung that holds it in ${CLAUDE_PLUGIN_ROOT}/references/delivery.md. A check (R2: lint, static analysis, architecture test, git hook) makes the proposal a deferral to /bonsai:bake, whatever fixing a violation costs: ${CLAUDE_PLUGIN_ROOT}/references/enforcement.md explains why no line stays next to a check.
A domain redesign (R1, such as a state machine) comes only from /bonsai:guard, which works from PR review findings. Bake comes first: a candidate that a tool the repository runs can check goes to bake, whatever its source, including a Class: bake intake candidate and a test of the allowed transitions. Only a candidate no such check holds, whose fix is a domain redesign and whose intake entry holds review findings, goes to guard, as /bonsai:guard <source PR URLs> in next with every source_pr the entry lists.
Knowledge that belongs in code next to the change (R3) and a procedure that belongs in a skill (R5) sit outside feed's scope: record them as proposals in the report.
An intake candidate bake moved to Class: prose stays a feed proposal: bake already declined the check, and its History line gives the reason.
Default to the smallest scope that still captures the rule, and promote to root only when the rule genuinely cuts across the project:
src/components/CLAUDE.mdapp/Models/CLAUDE.mdtests/CLAUDE.mdCLAUDE.mdCLAUDE.md**/*.blade.php) → .claude/rules/<topic>.md, but only when intake recorded that target. Otherwise write to the nearest CLAUDE.md and let /bonsai:split move it: placement by file pattern is split's call, with its load-path check.Write each proposal in final form, following ${CLAUDE_PLUGIN_ROOT}/references/rule-writing.md. For an intake candidate, copy its Rule text and re-verify every symbol it names against the current tree: verified_on may be stale.
/bonsai:intake records verified evidence from PR reviews under ~/.claude/bonsai/intake/<key>/ and, when exported, under the project's .claude/bonsai/candidates/. Read ${CLAUDE_PLUGIN_ROOT}/references/intake-entry.md for the key, the format, and how recurrence is counted. Then:
Status: open or Status: watch under this project's key. Report "no intake entries under <path>" when the directory is missing.watch candidate goes through the derivability probe (see "Never propose") before it is proposed or skipped.encoded: <rule path> (<PR URL or commit>) on every entry carrying that slug and append a dated History line to each.Rank the candidates by recurrence (source PRs and corrections that carry the slug) and propose at most 5 per round. The rest wait for the next round, as ${CLAUDE_PLUGIN_ROOT}/references/rounds.md prescribes. Read ${CLAUDE_PLUGIN_ROOT}/references/decision-memory.md before routing, then pick the delivery as ${CLAUDE_PLUGIN_ROOT}/references/decision-artifact.md prescribes under "Delivery". Build the page with the renderer that reference names. Each rule's card shows its exact text and the suggested target path, and the user names another path in the change's note. A candidate step 3 defers to bake is a next item that runs /bonsai:bake. Each candidate is one add change in lane call: its exact rule text is the edit, its target path the file (marked new when feed creates it), and the recurrences that justify it are the evidence.
Only write after approval, and apply as ${CLAUDE_PLUGIN_ROOT}/references/rounds.md prescribes: one commit per rule. Create the target file if it does not exist, and append under a heading that matches its existing structure. Then update the intake entries the run encoded.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub publicala/claude-plugins --plugin bonsai6 skills in this plugin
/auditPrunes CLAUDE.md files to the lines a fresh session cannot derive, every cut backed by evidence. Run when the files have grown without review./bakeConverts CLAUDE.md rules and recurring review findings into automated checks, and removes the prose once a check holds the rule. Run once enough rules have accumulated to be worth automating./guardTurns review findings into guardrails, one pull request per check, cut from the default branch. Run with PR numbers or URLs after a review round, or once over every PR of a finished run, while the PRs are open or after they merged. A follow-up pass over review threads hands its PRs here before replying. Opens pull requests and replies on review threads.