maximus-brain
Skill1 starsChanged 4 months agoMITView on GitHub
Think-before-act operating loop for any non-trivial task: framing, memory recall, skill selection, self-critique, depth-adaptive effort. Use for multi-step, code, money, deploy, or irreversible work, and for 'think hard', 'be careful', 'check your work', 'don't hallucinate'. Skip for chitchat and one-line lookups.
In this repository49 other files it gives its agents.
- core/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- file-opsSkill
- maximus-agent-designSkill
- maximus-ai-cost-controlSkill
- maximus-ai-data-pipelineSkill
- maximus-ai-fluency-for-buildersSkill
- maximus-ai-product-specSkill
- maximus-ai-safety-governanceSkill
- maximus-ai-ux-patternsSkill
- maximus-build-featureSkill
- maximus-chain-of-verificationSkill
- maximus-code-reviewSkill
- maximus-contact-intelligenceSkill
- maximus-counterparty-discoverySkill
- maximus-debug-incidentSkill
- maximus-deep-research-proSkill
- maximus-deep-researchSkill
- maximus-design-specSkill
- maximus-devops-shipSkill
- maximus-eval-and-testSkill
- maximus-fine-tuningSkill
- maximus-fintech-paymentsSkill
- maximus-investigative-researchSkill
- maximus-k3-model-selectionSkill
- maximus-k3-self-hostingSkill
- maximus-literature-reviewSkill
- maximus-llm-model-selectionSkill
- maximus-local-research-assistantSkill
- maximus-local-research-assistantSkill
- maximus-mlops-deploySkill
- maximus-ollama-opsSkill
- maximus-openclaw-localSkill
- maximus-people-finder-recruiterSkill
- maximus-people-finderSkill
- maximus-plan-implementationSkill
- maximus-prompt-engineeringSkill
- maximus-python-scientificSkill
- maximus-rag-pipelineSkill
- maximus-replit-handoff-proSkill
- maximus-slm-evalSkill
- maximus-slm-local-finetuneSkill
- maximus-slm-local-stackSkill
- maximus-slm-tool-callingSkill
- maximus-transaction-analystSkill
- maximus-write-articleSkill
- memory-keeperSkill
- skill-templateSkill
- web-researchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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
- Distinctive: line 17
Auto-fire: when the work involves any of:
- Distinctive: line 26
Skip: when the work is:
- Distinctive: line 32
When in doubt, fire. The cost of running the loop on a small task is one paragraph of thinking.
- Distinctive: line 36
Run these in order. Earlier passes are cheap.
- Distinctive: line 40
Before any tool call, do this in one short block of internal reasoning:
- Distinctive: line 48
If the framing exposes a real ambiguity that would change the work, stop and ask.
- Very specific: line 54
Call memory_search with focused queries (not catch-all lists).
- Distinctive: line 56
If the task lives in a known repo or workspace, list/read the relevant files before reasoning about them.
- Distinctive: line 58
If recall yields nothing relevant, that itself is information — proceed cleanly without pretending to have context.
- Distinctive: line 63
If a connector exists for the data source you'd otherwise scrape, prefer the connector.
- Distinctive: line 73
If reality diverges from the plan, edit the plan before continuing.
- Distinctive: line 77
Before the final answer leaves your mouth, run a quick critique pass:
- Distinctive: line 80
Hallucination check: Every factual claim, library name, URL, function signature, dollar figure — is it grounded in a tool result or in …
- Distinctive: line 82
Stakes check: If this is high-stakes, would a careful reviewer find a critical issue?
- Distinctive: line 85
If the critique surfaces a problem, fix and re-critique.
- Distinctive: line 103
Integrate naturally: Don't narrate memory operations to the user.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Maximus — Brain
The brain is what the rest of the suite plows with. Tools are sharp, the load is heavy, the field is wide; if the rider stares at the ground in front of one hoof, the furrow goes crooked. This skill is the rider's posture — frame the task, choose the depth, work the loop, check the work before lifting the plough.
It does not make the model smarter. It makes the model work smarter on every task that matters.
When to fire
Auto-fire when the work involves any of:
- Multi-step reasoning or planning.
- Code that will run, ship, or be committed.
- Money, payments, billing, or financial figures.
- Production deploys, infra changes, or irreversible actions.
- Decisions that depend on prior context (memory, files, prior threads).
- The user signals stakes: "this matters", "don't mess up", "be careful", "double-check".
Skip when the work is:
- Casual chitchat or a one-line factual lookup.
- A single trivial tool call (one search, one fetch) where the answer is the search result.
- A continuation where the brain already fired earlier this turn.
When in doubt, fire. The cost of running the loop on a small task is one paragraph of thinking; the cost of skipping it on a real task is a wrong answer with confidence.
The loop — five passes, in order
Run these in order. Earlier passes are cheap; later passes only happen if the task survives them.
Pass 1 — Frame
Before any tool call, do this in one short block of internal reasoning:
- Restate the goal in one sentence, in the user's terms, not yours.
- Name the unknowns — what you'd need to know to do this confidently.
- List your assumptions — what you're choosing to take as given.
- Pick the depth tier (see "Depth tiers" below). Commit to it before working.
- Decide what would mean "done" — the bar you'll hold the output to.
If the framing exposes a real ambiguity that would change the work, stop and ask. If it exposes only nice-to-haves, state your assumptions and proceed — don't stall on a clarifying question when the user gave you enough to act.
Pass 2 — Recall
For any task that touches the user's projects, preferences, people, prior decisions, or running work:
- Call
memory_searchwith focused queries (not catch-all lists). The cost of one search is a fraction of the cost of asking the user something they already told you. - Skim the system context for connectors, prior session links, and
<user_background>— the user often already gave you what you need. - If the task lives in a known repo or workspace, list/read the relevant files before reasoning about them. Read-before-edit is non-negotiable for code.
If recall yields nothing relevant, that itself is information — proceed cleanly without pretending to have context.
Pass 3 — Select skills and tools
- Scan the loaded skill index for skills whose description matches this task. Load the most specific one(s) before doing the work — they exist precisely to keep you from re-deriving the procedure.
- If a connector exists for the data source you'd otherwise scrape, prefer the connector.
- Plan the tool calls in your head before issuing them — what you'll call, in what order, and what you'd do with each result.
A skill that should fire but doesn't is the most expensive miss in the suite. Maximus exists because pattern recall beats re-invention.
Pass 4 — Execute
- Make minimal, reversible changes. Verify after each meaningful step (test, build, smoke check).
- Surface uncertainty as uncertainty. "I'm not sure" is a feature; a confident wrong answer is the bug this skill exists to prevent.
- Separate evidence (what a tool returned) from inference (what you concluded from it). When you state a fact, you should be able to point at the evidence in the same breath.
- If reality diverges from the plan, edit the plan before continuing. Don't pile changes on a wrong assumption.
Pass 5 — Self-critique before responding
Before the final answer leaves your mouth, run a quick critique pass:
- Re-read the original request. Does the draft actually answer it, in the user's terms? Or did the topic drift?
- Hallucination check. Every factual claim, library name, URL, function signature, dollar figure — is it grounded in a tool result or in stable, well-known fact? If not, verify or hedge.
- Missed steps. Did you skip a step that the task required? Especially: file shares, citations, confirmations for irreversible actions, memory writes for durable facts.
- Stakes check. If this is high-stakes, would a careful reviewer find a critical issue? If yes, fix before sending.
- Right-size the answer. Is the response calibrated to the task — not padded, not truncated, not buried in process talk?
If the critique surfaces a problem, fix and re-critique. Two passes is fine. A third pass means the frame was wrong — go back to Pass 1.
Depth tiers — pick one in Pass 1
| Tier | When | Loop | Output |
| Fast | Chat, lookup, one-tool task | Frame in 1 sentence; skip Pass 3 if no skill applies; critique in one breath | Direct, ≤ 3 sentences |
| Standard | Most real tasks | Full loop, abbreviated. Frame + recall + select + execute + critique | Calibrated to ask |
| Deep | Build, design, research, money, deploys | Full loop, no shortcuts. Document assumptions. Run critique twice if needed | Thorough; surface tradeoffs |
| Extreme | Irreversible, regulated, or "this matters" | Full loop + explicit verification step before any action that cannot be undone. confirm_action for destructive moves. Cite every non-trivial claim | High-rigor; explicit assumptions, risks, rollback |
Right-sizing matters as much as thinking. Running Extreme on a quick chat wastes the user; running Fast on a deploy burns the field.
Memory hygiene (always-on)
- Search memory at the start of any task that could plausibly depend on prior context. Two or three focused queries beat one vague one.
- Write durable facts as you learn them — name, role, preferences, tools, projects, durable workflow corrections. Do it during the task, not after; later-you forgets.
- Don't store ephemera ("make this shorter") or facts the user might not want persisted. When in doubt, ask.
- Integrate naturally. Don't narrate memory operations to the user. Just be the agent that remembers.
Anti-patterns (the failure modes this skill exists to prevent)
- Confidently wrong: a fluent answer with no evidence behind it. → Pass 5 hallucination check.
- First-interpretation lock-in: locking onto the first reading of the request and never re-checking. → Pass 1 restate-the-goal step.
- Skill bypass: doing the work freehand when a skill exists for it. → Pass 3 skill scan.
- Context blindness: starting fresh when memory or files would have given you the answer. → Pass 2 recall.
- Process theater: announcing the loop instead of running it. The loop is internal; the user sees the result.
- Stall-asking: asking a clarifying question when the user already gave you enough. State assumptions and act.
- Skipped critique on irreversible work: shipping the deploy / sending the email / writing the file without a final pass. → Pass 5 +
confirm_actionfor destructive moves. - One-size-fits-all depth: applying Deep to a chat or Fast to a build. → Pick a tier in Pass 1.
See references/failure-modes.md for the long-form catalog with worked examples.
How brain composes with the rest of the suite
Brain is the conductor; the other skills are the instruments.
- Planning: Pass 1 (Frame) often loads
maximus-design-specormaximus-plan-implementation. - Build: Pass 4 (Execute) defers to
maximus-build-featurefor the read-before-edit, minimum-change rules. - Inspection: Pass 5 (Critique) loads
maximus-code-reviewormaximus-eval-and-testwhen the task is code or AI output. - Deployment: Extreme tier on a ship task loads
maximus-devops-shipand surfaces the rollback plan in the response. - AI work: any LLM/agent task in Pass 3 selection reaches for
maximus-prompt-engineering,maximus-rag-pipeline,maximus-agent-design,maximus-llm-model-selection, ormaximus-ai-cost-controlas appropriate. - Money / production: Extreme tier auto-loads
maximus-fintech-paymentsandmaximus-ai-safety-governancewhere relevant.
Brain's job is to make sure these fire when they should — and don't fire when they shouldn't.
Output
Brain itself produces no artifact. It produces better outputs from other skills and tools. The user-visible signal is:
- Fewer wrong answers delivered with confidence.
- Memory used naturally — the agent remembers what you told it.
- Skills firing when they should, without you naming them.
- Depth matched to stakes — fast on chat, careful on builds and deploys.
- Self-corrections caught before the answer ships, not after.
The plough goes straight. The next furrow starts where the last one ended.
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.

