write-memory

write-memory is a skill for Claude Code, Codex from toejough/engram. It costs 62 tokens per session (1,902 once invoked), scanned A, original, Apache-2.0.

A worker that writes a note to a vault after another skill has decided what should be remembered.

In plain words
What is it for?
Use it to create fact, feedback, question-and-answer, or runbook notes from a provided handoff.
Why use it?
It keeps the writing step separate from the decision about whether something is worth saving, and verifies where the note was written.

Skill for Claude CodeCodex

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

Good fit Use it to create fact, feedback, question-and-answer, or runbook notes from a provided handoff.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/toejough/engram/write-memory"><img src="https://agentmods.dev/badge/skills/toejough/engram/write-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,902 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 pass 7 Sept 2026
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.00062 $0.01902
Opus 5.5 $0.00025 $0.00761
Sonnet 5.5 $0.00012 $0.00380
Haiku 4.5 $0.00006 $0.00190

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

Security

Grade A, and why

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

agent-instructions/skills/write-memory/SKILL.md · 144 lines

How it starts

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

Write Memory — execute a handed-off vault write

You were invoked by a parent skill that already made the judgment (what to write and why). Your job is the write itself: compose, execute, verify, report. Do not re-litigate the parent's judgment; do not decide WHETHER to write. Pass the handed-off content as handed off, neither reworded nor merged.

The handoff contract

The parent provides:

  • kind — fact, feedback, qa, or runbook
  • content fields — by kind, per the blocks below
  • source — human-readable provenance string
  • optional chunk-sources — <source#anchor> chunk IDs (provenance)
  • optional tags — categorical <family> or <family>/<value> strings (kebab-case; fact/feedback/runbook only), e.g. work-kind/rename, tier/cheap, outcome/pass
  • optional supersedes — <basename>|<type>|<claim> (types: updates|narrows|refutes), when the parent determined this write corrects a surfaced note
  • optional position / target — Luhmann placement (top (default), continuation, or sibling) plus the target note ID (required when position is not top), when the parent made a disposition decision. Omitted → --position top (today's default), fact/feedback/runbook only.
  • optional red_flags — task-specific failure modes a general "follow the steps" rule would not catch (runbook only), e.g. "filter-branch on all refs sweeps the backup branch"
  • optional triggers — literal cues in a user's message that should surface this runbook first (runbook only), e.g. /please, "take this end-to-end"

If a required field is missing, ask for it from the in-session parent context and run no command until it is supplied — do not invent content on the parent's behalf.

Compose

kind=feedback:

engram learn feedback --slug <kebab-slug> --position <top|continuation|sibling> [--target <id>] \
  --source="<source>" \
  --situation="<retrieval-shaped phrase: when does this apply>" \
  --behavior="<what was done>" --impact="<why it was wrong/costly>" --action="<what to do instead>" \
  [--tag <family>/<value> ...]

Read the full file on GitHub · 144 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 Changed · +1 lines 34402f7f89a9
  2. 2mo ago Changed · +2 lines afad4cb92191
  3. 2mo ago Changed · +6 lines edd3c8b8e01d
  4. 2mo ago Changed · +20 lines 09840c3e5abd
  5. 3mo ago First seen · 115 lines · 62 tokens per session scan A eba8f55f040e

Subscribe to this mod's changes

write-memory is a skill published in the GitHub repository toejough/engram (10 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,902 once invoked, about $0.0002 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

write-memory compared with skills from other repositories

write-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-memorytoejough/engramSkill101mo agoApache-2.0A62Claude Code, Codex
harness-creatorwalkinglabs/learn-harness-engineeringSkill27k10d agoMITA142Codex
memory-poisoning-detectionTencent/AI-Infra-GuardSkill7.9kyesterdayApache-2.0A33Claude Code
browserwing-executorMemTensor/MemOSSkill13kyesterdayApache-2.0A42Claude Code, Codex
dev-browserMemTensor/MemOSSkill13kyesterdayApache-2.0A84Claude Code, Codex
ask-user-questionMemTensor/MemOSSkill13kyesterdayApache-2.0A44Claude Code, Codex
memos-memory-guideMemTensor/MemOSSkill13kyesterdayApache-2.0A131Claude Code, Codex