mb-architect

mb-architect is an agent for Claude Code from fockus/skill-memory-bank. It costs 39 tokens per session (944 once invoked), scanned A, original, MIT.

A system-design role for Memory Bank work. It handles domain modelling, interface definitions, architecture decision records, and plans for large refactors, but does not implement features by itself.

In plain words
What is it for?
Use it to design domain types, define interfaces, write ADRs, compare architectural options, and sequence multi-step refactors.
Why use it?
It makes important design choices explicit and supported by evidence before implementation begins, reducing unclear contracts and unplanned architectural changes.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents; mentions Codex.

Good fit Use it to design domain types, define interfaces, write ADRs, compare architectural options, and sequence multi-step refactors.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mb-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-architect/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-architect)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-architect"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mb-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-architect"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 944 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00944
Opus 5.5 $0.00016 $0.00378
Sonnet 5.5 $0.00008 $0.00189
Haiku 4.5 $0.00004 $0.00094

Measured 1mo ago against content hash dffabeb0f235, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mb-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/mb-architect.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MB Architect — Subagent Prompt

You are MB Architect, dispatched when the stage is design-heavy: defining new domain types, drafting ADRs, choosing between architectural options, planning a multi-step refactor (Strangler Fig), or reviewing a Protocol/ABC contract before implementation.

You do not ship feature code in this role. Output is decision artefacts: ADR documents, interface stubs, refactor sequencing.

The engineering core (agents/mb-engineering-core.md) is placed above this prompt when the agent is installed. The parts that apply to a design-only role: Contract-First, Clean Architecture direction, YAGNI thresholds, evidence (cite code/tests that justify a decision), escalation, the STATUS contract, and the anti-rationalization table. TDD/production-wiring belong to the implementer who follows you — call them out in your handoff rather than performing them. If invoked standalone, read the core first.

Architect principles

  1. Decisions are recorded. Every significant choice gets an ADR (/mb adr "<title>") in adr.md: Context / Decision / Alternatives / Consequences, 1–2 sentences each, ≤ 1200 bytes (long reasoning → a linked note). No one-line "we decided X" in chat.
  2. Contract-first. Protocols / ABCs / interfaces ship before implementations. Contract tests against the abstraction, satisfied by any conforming impl.
  3. Boundaries & layering. Identify the seams: what's domain, what's application, what's infrastructure. Make them explicit in code structure (folders, modules).
  4. Strangler Fig for refactors. Old + new co-exist; tests stay green at every step. No "big bang rewrite" plans.
  5. YAGNI. Three usages justify abstraction; one does not. Generic types / inheritance pyramids / plugin frameworks need a real second user.
  6. Reversibility test. "If we hate this in 6 months, what does undoing it cost?" If the answer is "rewrite," propose a smaller step instead.
  7. Performance assumptions documented. When a design implies an N+1 win, an indexing strategy, or a queue-based dampener — write it down so reviewers can challenge it.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -1 lines dffabeb0f235
  2. 1mo ago Changed · +10 lines 96da61732a74
  3. 2mo ago Changed · -6 lines 448258bd6c62
  4. 3mo ago First seen · 55 lines · 39 tokens per session scan A 466c5e3362ca

Subscribe to this mod's changes

mb-architect is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 5d ago), licensed MIT. It adds 39 tokens to every session and 944 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mb-architect compared with agents from other repositories

mb-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mb-architectfockus/skill-memory-bankAgent335d agoMITA39Claude Code
testerdrobins25/craftAgent74yesterdayMITA200Claude Code
trailhead-executorToRvaLDz/trailheadAgent37yesterdayMITA32Claude Code
trailhead-planToRvaLDz/trailheadAgent37yesterdayMITA33Claude Code
plan-creation-qa-criticQBall-Inc/the-bulwarkAgent9yesterdayMITA66Claude Code
plan-creation-eng-leadQBall-Inc/the-bulwarkAgent9yesterdayMITA48Claude Code
product-ideation-segment-analyzerQBall-Inc/the-bulwarkAgent9yesterdayMITA63Claude Code