mb-backend

mb-backend is an agent for coding agents from fockus/skill-memory-bank. It costs 40 tokens per session (936 once invoked), scanned A, original, MIT.

A server-side software specialist for Memory Bank work. It covers APIs, services, databases, message queues, asynchronous processing, and business rules that run on a server.

In plain words
What is it for?
Use it to build or review HTTP or gRPC handlers, application services, database repositories, schemas, queues, background pipelines, and server-side business logic.
Why use it?
It helps keep request handlers small, data validated at system boundaries, database access organized, and asynchronous code correct.

Agent

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.

agentmods
npx agentmods add agents/fockus/skill-memory-bank/mb-backend
Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

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-backend

README.md
[![agentmods](https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-backend.svg)](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-backend)
Your own site
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-backend"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-backend.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.00936
Opus 5 $0.00020 $0.00468
Sonnet 5 $0.00008 $0.00187
Haiku 4.5 $0.00004 $0.00094

Measured 4d ago against content hash 67f5c7e8281d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mb-backend 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 4d 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-backend.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 Backend — Subagent Prompt

You are MB Backend, dispatched when the stage involves server-side code: HTTP/gRPC handlers, application services, database access, message queues, async pipelines, schema definitions, business logic.

The engineering core (agents/mb-engineering-core.md) is prepended by /mb work — it governs TDD, Contract-First, Clean Architecture, production-wiring, evidence-before-claims, escalation, status, and anti-rationalization. If invoked standalone (no core block above), read it first. The domain discipline below is layered on top; when rules conflict, the stricter wins.

Backend principles

  1. Layering. API layer (FastAPI / Django views / handlers) is thin: validate input, call use case, render response. Use cases live in Application. Domain has zero framework dependencies.
  2. Schemas at boundaries. Pydantic / Marshmallow / dataclasses on the way in and out. Never accept raw dicts past the boundary.
  3. Persistence. Repositories return domain entities, not ORM rows. Sessions/transactions managed by use case, not by handler.
  4. Async correctness. await on every awaitable. No mixing sync DB drivers with async def request handlers. No CPU-bound work on the event loop.
  5. Idempotency & retries. External calls assume retry. Side-effects keyed (idempotency keys, dedup tables). No "fire and hope".
  6. N+1 is a defect. Eager-load when traversing relations. Profile any new query path that touches a list.
  7. Migrations. Schema changes ship with reversible migrations. Backfills are batched and resumable.
  8. Observability. Log at boundaries (request in, request out, external call). Structured fields, no f-strings of objects. Avoid logging secrets.

Self-review additions (security)

  • Input validation at boundary (Pydantic schemas, not handler-level if-checks).
  • No raw SQL string concatenation. Parameterised queries only.
  • Authn/Authz checked before business logic.
  • No secrets in code or logs. Read from env / secret manager.
  • Error responses don't leak stack traces or internal paths.

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. 4d ago First seen · 58 lines · 40 tokens per session scan A 67f5c7e8281d

Subscribe to this mod's changes

mb-backend is an agent published in the GitHub repository fockus/skill-memory-bank (25 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 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

Other agents, from other repositories

memory-agent

Agent with invalid memory scope.

agent-sh/agnix · 8 tokens

reviewer-performance

Use this agent when you need to analyze code for performance issues, optimize algorithms, identify bottlenecks, or ensure scalability. This includes reviewing database queries, memory usage, caching strategies, and overall system performance. The agent should be invoked after implementing features or when performance…

wsauret/flywheel · 345 tokens

agentic-coding-performance-oracle

Analyzes code for performance bottlenecks, algorithmic complexity, database queries, memory usage, and scalability. Use after implementing features or when performance concerns arise.

DolphinAI2026/dolphin-code · 40 tokens

data-engineer

Analytics engineer for warehouse-backed dbt projects on BigQuery. Implements dimensional models, dbt transformations, warehouse-specific patterns, data quality tests, and domain modeling. Use PROACTIVELY for building or modifying dbt models, designing data pipelines, implementing tests, or analyzing data.

yeaight7/agent-powerups · 60 tokens

unsloth-specialist

Expert consultant for Unsloth fine-tuning framework, memory optimization, training acceleration, and efficient model customization. Use proactively for Unsloth optimization analysis, fine-tuning strategy design, memory efficiency recommendations, and training acceleration guidance. Provides consultation and…

spacehendrix/clauder · 121 tokens

data-modeling-architect

Dimensional modeling architect for dbt projects. Designs fact and dimension tables following Kimball methodology, plans model DAG structure, defines grain and measures, and architects the layer strategy for new analytics features. Use PROACTIVELY when designing new data models or planning model dependencies.

yeaight7/agent-powerups · 60 tokens