fp-schema-memory

fp-schema-memory is a skill for Claude Code, Codex from MiaoY0uShan/FP. It costs 27 tokens per session (2,348 once invoked), scanned A, original, MIT.

A structured record of reusable work patterns, rather than stored conversations or large blocks of context. Each record describes a task type, common failures, useful context, wasteful context, verification, and stopping rules.

In plain words
What is it for?
Use it after repeated tasks have produced reliable evidence of a pattern. It helps standardize workflows, reduce unnecessary context, and prevent known mistakes.
Why use it?
It keeps future work from repeatedly rediscovering the same lessons while avoiding the cost and noise of saving raw history. It also prevents speculative or one-off observations from becoming permanent guidance.

Skill for Claude CodeCodex

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 skills/miaoy0ushan/fp/schema-memory
Any agent
npx skills add MiaoY0uShan/FP --skill schema-memory
Clone the repo
git clone --depth 1 https://github.com/MiaoY0uShan/FP

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 fp-schema-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/miaoy0ushan/fp/schema-memory.svg)](https://agentmods.dev/skills/miaoy0ushan/fp/schema-memory)
Your own site
<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>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,348 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.00027 $0.02348
Opus 5 $0.00014 $0.01174
Sonnet 5 $0.00005 $0.00470
Haiku 4.5 $0.00003 $0.00235

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

Security

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.

fp/schema-memory/SKILL.md · 259 lines

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

  1. Read the evidence ledger and adaptive improvement report if available.
  2. Identify the class of work.
  3. Extract the repeatable pattern, not the incidental details.
  4. Identify common failure modes.
  5. Identify the smallest useful context pattern.
  6. Identify the verification pattern that proved the work.
  7. Identify stop conditions that would prevent drift.
  8. Decide whether to create, update, or reject the schema.
  9. Keep the schema short enough to be reused in a future execution brief.
  10. If the schema relates to other schema or lesson cards, populate the related-schemas YAML frontmatter with typed edges before finalizing. Use archive/templates/memory-graph-traversal.md to check blast-radius effects.
  11. Populate the task-types YAML frontmatter with 3-5 keywords that describe the class of work. These keywords enable cluster retrieval via memory-graph.js. Use compact, grep-friendly terms: prefer ["bug", "validation", "auth"] over ["validation logic for authentication tokens"].
  12. If this is a Map of Content (MOC), set is_moc: true, leave task-types empty, and use informs edges to list sub-cards. Create a MOC when 3 or more existing cards share a theme.
  13. For Folgezettel sequences, use next and previous edges to capture the narrative order of your thinking. These are NOT semantic edges — they capture trajectory, not argument structure.
  14. 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.

Read the full file on GitHub · 259 lines

Files

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.

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 · 259 lines · 27 tokens per session scan A 05ea0d91c66f

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

git-ai-search

Search and restore AI conversation context from git history.

git-ai-project/git-ai · 13 tokens

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.

mindmuxai/brain.md · 47 tokens

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.

mindmuxai/brain.md · 74 tokens

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.

mindmuxai/brain.md · 48 tokens

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).

Mathews-Tom/armory · 73 tokens

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…

wlsdks/ontology-atlas · 90 tokens