markdown-memory

markdown-memory is a skill for Claude Code from kpab/claude-fable-5-skills. It costs 77 tokens per session (392 once invoked), scanned A, original, MIT.

A file-based memory system that stores an agent's lessons in Markdown files across sessions. Markdown is a plain-text document format.

In plain words
What is it for?
It helps recurring agents remember past mistakes, preserve validated methods, bootstrap from earlier sessions, and maintain an index of relevant lessons.
Why use it?
It keeps confirmed approaches and corrections available for recurring work without needing a database, while discouraging stale or duplicate notes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the fable5-skills plugin — 11 skills shipped together

Good fit It helps recurring agents remember past mistakes, preserve validated methods, bootstrap from earlier sessions, and maintain an index of relevant lessons.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kpab/claude-fable-5-skills/markdown-memory
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 kpab/claude-fable-5-skills --skill markdown-memory
Clone the repo
git clone --depth 1 https://github.com/kpab/claude-fable-5-skills

Made for: Claude Code.

Or install fable5-skills, the plugin that ships this one along with the rest of its 11 skills.

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 markdown-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/kpab/claude-fable-5-skills/markdown-memory/github.svg)](https://agentmods.dev/skills/kpab/claude-fable-5-skills/markdown-memory)
Your own site
<a href="https://agentmods.dev/skills/kpab/claude-fable-5-skills/markdown-memory"><img src="https://agentmods.dev/badge/skills/kpab/claude-fable-5-skills/markdown-memory/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 markdown-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/kpab/claude-fable-5-skills/markdown-memory"><img src="https://agentmods.dev/badge/skills/kpab/claude-fable-5-skills/markdown-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 392 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.00392
Opus 5 $0.00039 $0.00196
Sonnet 5 $0.00015 $0.00078
Haiku 4.5 $0.00008 $0.00039

Measured 6d ago against content hash fb30f99bcda2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

markdown-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 6d 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/markdown-memory/SKILL.md · 35 lines

What it actually says

Markdown Memory

Fable 5 is unusually good at exploiting written records of its own past mistakes and confirmed approaches. A directory of Markdown files is enough — no database required. What matters is the maintenance discipline, because a memory full of stale or duplicate notes is worse than none.

Layout

memory/
  lessons/
    one-lesson-per-file.md
  INDEX.md   # one line per lesson, regenerated when lessons change

Lesson file format

  • Line 1: a one-sentence summary that makes sense without opening the file.
  • Body: what happened, what the correct approach is, and why it mattered — the why is what generalizes.
  • Record both corrections (things that went wrong) and confirmations (approaches validated under pressure).

Maintenance rules

  • One lesson per file. If a new event refines an existing lesson, update that file; never create a near-duplicate.
  • Don't record what the repo, docs, or chat history already state — memory is for what's not written down elsewhere.
  • Delete lessons proven wrong. A confidently wrong note does more damage than a missing one.
  • Read INDEX.md at session start; open full lesson files only when relevant.

Bootstrapping from history

To seed memory for an existing project, review past sessions (delegating chunks to subagents if history is large), extract recurring themes and corrections, and write them as lesson files in the format above. Then make reading INDEX.md part of the standing instructions.

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. 6d ago Changed · +5 tokens per session fb30f99bcda2
  2. 11d ago First seen · 35 lines · 72 tokens per session scan A 777906554143

Subscribe to this mod's changes

markdown-memory is a skill published in the GitHub repository kpab/claude-fable-5-skills (17 stars, last pushed 8d ago), licensed MIT. It adds 77 tokens to every session and 392 once invoked, about $0.0004 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-30.