memo-writing

memo-writing is a skill for Claude Code from linxule/memex-plugin. It costs 125 tokens per session (2,543 once invoked), scanned A, original, MIT.

A guide for writing session memos—short records of what happened, what was learned, and what should be remembered for later work.

In plain words
What is it for?
Use it when saving a conversation, documenting a session, creating a project memo, or recording information for future reference.
Why use it?
It helps preserve the reasoning, failed attempts, surprises, and decisions that are often lost when a coding session ends.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions subagents; positional $N argument; mentions Claude Code.

Part of the memex plugin — 5 skills, 3 commands, 5 hooks shipped together

Good fit Use it when saving a conversation, documenting a session, creating a project memo, or recording information for future reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/linxule/memex-plugin/memo-writing
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 linxule/memex-plugin --skill memo-writing
Clone the repo
git clone --depth 1 https://github.com/linxule/memex-plugin

Made for: Claude Code.

Or install memex, the plugin that ships this one along with the rest of its 5 skills, 3 commands, 5 hooks.

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 memo-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/linxule/memex-plugin/memo-writing/github.svg)](https://agentmods.dev/skills/linxule/memex-plugin/memo-writing)
Your own site
<a href="https://agentmods.dev/skills/linxule/memex-plugin/memo-writing"><img src="https://agentmods.dev/badge/skills/linxule/memex-plugin/memo-writing/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 memo-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/linxule/memex-plugin/memo-writing"><img src="https://agentmods.dev/badge/skills/linxule/memex-plugin/memo-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,543 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.00125 $0.02543
Opus 5.5 $0.00050 $0.01017
Sonnet 5.5 $0.00025 $0.00509
Haiku 4.5 $0.00013 $0.00254

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

Security

Grade A, and why

memo-writing 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 29d 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.

plugins/memex/skills/memo-writing/SKILL.md · 233 lines

How it starts

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

Portable copy of skills/memo-writing/SKILL.md for Codex and Kimi Code, generated by scripts/portable_plugin.py (do not edit here). Needs the memex CLI on PATH. Claude Code names (the Task/Agent tool, /memex:save, hooks) map to your host's equivalents.

Writing Effective Session Memos

Context

Date: (run: date +%Y-%m-%d) Project: (run: basename $(git remote get-url origin 2>/dev/null | sed 's/\.git$//' | xargs basename 2>/dev/null) 2>/dev/null || basename $(pwd)) Topics available for [[wikilinks]]: (run: ls $(memex path 2>/dev/null)/topics/*.md 2>/dev/null | xargs -I{} basename {} .md | sort | tr '\n' ' ' || echo "(no topics found)")

Core Principle

You were there. A subagent reading the transcript later wasn't. Your memo from full context will always be better than a reconstructed one. Write from experience, not summary.

Capture the journey, not just the destination. Future-Claude needs to understand:

  • How things were discovered, not just what was found
  • What was tried and failed, not just what worked
  • What surprised you or was unexpectedly hard
  • Where user and AI disagreed or changed direction

Memo Format

---
type: memo
title: [Specific, searchable title]
project: [project-name]   # detected from cwd git root; set explicitly if writing from outside the project
date: [ISO date]
session_id: [full session UUID]   # $CLAUDE_CODE_SESSION_ID in-session; the transcript's id for a retry subagent
topics:
  - topic-name-kebab-case
  - another-topic
manual: true              # distinguishes manually-written memos from auto-extracted ones
---

# [Title]

## For Future Context

[1-2 sentences: the single most important thing for someone continuing this work]

## Summary

[2-4 sentences: what was the actual work, not "we discussed X" but "we tried Y, discovered Z"]

## What Happened

### Key Decisions
- **[Decision]**: [Why this over alternatives. Note tradeoffs.]

### What Worked / What Didn't
- **Tried**: [Approach that failed or was abandoned] → **Why**: [Reason it failed]
- **Solution**: [What actually worked] → **Insight**: [Why it worked]

### Surprises & Difficulties
- [Unexpectedly hard things, multiple attempts, friction]
- [Surprisingly easy things, or things that solved bigger problems]

### Insights
- [Patterns, gotchas, or principles that transfer to other contexts]
- [Non-obvious discoveries — not "X is complex" but "X fails silently when Y"]

## Perspectives & Tensions

[When user and AI had different takes, or user expressed uncertainty/frustration/changed direction. Preserve quotes when they reveal thinking:]

- **User's priority**: [What the user emphasized or pushed for]
- **AI's approach**: [Where Claude offered alternatives or raised concerns]
- **Resolution**: [How it was decided, or if still open]

[Omit this section entirely if the session was straightforward]

## Open Threads

- [ ] [Concrete next step with enough context to act on]
- [ ] [Unresolved question with why it matters]
- [ ] [Blocked item with what's blocking it]

## Related

- [[existing-topic]]
- [[?suggested-new-concept]]

## Context Signals

- **Difficulty**: [Easy / Moderate / Complex / Grinding]
- **Session character**: [Exploration / Debugging / Implementation / Planning / Discussion]

Read the full file on GitHub · 233 lines

Files

What ships with it

1 file 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. 29d ago Changed · +2 lines b760d7ecea8b
  2. 1mo ago Changed 68a5c9708d28
  3. 1mo ago Changed 4580f5eab971
  4. 1mo ago First seen · 231 lines · 125 tokens per session scan A 5e0c77a5a265

Subscribe to this mod's changes

memo-writing is a skill published in the GitHub repository linxule/memex-plugin (7 stars, last pushed 2d ago), licensed MIT. It adds 125 tokens to every session and 2,543 once invoked, about $0.0005 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

superbrain-distill

Internal SuperBrain skill — run by the detached capture child to distill a session-event delta into routed Obsidian notes. Not for direct user invocation.

m3talux/superbrain · 36 tokens

superbrain-recall

Search the user's SuperBrain second-brain vault. Use whenever the user references past work, prior decisions, "how did we", "did we already", earlier sessions, a project's history, or anything that may already be recorded — before answering from scratch.

m3talux/superbrain · 56 tokens

memento

Capture durable knowledge from the current work session into Memento Vault. Use when the user asks to remember, save, capture, or record decisions, discoveries, bug fixes, or reusable patterns.

sandsower/memento-vault · 41 tokens

inception

Run or preview Memento Vault consolidation. Use when the user asks to consolidate, find patterns, run inception, preview clusters, or synthesize cross-session themes.

sandsower/memento-vault · 35 tokens

concierge

Search Memento Vault for day-to-day recall, past decisions, discoveries, implementation history, and prior session context. Use when the user asks "do you remember", "have we seen", "what did we decide", "what did we learn", "where was this implemented", "find prior context", "check memory", "search the vault", or any…

sandsower/memento-vault · 87 tokens

continue-work

Use when the user says "continue", "pick up where I left off", "what was I working on", or similar. Also use when starting a session and memory has pending work.

sandsower/memento-vault · 41 tokens