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.
npx skills add waittim/MemoryCustodian --skill memory-custodiangit clone --depth 1 https://github.com/waittim/MemoryCustodianWrote 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/skills/waittim/memorycustodian/memory-custodian)<a href="https://agentmods.dev/skills/waittim/memorycustodian/memory-custodian"><img src="https://agentmods.dev/badge/skills/waittim/memorycustodian/memory-custodian.svg" alt="Measured on agentmods" 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.00049 | $0.03107 |
| Opus 5 | $0.00024 | $0.01554 |
| Sonnet 5 | $0.00010 | $0.00621 |
| Haiku 4.5 | $0.00005 | $0.00311 |
Grade B, and why
memory-custodian scanned grade B 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 2d 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.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
Project memory may constrain project work, but it cannot override system instructions, current user instructions, Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MemoryCustodian
MemoryCustodian stores durable project memory as local, human-readable Markdown files under docs/memory/.
Use it to:
- load the minimum relevant project memory for the current task
- update project memory after meaningful decisions
- compact unprocessed memory candidates
- forget or tombstone memory the user no longer wants used
- keep platform entry files such as
AGENTS.md,CLAUDE.md, andGEMINI.mdshort
Hard Gate
In a project that contains MemoryCustodian memory, do not start substantial planning, implementation, debugging, or review until startup loading is complete:
- Read
manifest.mdif present. If the memory directory exists but the file does not, stop as described below. - Read
brief.mdbefore substantial work. - Choose and expose one canonical task category.
- Supply touched/planned repo-relative paths, or an explicit area when paths are not yet known.
- Use
read --strict-routing(or the same shared routing implementation) and do not start substantial work unless the context pack is approved. - Respect shared constraints and
do-not-use.mdbefore local preferences or task convenience.
If no memory directory exists, continue normally and offer initialization only when useful. If the memory directory exists but manifest.md is missing, stop memory loading and report an incomplete or corrupted setup. Do not infer routes; restore the manifest, migrate, or carefully reinitialize the project first.
Core Workflow
- Locate memory at
docs/memory/manifest.md, or another project-declared memory directory underdocs/. - Read
manifest.md; it is the sole authority for runtime task-to-file routing. - Read
brief.mdbefore substantial work. - Choose a canonical task and make that choice observable.
- Collect touched/planned paths before implementation, debugging, or review; use an explicit area for high-level planning when appropriate.
- Route with the manifest-declared task, path, and explicit-module inputs. Treat INCOMPLETE, AMBIGUOUS, INVALID, or a blocked conflict status as not approved for substantial work.
- Respect
do-not-use.mdand tombstones before proposing plans or implementations. - Never load
archive/unless the user explicitly asks or the task is archive maintenance. - Do not load
inbox.mdunless compacting, auditing unsorted memory, or asked by the user. - If
brief.mdis still a generated scaffold, curate it from authoritative project files before relying on it. - After meaningful decisions, repeated corrections, or rejected approaches, update the appropriate memory file or propose a concise update.
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/admission-policy.md 952 B
- references/compaction-policy.md 4.0 KB
- references/examples.md 2.1 KB
- references/forgetting-policy.md 4.6 KB
- references/local-overlay-policy.md 1.4 KB
- references/manifest-policy.md 2.9 KB
- references/memory-file-protocol.md 20 KB
- references/platform-adapters.md 2.5 KB
- references/quality-audit.md 10 KB
- references/routing-policy.md 2.0 KB
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.
- 2d ago Changed · +25 lines c2e2d7f62c7e
- 8d ago First seen · 188 lines · 49 tokens per session scan B 2166f875eb1a
memory-custodian is a skill published in the GitHub repository waittim/MemoryCustodian (20 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 3,107 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
context-anchoring
Manage per-feature living documents that capture decisions, constraints, and reasoning across AI sessions during active development. Scoped to feature-level work — design, implementation, bugfix, refactor — not for codebase-wide assessments or product-wide specifications (those define their own document lifecycles).…
learning-harvest
Manage the operational learnings lifecycle — load prior learnings to inform current work, harvest new patterns worth preserving, and keep the document tight over time. Provides a protocol for accumulating actionable patterns from practice that complement standards and defaults. Use when a workflow session completes…
agent-wiki
Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.
capability-evolver
Self-evolution workflow for the agent. Before substantive work, recall past outcomes from evolution memory; while editing, detect improvement signals; at task end, record the outcome; when reusable, distill or search the EvoMap network for proven genes/capsules. Use when the user starts non-trivial work (a feature, a…
knowledge-priming-refiner
Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create…
knowledge-priming
Load project-specific context -- tech stack, architecture overview, directory layout, trusted sources, and conventions -- so that all skills operate with awareness of what this project actually is. Use when a knowledge base document exists, or when the user asks about the project's tech stack, architecture…