memory-extractor

memory-extractor is a skill for Claude Code, Codex from LearnPrompt/cc-harness-skills. It costs 28 tokens per session (294 once invoked), scanned A, original, MIT.

A skill that extracts lasting collaboration details from recent conversations into user, feedback, project, and reference categories. It avoids saving temporary coding state or file locations.

In plain words
What is it for?
Use it to record durable user preferences, feedback about how the agent should work, project deadlines or constraints, and pointers to external systems.
Why use it?
It helps preserve preferences, working feedback, project constraints, and useful external references without filling memory with facts that will quickly become outdated.

Skill for Claude CodeCodex

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

Good fit Use it to record durable user preferences, feedback about how the agent should work, project deadlines or constraints, and pointers to external systems.

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

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/learnprompt/cc-harness-skills/memory-extractor.svg)](https://agentmods.dev/skills/learnprompt/cc-harness-skills/memory-extractor)
Your own site
<a href="https://agentmods.dev/skills/learnprompt/cc-harness-skills/memory-extractor"><img src="https://agentmods.dev/badge/skills/learnprompt/cc-harness-skills/memory-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 294 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 21
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00028 $0.00294
Opus 5 $0.00014 $0.00147
Sonnet 5 $0.00006 $0.00059
Haiku 4.5 $0.00003 $0.00029

Measured 8d ago against content hash a6d8f390fccc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/memory_manifest.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/memory-extractor/SKILL.md · 52 lines

What it actually says

Memory Extractor

Use this skill when you want to persist durable collaboration context from the latest conversation turns.

Use It For

  • capturing user preferences
  • saving feedback about how to work
  • recording non-code project constraints or deadlines
  • storing pointers to external systems

Avoid It For

  • storing code structure or file locations
  • saving short-lived task state that belongs in a plan
  • duplicating an existing memory topic without checking first

Quick Start

Build a manifest of existing memories:

python3 {baseDir}/scripts/memory_manifest.py --memory-root /path/to/memory

Then use the portable prompt in references/prompt-template.md.

Four Types

  • user
  • feedback
  • project
  • reference

Rules

  • save only durable signals
  • avoid code-state facts that can drift
  • prefer updating an existing topic file
  • organize by topic, not chronology

Supporting Files

Files

What ships with it

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

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. 8d ago First seen · 52 lines · 28 tokens per session scan A a6d8f390fccc

Subscribe to this mod's changes

memory-extractor is a skill published in the GitHub repository LearnPrompt/cc-harness-skills (233 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 294 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-30.

Related

Other skills, from other repositories

remem-mcp

Long-term memory for coding agents. Auto-applies at the start of any coding task — recall past context before answering, capture decisions/learnings/fixes after work, use CodeGraph instead of grep for symbol lookup. Invoke when you see [remem-mcp] in your context or when starting any non-trivial coding work.

tinhien11/remem-mcp · 71 tokens

write-terva-lore

Author terva lore. Lore is context that a person authors in files. terva injects it only when it is keyword-relevant, or always-on. Use to create/add/write lore, "world info", a lorebook entry, keyed background, or a book of facts for a character.

terva-sh/terva · 66 tokens

handoff

Compact the current session into a handoff document. A fresh session or another agent can pick it up with no need to re-derive context. Use when asked to hand off, hand over, wrap up for another session or agent, or park work mid-stream.

terva-sh/terva · 56 tokens

retrospective

Distill the reusable lessons of this session into the durable homes that shape future sessions. The lessons are corrections, conventions you discovered, and traps you hit. The homes are the project or global AGENTS.md, a project skill, and memory when available. Use when asked for a retro, to capture or remember…

terva-sh/terva · 76 tokens

create-new-ref

Systematically add a new memory-system reference to AutoMemory's reference hub. Use when analyzing a new agent memory system, adding reference/ /details.md, saving prompts, or updating reference/hub/techniquemap.json.

HKUDS/AutoMemory · 51 tokens

health-memory

Recognize, store, and recall structured health data across sessions.

HKUDS/AutoMemory · 15 tokens