memory-extractor

memory-extractor is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 96 tokens per session (2,478 once invoked), scanned A, original, Apache-2.0.

A tool that extracts possible long-term memories from a conversation or document into structured JSON entries. It breaks information into small facts, removes duplicates when possible, and assigns confidence with supporting quotes.

In plain words
What is it for?
Use it to prepare memory candidates from original conversation or document text. It does not write those candidates into the memory store.
Why use it?
It prevents an agent from saving every detail of a conversation as memory. Requiring source quotes makes each candidate easier to review before another tool stores it.

Skill for Claude CodeCodex

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

Good fit Use it to prepare memory candidates from original conversation or document text. It does not write those candidates into the memory store.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/memory-extractor
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 Morningstar202604/awesome-skillkit --skill memory-extractor
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/memory-extractor/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/memory-extractor)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/memory-extractor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/memory-extractor/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 memory-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/memory-extractor"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/memory-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,478 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.00096 $0.02478
Opus 5.5 $0.00038 $0.00991
Sonnet 5.5 $0.00019 $0.00496
Haiku 4.5 $0.00010 $0.00248

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

Security

Grade A, and why

memory-extractor 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 2mo 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.

site/skills/memory/memory-extractor/SKILL.md · 152 lines

How it starts

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

Memory Extractor

Nine out of ten things in a conversation are not worth remembering. This skill solves "what is worth remembering and how to record it cleanly": it extracts candidate memory entries from a conversation or document, splits each to fine granularity, deduplicates, and scores confidence, producing a machine-parseable candidates.json. It only extracts — it does not write to the store (that is memory-manager's job).

Input Checklist

Collect everything up front before starting. If an input is missing, ask the user once with this prompt: "To extract memory entries, please provide all at once: the conversation or document text to extract from, the user_id the memories belong to, and an export of the existing memory store (for deduplication; skip dedup and mark NO_DEDUP if absent)."

Input Required Notes
Conversation/document text Yes Full text or conversation log; secondhand "roughly what we talked about" paraphrases are not accepted
user_id Yes The owning subject; multi-user conversations must be labeled separately
Existing store export No Same-topic existing entries for dedup comparison; when absent, mark NO_DEDUP in the output
Schema constraint No If upstream memory-architect has frozen a schema, execute per its type enum

Pre-flight Self-check

This is a pure-prompt skill; no environment probing needed. It only checks input completeness:

  • Are the source text and user_id both present? If either is missing → ask once with the prompt above; do not guess the ownership.
  • Is the source text a paraphrase rather than the original record? Paraphrasing introduces the paraphraser's summarizing distortion → ask for the original; if you cannot get it, drop the whole output one confidence tier and mark secondhand: true.
  • Existing store export is missing → proceed normally, but mark the final output NO_DEDUP and let memory-manager complete the dedup.

Red Lines

  1. Do not infer sensitive categories: health, finances, religion, political leanings, sexual orientation, and the like are never extracted unless the user explicitly asks to remember them in conversation — a passing mention like "I've been in chemo lately" is not an extractable memory.
  2. Inferred entries must be flagged: any entry not directly supported by the user's own words but inferred from behavior or context gets confidence ≤ 0.7 and an [inferred] marker appended to the content.
  3. evidence_quote must be a verbatim quotation from the source: any entry that cannot yield a verbatim quote is dropped; never fabricate evidence "from memory."
  4. Do not extract one-off transactions: "book me a meeting room for Wednesday" is a schedule item, not a memory; writing it into the store only creates noise.
  5. Do not rewrite the user's stance: the source saying "I don't want to use Vue for now" must not be extracted as "the user dislikes Vue."

Read the full file on GitHub · 152 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. 2mo ago Changed · -7 tokens per session 4dd62b31c067
  2. 2mo ago First seen · 152 lines · 103 tokens per session scan A a39410027918

Subscribe to this mod's changes

memory-extractor is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 2,478 once invoked, about $0.0004 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-09-19.

Related

memory-extractor compared with skills from other repositories

memory-extractor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-extractorMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A96Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill70k3d agoApache-2.0A146Claude Code, Codex
mempalace-recallMemPalace/mempalaceSkill61k3d agoMITA94Claude Code
pausemem0ai/mem0Skill70k3d agoApache-2.0A30Claude Code
mineMemPalace/mempalaceSkill61k3d agoMITA21Claude Code
agent-carnetyamadashy/repomixSkill30kyesterdayMITA67Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex