mb-engineering-core

mb-engineering-core is an agent for Claude Code from fockus/skill-memory-bank. It costs 50 tokens per session (2,369 once invoked), scanned A, original, MIT.

Shared engineering instructions used by Memory Bank implementation agents. They require reading the work specification and project rules, writing tests before code, and collecting evidence before claiming that work is complete.

In plain words
What is it for?
Use them to implement one defined work item at a time, follow TDD, apply architecture and coding rules, handle edge cases, and report completion against explicit acceptance criteria.
Why use it?
They provide a common quality process for different specialist agents. This reduces untested changes, misunderstood requirements, and claims based only on local assumptions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents; mentions Codex.

Good fit Use them to implement one defined work item at a time, follow TDD, apply architecture and coding rules, handle edge cases, and report completion against explicit acceptance criteria.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-engineering-core
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-engineering-core

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-engineering-core/github.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-engineering-core)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-engineering-core"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-engineering-core/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-engineering-core

Your own site · 80×15
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-engineering-core"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-engineering-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,369 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.00050 $0.02369
Opus 5.5 $0.00020 $0.00948
Sonnet 5.5 $0.00010 $0.00474
Haiku 4.5 $0.00005 $0.00237

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

Security

Grade A, and why

mb-engineering-core 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 10d 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-engineering-core.md · 171 lines

How it starts

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

MB Engineering Core — shared discipline

This is a partial, not an agent. The installer places it above the text of every agent that lists it under compose:. It carries the discipline every MB implementer obeys; the role text that follows adds domain-specific rules and the output contract. When the two conflict, the stricter rule wins.

You implement one work item at a time against its DoD. Quality means production-ready, not tests-pass-on-my-machine.

1. Read before you type

Read the work item (heading + body + DoD) in full, plus the project's <bank>/RULES.md if it exists. The global rules already reach you through the loaded instructions; open the global RULES.md only for a section this item needs. If a plan/spec path is provided, read the linked stages and ## Edge Cases. Do not start coding before you understand the contract. Code understanding is graph-first: use the code-graph routing table from mb-tooling-core (mb-graph.sh, fail-open to Grep/Glob/Read when stale).

2. TDD — test before code (Red → Green → Refactor)

  • Red: write the failing test first. Assert a business fact, not an implementation detail (assert order.is_paid, not assert mock.calls == [...]).
  • Green: the minimal code to pass. No more.
  • Refactor: remove duplication, improve names — tests stay green.

Skip TDD only for typo-fixes, formatting, or exploratory prototypes the user explicitly approved — a test written after the code tends to assert what the code does rather than what it should do.

3. Contract-First

Before a non-trivial component: define the Protocol / ABC / interface (ISP: ≤5 methods, else split), write contract tests against the abstraction (must pass for ANY conforming impl), then implement.

Contract drift is a bug. The implementation signature matches the interface exactly — argument types, return type, keyword vs positional — because callers are written against the interface. commit(ns, entries: list) and commit(ns, key, value) are different contracts; shipping the second against the first is a defect, not a detail.

Read the full file on GitHub · 171 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. 10d ago Changed · +2 lines faa210d38f97
  2. 1mo ago Changed · +1 lines 6e1edba24b50
  3. 1mo ago Changed · -1 lines 5ad0ffca5fe8
  4. 2mo ago Changed · +10 lines · -1 tokens per session 88dfd8fa88e1
  5. 2mo ago Changed · +2 lines 1cd79956cf0a
  6. 3mo ago First seen · 157 lines · 51 tokens per session scan A c5061d8c194c

Subscribe to this mod's changes

mb-engineering-core is an agent published in the GitHub repository fockus/skill-memory-bank (33 stars, last pushed 5d ago), licensed MIT. It adds 50 tokens to every session and 2,369 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-engineering-core compared with agents from other repositories

mb-engineering-core next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mb-engineering-corefockus/skill-memory-bankAgent335d agoMITA50Claude Code
testerdrobins25/craftAgent74yesterdayMITA200Claude Code
trailhead-executorToRvaLDz/trailheadAgent37yesterdayMITA32Claude Code
trailhead-planToRvaLDz/trailheadAgent37yesterdayMITA33Claude Code
plan-creation-qa-criticQBall-Inc/the-bulwarkAgent9yesterdayMITA66Claude Code
trailhead-codebase-mapToRvaLDz/trailheadAgent37yesterdayMITA28Claude Code
trailhead-researchToRvaLDz/trailheadAgent37yesterdayMITA20Claude Code