agentleFS
MacroTechTitanMacroTechTitan/MaximusAI/skills/maximus-brain/SKILL.md

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.

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
  1. Distinctive:

    Auto-fire: when the work involves any of:

    line 17
  2. Distinctive:

    Skip: when the work is:

    line 26
  3. Distinctive:

    When in doubt, fire. The cost of running the loop on a small task is one paragraph of thinking.

    line 32
  4. Distinctive:

    Run these in order. Earlier passes are cheap.

    line 36
  5. Distinctive:

    Before any tool call, do this in one short block of internal reasoning:

    line 40
  6. Distinctive:

    If the framing exposes a real ambiguity that would change the work, stop and ask.

    line 48
  7. Very specific:

    Call memory_search with focused queries (not catch-all lists).

    line 54
  8. Distinctive:

    If the task lives in a known repo or workspace, list/read the relevant files before reasoning about them.

    line 56
  9. Distinctive:

    If recall yields nothing relevant, that itself is information — proceed cleanly without pretending to have context.

    line 58
  10. Distinctive:

    If a connector exists for the data source you'd otherwise scrape, prefer the connector.

    line 63
  11. Distinctive:

    If reality diverges from the plan, edit the plan before continuing.

    line 73
  12. Distinctive:

    Before the final answer leaves your mouth, run a quick critique pass:

    line 77
  13. Distinctive:

    Hallucination check: Every factual claim, library name, URL, function signature, dollar figure — is it grounded in a tool result or in …

    line 80
  14. Distinctive:

    Stakes check: If this is high-stakes, would a careful reviewer find a critical issue?

    line 82
  15. Distinctive:

    If the critique surfaces a problem, fix and re-critique.

    line 85
  16. Distinctive:

    Integrate naturally: Don't narrate memory operations to the user.

    line 103

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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_search with 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:

  1. Re-read the original request. Does the draft actually answer it, in the user's terms? Or did the topic drift?
  2. 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.
  3. Missed steps. Did you skip a step that the task required? Especially: file shares, citations, confirmations for irreversible actions, memory writes for durable facts.
  4. Stakes check. If this is high-stakes, would a careful reviewer find a critical issue? If yes, fix before sending.
  5. 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

TierWhenLoopOutput
FastChat, lookup, one-tool taskFrame in 1 sentence; skip Pass 3 if no skill applies; critique in one breathDirect, ≤ 3 sentences
StandardMost real tasksFull loop, abbreviated. Frame + recall + select + execute + critiqueCalibrated to ask
DeepBuild, design, research, money, deploysFull loop, no shortcuts. Document assumptions. Run critique twice if neededThorough; surface tradeoffs
ExtremeIrreversible, 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 claimHigh-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_action for 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-spec or maximus-plan-implementation.
  • Build: Pass 4 (Execute) defers to maximus-build-feature for the read-before-edit, minimum-change rules.
  • Inspection: Pass 5 (Critique) loads maximus-code-review or maximus-eval-and-test when the task is code or AI output.
  • Deployment: Extreme tier on a ship task loads maximus-devops-ship and 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, or maximus-ai-cost-control as appropriate.
  • Money / production: Extreme tier auto-loads maximus-fintech-payments and maximus-ai-safety-governance where 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.