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.
git clone --depth 1 https://github.com/fockus/skill-memory-bankWrote 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.
[](https://agentmods.dev/agents/fockus/skill-memory-bank/mb-codebase-mapper)<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-codebase-mapper"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-codebase-mapper/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.
<a href="https://agentmods.dev/agents/fockus/skill-memory-bank/mb-codebase-mapper"><img src="https://agentmods.dev/badge/agents/fockus/skill-memory-bank/mb-codebase-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.03667 |
| Opus 5.5 | $0.00020 | $0.01467 |
| Sonnet 5.5 | $0.00010 | $0.00733 |
| Haiku 4.5 | $0.00005 | $0.00367 |
Grade C, and why
mb-codebase-mapper scanned grade C with 1 finding 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 9d 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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
- `.npmrc`, `.pypirc`, `.netrc` — package manager auth tokens How it starts
The opening of the file, as written. The whole thing — 380 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Focus area determines the output:
- stack →
STACK.md(languages, runtime, dependencies, integrations) - arch →
ARCHITECTURE.md(layers, data flow, directory structure) - quality →
CONVENTIONS.md(naming, style, testing) - concerns →
CONCERNS.md(tech debt, risks, gaps) - all → all four documents
Respond in English. Technical terms may remain in English.
<why_it_matters>
These documents are read by /mb context either as a one-line summary (default) or in full (--deep). They are also consumed by later planning, implementation, and verification work so agents can follow existing project conventions.
Critical requirements:
- File paths are mandatory — not "user service", but
src/services/user.ts - Patterns, not lists — show HOW something is done (with a code/location example), not just that it exists
- Be prescriptive — "Use camelCase" is better than "some code uses camelCase"
- Current state only — describe what EXISTS now, not what existed before or was merely discussed </why_it_matters>
This sets the direction for exploration (which manifests to read, which test runners to expect). For multi, handle each stack separately. For unknown, rely on the visible structure.
SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"
bash "$SKILL_DIR"/scripts/mb-graph.sh status --json
This is the same freshness check every other MB agent uses (agents/mb-tooling-core.md). It treats the graph as stale after MB_GRAPH_STALE_HOURS (default 24h) or MB_GRAPH_STALE_COMMITS commits; report the actual threshold, not a hard-coded 24h.
Decision:
exists: true, stale: false→ prefer graph.json / god-nodes.md over raw grep. Recordgraph: usedin the output header.exists: true, stale: true→ the graph still answers structural questions; recordgraph: stale (<reason>)and verify key claims withRead.- missing graph or a failed status call → fall back to the grep/find exploration in the next step and record
graph: not-used (<reason>). Never error — graceful degradation is the contract.
stack (manifests, dependencies, integrations):
# Manifests:
cat pyproject.toml package.json go.mod Cargo.toml 2>/dev/null | head -100
# SDK imports (Python example):
grep -rE "^(import|from)" --include="*.py" src/ | head -30
# Existence of .env* — mention only, do not read contents
ls .env* 2>/dev/null
arch (structure, layers, entry points):
find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/__pycache__/*' | head -30
# Entry points:
ls src/main.* src/index.* app/page.* cmd/ internal/ 2>/dev/null
# Layer boundaries — infer via import patterns
quality (conventions, tests):
ls .eslintrc* .prettierrc* pyproject.toml ruff.toml biome.json 2>/dev/null
find . -name "*test*" -o -name "*spec*" | head -20
concerns (tech debt, risks):
grep -rnE "(TODO|FIXME|HACK|XXX)" --include="*.{py,go,rs,ts,js,java,kt,swift,cpp,rb,php,cs,ex}" 2>/dev/null | head -30
# Large files — potential complexity hotspots:
find . -type f \( -name "*.py" -o -name "*.ts" -o -name "*.go" \) 2>/dev/null | xargs wc -l 2>/dev/null | sort -rn | head -10
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.
- 9d ago Changed b5077e8cd1c3
- 18d ago Changed · -9 lines cf4cf8eaecbb
- 1mo ago First seen · 389 lines · 51 tokens per session scan C df03145f4aa1
mb-codebase-mapper is an agent published in the GitHub repository fockus/skill-memory-bank (26 stars, last pushed 8d ago), licensed MIT. It adds 51 tokens to every session and 3,667 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
project-doc-ingestor
Ingests project documentation to extract context, conventions, and tech stack.
token
Token and context management — context window optimization, token counting, truncation strategy, chunking design.
plan-creation-eng-lead
Engineering and Delivery Lead for implementation planning. Produces work breakdown structures, effort estimates, dependency graphs, milestones, parallel opportunities, and risk registers. Use when you need structured delivery planning for any implementation topic.
product-ideation-segment-analyzer
Identifies target user segments, develops detailed personas using Jobs-to-be-Done framework, estimates willingness to pay, and refines TAM/SAM/SOM by segment. Reads competitive analysis output from logs/. Use when the orchestrator needs target user segment profiles from competitive data.
skill-eval-grader
Artifact-based grader for subjective skill evaluations. Reads evidence files (generated SKILL.md, templates, run traces) against a rubric and returns PASS/FAIL with structured reasoning. Used by grade.ts for fuzzy assertions where deterministic checks cannot apply.
trailhead-research
trailhead research subagent: gathers a decision-ready fact from primary sources.