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

Good fit Use it to study a folder or file collection, build a personal writing profile, and create reusable writing guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anneheartrecord/charles-skill/doc-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 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/github.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/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 extract-memory

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00071 $0.01094
Opus 5.5 $0.00028 $0.00438
Sonnet 5.5 $0.00014 $0.00219
Haiku 4.5 $0.00007 $0.00109

Measured 1mo ago against content hash b1e598d3c344, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (4 stars, last pushed 2mo ago), licensed MIT. It adds 71 tokens to every session and 1,094 once invoked, about $0.0003 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-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: 6 tools with --full (adds checkaction); 13 tools with AREXTRAS=1 --full. Two-verb model: inhale (sessionstart) and exhale (sessionend). Correction-first memory with decision trail…

Goldentrii/AgentRecall-X · 172 tokens

pages

Browse, open, or print distilled pages, reusing the wenlan pages CLI for the actual open (one implementation on your PATH, no setup). /wenlan pages opens the page when one matches, or shows a small native picker when 2-4 match. /wenlan pages --print reads the page here instead of opening an editor. /wenlan pages lists…

wenlan-app/wenlan · 105 tokens

atlas-absorb

A document-reading skill that finds concepts in meeting notes, plans, or pull-request descriptions and connects them to an existing knowledge graph. A knowledge graph stores concepts and their relationships.

wlsdks/ontology-atlas · 76 tokens

gemini-sync

A data-import workflow that reads a Google Takeout export of Gemini Apps activity and adds the conversation history to an Obsidian vault and a SQLite database. Google Takeout is Google’s tool for downloading a copy of account data.

tonydzi/second-brain-starter-kit · 0 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