memo-bank-query

memo-bank-query is a skill for Claude Code, Codex from kmitin/memo-bank. It costs 147 tokens per session (1,239 once invoked), scanned A, original, MIT.

A read-only documentation lookup tool for projects that use memo-bank, a store of project rules and specifications.

In plain words
What is it for?
Finding the specification that applies to a file or topic, searching project documentation, and checking whether a memo-bank is configured.
Why use it?
It helps an agent find the rules governing a file before reading or editing code, reducing the risk of breaking project requirements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Finding the specification that applies to a file or topic, searching project documentation, and checking whether a memo-bank is configured.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kmitin/memo-bank/memo-bank-query
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.

Any agent
npx skills add kmitin/memo-bank --skill memo-bank-query
Clone the repo
git clone --depth 1 https://github.com/kmitin/memo-bank

Made for: Claude Code, Codex.

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 memo-bank-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/kmitin/memo-bank/memo-bank-query/github.svg)](https://agentmods.dev/skills/kmitin/memo-bank/memo-bank-query)
Your own site
<a href="https://agentmods.dev/skills/kmitin/memo-bank/memo-bank-query"><img src="https://agentmods.dev/badge/skills/kmitin/memo-bank/memo-bank-query/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 memo-bank-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/kmitin/memo-bank/memo-bank-query"><img src="https://agentmods.dev/badge/skills/kmitin/memo-bank/memo-bank-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 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.00147 $0.01239
Opus 5.5 $0.00059 $0.00496
Sonnet 5.5 $0.00029 $0.00248
Haiku 4.5 $0.00015 $0.00124

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

Security

Grade A, and why

memo-bank-query 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.

skills/memo-bank-query/SKILL.md · 95 lines

How it starts

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

Querying a memo-bank

A memo-bank is a read-only corpus of project docs served over MCP. It answers "what rules govern this code?" precisely, so you load the contract before you touch the code rather than after you've broken it.

In these projects specs are contracts and code follows them. If a spec governs the path you're editing, satisfy it; if you're about to violate it, stop and say so.

Is a memo-bank available here?

Look for .island-slices.json at the repo root, or mcp__memo-bank__docs_* tools. If neither exists, this skill doesn't apply — say so rather than inventing rules.

Two ways to reach it:

  • MCP tools — mcp__memo-bank__docs_* (preferred when present).
  • The installed CLI — memobank serve|validate|drift|coverage (often at .venv/bin/memobank); for one-off queries the Python API works too: memo_bank.load_federation(memo_bank.parse_registry(Path(".island-slices.json"))) then fed_resolve_path(fed, path) / fed_search_live(fed, query).

Pick the entry point by what you have

Editing a specific file → docs_resolve_path (the common case, ~2 reads)

  1. docs_resolve_path(<repo-relative path>) → governing doc id(s), ordered by glob specificity (closest applies_to wins).
  2. docs_get(<top id>) for the full contract, or docs_get_section(<id>, <section>) for one part (e.g. the restrictions).
  3. Empty result = a coverage gap — that path is undocumented, not unconstrained. Say so plainly; don't fabricate a rule. The project's coverage loop will log it as spec-wanted.

A concept or question → expand first, then docs_search_live

Scoring is lexical bag-of-words: order and duplicates don't matter, and there is no substring match (auth does NOT match authentication). So the query must contain the corpus's actual words.

  1. Expand with domain synonyms before searching. Add the concrete terms the docs plausibly use — e.g. for "login" → authentication auth login session token signature; for "crawling reviews" → refresh fetch ingest cache stale quota. This is the single biggest lever on hit quality (it has moved a top hit from a score of 3 to 32 in practice).
  2. docs_search_live(<expanded query>) → ranked pointers; then docs_get the top hits.
  3. Unsure of the vocabulary? docs_list first and reuse its tags.

Read the full file on GitHub · 95 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 · +9 lines 73855da2099c
  2. 1mo ago First seen · 86 lines · 147 tokens per session scan A a477ce94c3e2

Subscribe to this mod's changes

memo-bank-query is a skill published in the GitHub repository kmitin/memo-bank (0 stars, last pushed 1mo ago), licensed MIT. It adds 147 tokens to every session and 1,239 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

keep-the-why

In a project with a .keep-the-why, or when asked about Keep the Why or to set it up - extract and preserve the reasoning code cannot explain - decisions, rejected alternatives, workarounds, incidents, constraints - plus project setup and maintainer interviews. Not for what changed (see Keep a Changelog) - only why.…

oliver-zehentleitner/keep-the-why · 128 tokens

persist

Persist knowledge to the correct destination — routes to DDD docs (PRODUCT/TECH/IMPROVEMENT/PROJECT), MEMORY.md, Knowledge/Library/ (searchable store), or EVOLUTION.md based on content type. Unified routing for both manual saves and auto hooks. TRIGGER: "remember", "save", "persist", "沉淀", "record this", "save to…

xg-gh-25/SwarmAI · 112 tokens

ddd-persist

Sediment knowledge into THIS DDD's docs — with the FULL routing discipline of SwarmAI's spersist: a Step-0 admission gate (most facts should NOT be persisted), a governance boundary, content-type routing, and a sanctioned RETIRE/MOVE reverse side. Additive, honors human-authored content, never overwrites judgment.…

xg-gh-25/SwarmAI · 154 tokens

memory-distill

Distill unprocessed DailyActivity files into curated MEMORY.md entries. TRIGGER: auto-triggers when >3 unprocessed DailyActivity files detected at session start. DO NOT USE: manually — this runs silently and automatically.

xg-gh-25/SwarmAI · 48 tokens

library

Manage the SwarmAI Library — mount external directories (code or docs) so the agent can recall them, and search the library. Mounting indexes in place at mount time (code → symbol graph, docs → text chunked into the shared Knowledge FTS5); mounts are POINTERS, never copied. TRIGGER: "mount ", "mount this folder", "add…

xg-gh-25/SwarmAI · 136 tokens

save-activity

Extract key points from the current conversation into today's DailyActivity log. TRIGGER: "save activity", "save daily activity", "log today's activity". NOT FOR: persist, save-context use cases.

xg-gh-25/SwarmAI · 46 tokens