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 agentmods add skills/miaoy0ushan/fp/schema-memorynpx skills add MiaoY0uShan/FP --skill schema-memorygit clone --depth 1 https://github.com/MiaoY0uShan/FPWrote 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/miaoy0ushan/fp/schema-memory)<a href="https://agentmods.dev/skills/miaoy0ushan/fp/schema-memory"><img src="https://agentmods.dev/badge/skills/miaoy0ushan/fp/schema-memory.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 | $0.00027 | $0.02348 |
| Opus 5 | $0.00014 | $0.01174 |
| Sonnet 5 | $0.00005 | $0.00470 |
| Haiku 4.5 | $0.00003 | $0.00235 |
Grade A, and why
fp-schema-memory 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.
How it starts
The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FP: Schema Memory
Remember patterns, not everything.
Schema memory replaces semantic memory. It does not store large context, repository summaries, or raw conversation history. It stores reusable work patterns discovered from evidence.
Use schema memory to answer:
- What kind of task is this?
- How does this kind of task usually fail?
- What context is usually useful?
- What context is usually waste?
- What verification pattern works?
- What stop condition prevents drift?
Use when
- An evidence ledger and adaptive improvement report reveal a reusable pattern.
- The same class of work has appeared more than once.
- A task type has predictable failure modes.
- A context budget pattern can reduce future context use.
- A verification pattern can prevent repeated mistakes.
- A workflow is becoming stable enough to standardize.
Do not use when
- There is no evidence ledger.
- The insight is a one-off preference.
- The pattern is speculative.
- The pattern would increase context without reducing risk.
- The agent wants to store raw memory instead of a reusable schema.
Goal
Produce or update a schema memory card.
A schema memory card captures a reusable pattern for a class of work:
- trigger
- problem pattern
- common failure modes
- recommended execution pattern
- context budget pattern
- verification pattern
- files or modules usually involved
- files or modules usually avoided
- evidence required
- promotion history
Procedure
- Read the evidence ledger and adaptive improvement report if available.
- Identify the class of work.
- Extract the repeatable pattern, not the incidental details.
- Identify common failure modes.
- Identify the smallest useful context pattern.
- Identify the verification pattern that proved the work.
- Identify stop conditions that would prevent drift.
- Decide whether to create, update, or reject the schema.
- Keep the schema short enough to be reused in a future execution brief.
- If the schema relates to other schema or lesson cards, populate the
related-schemasYAML frontmatter with typed edges before finalizing. Usearchive/templates/memory-graph-traversal.mdto check blast-radius effects. - Populate the
task-typesYAML frontmatter with 3-5 keywords that describe the class of work. These keywords enable cluster retrieval viamemory-graph.js. Use compact, grep-friendly terms: prefer["bug", "validation", "auth"]over["validation logic for authentication tokens"]. - If this is a Map of Content (MOC), set
is_moc: true, leavetask-typesempty, and useinformsedges to list sub-cards. Create a MOC when 3 or more existing cards share a theme. - For Folgezettel sequences, use
nextandpreviousedges to capture the narrative order of your thinking. These are NOT semantic edges — they capture trajectory, not argument structure. - Follow the Zettelkasten conventions in
archive/templates/zettelkasten-conventions.md: atomicity (one pattern per card), bidirectional links, MOC at N≥3, refinement pipeline, serendipity traversal, and card size constraints.
What ships with it
1 file 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.
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.
- 4d ago First seen · 259 lines · 27 tokens per session scan A 05ea0d91c66f
fp-schema-memory is a skill published in the GitHub repository MiaoY0uShan/FP (3 stars, last pushed 28d ago), licensed MIT. It adds 27 tokens to every session and 2,348 once invoked, about $0.0001 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-31.
Other skills, from other repositories
git-ai-search
Search and restore AI conversation context from git history.
brain-page
Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files. Read it before creating or modifying any page or root page.
brain-bootstrap
Seed a freshly-scaffolded brain with real project knowledge — on an existing (brownfield) project read the code, docs, and git log to draft the six root pages and capture key historical decisions; on a near-empty (greenfield) project interview the user. Every write goes through the brain CLI. Run it after brain-setup.
brain-ingest
The process for digesting a conversation, document, or research result, classifying it, and writing it down as brain content (a root-page update or a new/updated page) through the brain CLI.
immune
Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Triggers on: "scan for errors", "immune scan", "check output quality", "antibody scan". NOT for PR review (use pr-review) or repo audits (use repo-sentinel).
ontology-sync
After a code change, sync the project's ontology vault — read what's already there, identify new capabilities / elements / domains introduced by the change, and write them back via the MCP server (or fall back to the CLI). Use this at the end of any task that introduces a new feature, refactors a module, or renames a…