brainerd-ruminate
Brainerd Ruminate
Mine older repo-scoped session history for durable memory gaps and route to the correct harness-specific flow.
Detect the harness first
- If the run exposes Brainerd staged-ruminate tools, you are in the Pi branch. Stay inside the Pi tool flow.
- If
CODEX_THREAD_IDis present, you are in the Codex branch. Use the Codex wrapper. - If
BRAINERD_CLAUDE_SESSION_IDorBRAINERD_CLAUDE_TRANSCRIPT_PATHis present, you are in the Claude branch. Use the Claude wrapper. - If none of those signals match, stop and report that harness detection failed. Do not guess.
Pi branch
- Read the ambient brain context already injected into the run.
- Determine whether the run is preview or apply from the hidden Brainerd context.
- In preview mode, call
brainerd_repo_sessions, derive findings, and stage them throughbrainerd_stage_ruminate. - In apply mode, call
brainerd_get_staged_ruminatefirst and apply only that staged proposal throughbrainerd_apply_changes. - End with a visible section that starts exactly with
Brainerd summary:.
Codex and Claude branches
- Read
brain/index.mdandbrain/principles.md. - Check for a staged preview with the matching wrapper:
./scripts/brainerd-codex.sh staged-ruminate
./scripts/brainerd-claude.sh staged-ruminate
- If the user clearly wants to apply or discard that preview, do so through the matching wrapper.
- Otherwise run the matching repo-sessions command, derive a new preview, and write a small JSON payload to
/tmp/brainerd-ruminate.json. - Stage the preview only through the matching wrapper:
./scripts/brainerd-codex.sh stage-ruminate --input /tmp/brainerd-ruminate.json
./scripts/brainerd-claude.sh stage-ruminate --input /tmp/brainerd-ruminate.json
Guardrails
- Preview is not permission to write.
- Use only repo-scoped session history.
- Do not dump raw transcript excerpts into the brain.
- If no durable finding exists, say so and stop.
- End with a short summary of what was staged, applied, discarded, or left unchanged.
More from mylesmcook/mcook-skills
adversarial-review
Use this skill when you need a serious code review, diff review, or implementation-plan review from independent reviewers. In Codex hosts, prefer a fresh Codex subagent for the Codex reviewer; otherwise use the Codex, Claude Code, and Gemini reviewer paths when available. Return a PASS, CONTESTED, or REJECT verdict.
13subagent-driven-development
Use after an implementation plan is approved to execute mostly independent tasks through fresh subagents with scoped context, harness-aware model routing, proportional review gates, and mandatory controller verification.
10brainerd
>
10simple-code
Reduce incidental complexity in code and design. Use when shaping APIs, module boundaries, refactors, tests, naming, and architecture tradeoffs with a bias toward concrete, local, reversible solutions.
7git-it-out
Use this skill when the user explicitly wants final end-of-session closeout and no more branch or PR limbo: proper verification, proper commits, main/mainline landing, push, repo-native merge/release/deploy/publish steps, tracker updates, Entire/checkpoint handling when configured, and a concise handoff. Reach for it on prompts like 'git it out', 'get it out', 'ship this', 'I'm done', 'I'm going to bed', 'take this off my plate', 'finish the session', or 'get this into production'. Do not use it for greenfield implementation, open-ended debugging, broad refactors, or inventing a release process from scratch.
7laws-of-taste
>-
6