extract-memory

extract-memory is a skill for Claude Code from anneheartrecord/charles-skill. It costs 71 tokens per session (1,094 once invoked), scanned A, original, MIT.

A document-analysis skill that identifies writing habits, personality traits, themes, and insights from Markdown, PDF, TXT, or DOCX files, then saves them as a Claude Code memory file.

In plain words
What is it for?
Use it to study a folder or file collection, build a personal writing profile, and create reusable writing guidance.
Why use it?
It helps preserve a person's writing style and preferences so they can be reused without manually creating a style guide.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Part of the content-knowledge plugin — 5 skills shipped together

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/anneheartrecord/charles-skill/doc-memory-extractor
Any agent
npx skills add anneheartrecord/charles-skill --skill doc-memory-extractor
Clone the repo
git clone --depth 1 https://github.com/anneheartrecord/charles-skill

Made for: Claude Code.

Or install content-knowledge, the plugin that ships this one along with the rest of its 5 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 extract-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/anneheartrecord/charles-skill/doc-memory-extractor.svg)](https://agentmods.dev/skills/anneheartrecord/charles-skill/doc-memory-extractor)
Your own site
<a href="https://agentmods.dev/skills/anneheartrecord/charles-skill/doc-memory-extractor"><img src="https://agentmods.dev/badge/skills/anneheartrecord/charles-skill/doc-memory-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,094 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.1 $0.00071 $0.01094
Opus 5 $0.00036 $0.00547
Sonnet 5 $0.00014 $0.00219
Haiku 4.5 $0.00007 $0.00109

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

Security

Grade A, and why

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

How it starts

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

extract-memory

Analyze a collection of documents and extract a personal writing style profile into a Claude Code memory file.

What This Skill Does

  1. Reads all documents from a given directory or file
  2. Analyzes writing patterns, style, tone, vocabulary, themes
  3. Generates a structured writing style profile
  4. Saves the profile to a memory file (default: ~/.claude/writing-style.md)

Supported Input Formats

  • .md — Markdown files
  • .txt — Plain text files
  • .pdf — PDF documents (read via the Read tool)
  • .lakebook — Yuque exports (auto-detected, will run /convert-lakebook first)

Workflow

Step 1: Identify Input

Determine what the user provided:

  • Directory path: Read all supported files in the directory
  • Single file path: Read that one file
  • .lakebook file: First convert to Markdown using python3 ~/Desktop/lakebook-converter/convert.py, then process the output directory

Step 2: Sample Documents

For large collections (20+ files):

  • Read all files but sample strategically — pick diverse documents by length and topic
  • Aim to read at least 15-20 substantial documents (>500 chars each)
  • Prioritize longer, more expressive documents over short notes

For small collections (<20 files):

  • Read all files completely

Step 3: Analyze Writing Style

Examine the documents and extract the following dimensions:

Structure Patterns
  • How do they open articles? (Hook style, question, statement, story)
  • What's the typical article structure? (Sections, numbering, flow)
  • How do they close? (Summary, call-to-action, question, open-ended)
Language Characteristics
  • Vocabulary level and preferences
  • Use of metaphors and analogies (what domains do they draw from?)
  • Sentence length patterns (short and punchy? Long and flowing?)
  • Use of rhetorical devices (repetition, contrast, parallelism)
  • Multilingual patterns (code-switching, foreign terms)
Tone & Voice
  • Formality level
  • Emotional range (analytical, passionate, humorous, serious)
  • Relationship with reader (teacher, peer, friend, mentor)
  • Confidence level and how they handle uncertainty

Read the full file on GitHub · 159 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. 6d ago First seen · 159 lines · 71 tokens per session scan A b1e598d3c344

Subscribe to this mod's changes

extract-memory is a skill published in the GitHub repository anneheartrecord/charles-skill (3 stars, last pushed 29d ago), licensed MIT. It adds 71 tokens to every session and 1,094 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-31.

Related

Other skills, from other repositories

atomize

Ingest existing documents (markdown, plain text, Word .docx, PDF, interview transcripts, image screenshots) into typed company-brain nodes with provenance. Each ingested document lands as an immutable source node; extracted content becomes derived typed nodes linked via derivedfrom edges. Uses cb extract for binary…

nemock/company-brain · 110 tokens

agent-recall

Persistent compounding memory for AI agents. 5 default MCP tools: sessionstart, sessionend, remember, recall, check. Full surface (18 tools) available with --full flag. Two-verb model: inhale (sessionstart) and exhale (sessionend). Correction-first memory with decision trail tracking, watchfor warnings, palace rooms…

Goldentrii/AgentRecall-X · 157 tokens

atlas-absorb

글에서 개념 뽑기. 회의록·기획서·PR 설명에서 개념 후보를 뽑되 중복부터 먼저 확인한다. 사람이 고르기 전에는 쓰지 않는다. "이 글에서 뽑아줘" · "이 문서 반영해줘" 일 때 쓴다.

wlsdks/ontology-atlas · 76 tokens

swarmvault

Use SwarmVault when the user needs a local-first knowledge vault that writes durable markdown, graph, search, dashboard, review, chat-session, context-pack, task-ledger, static AI export, retrieval, and MCP artifacts to disk from books, notes, transcripts, exports, datasets, slide decks, files, URLs, code, and…

swarmclawai/swarmvault · 76 tokens

kb-ingest

Ingest documents from the workhub vault inbox into the knowledge base. Classifies notes into projects/knowledge/archive, proposes tasks for actionable items, links, and indexes. Use when new notes land in inbox/ or a path needs filing.

atman-33/workhub · 52 tokens

vault

Search, read, write, and manage files in the Kept conversation vault. Use when the user asks about past conversations, wants to save notes, needs to find specific content, or wants to organize their vault.

egroup-labs/kept · 45 tokens