write-agentmemory-skill

write-agentmemory-skill is a skill for Claude Code from rohitg00/agentmemory. It costs 40 tokens per session (536 once invoked), scanned A, original, Apache-2.0.

A skill guide for creating or updating agentmemory skills, which are reusable instructions for an AI coding agent. It defines the required file layout, writing style, workflow sections, and review rules.

In plain words
What is it for?
Use it when adding a new agentmemory skill, reorganizing an existing one, or reviewing a skill contribution for consistency.
Why use it?
Consistent skill files are easier for agents to recognize, follow, and maintain. The guide also keeps short instructions separate from detailed reference material and examples.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the agentmemory plugin — 17 skills, 2 commands, 12 hooks, 1 MCP server shipped together

Good fit Use it when adding a new agentmemory skill, reorganizing an existing one, or reviewing a skill contribution for consistency.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohitg00/agentmemory/write-agentmemory-skill
About the project

agentmemory is a persistent-memory system that lets AI coding agents retain and search information across sessions. It connects with several coding agents and MCP clients, storing knowledge with confidence scoring, lifecycle handling, knowledge graphs, and hybrid search. The catalogue contains agentmemory integrations such as skills, hooks, commands, a plugin, and an MCP component.

rohitg00/agentmemory · 29,595 stars · on GitHub · agent-memory.dev

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 rohitg00/agentmemory --skill write-agentmemory-skill
Clone the repo
git clone --depth 1 https://github.com/rohitg00/agentmemory

Made for: Claude Code.

Or install agentmemory, the plugin that ships this one along with the rest of its 17 skills, 2 commands, 12 hooks, 1 MCP server.

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-agentmemory-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rohitg00/agentmemory/write-agentmemory-skill"><img src="https://agentmods.dev/badge/skills/rohitg00/agentmemory/write-agentmemory-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 536 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
  • Socket pass 13 Oct 2026
  • Snyk pass 13 Oct 2026
  • 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.00040 $0.00536
Opus 5.5 $0.00016 $0.00214
Sonnet 5.5 $0.00008 $0.00107
Haiku 4.5 $0.00004 $0.00054

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

Security

Grade A, and why

write-agentmemory-skill 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 3d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

plugin/skills/write-agentmemory-skill/SKILL.md · 42 lines

How it starts

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

agentmemory skills follow one tiered format so they stay skimmable, accurate, and current. Match it exactly.

Directory layout

plugin/skills/<name>/
  SKILL.md      (required, under 100 lines)
  REFERENCE.md  (optional, dense facts; auto-generate data tables)
  EXAMPLES.md   (optional, worked transcripts)
  TROUBLESHOOTING.md (generated support file)

SKILL.md rules

  • Frontmatter: name, description, optional argument-hint, and user-invocable. Set user-invocable: true only for skills the user runs as a slash command; reference and knowledge skills are false.
  • Description is two sentences and the only thing the agent sees when deciding to load the skill. Sentence one states the capability. Sentence two starts "Use when" and lists concrete triggers. Keep it distinct from sibling skills, under 1024 chars, third person.
  • Body order: Quick start (one concrete example), Why (the governing principle), Workflow (numbered steps with decision gates), Anti-patterns (a WRONG vs RIGHT callout for the top mistake), Checklist, See also (cross-link siblings), Reference or Troubleshooting pointer.
  • Stay under 100 lines. Move dense facts to REFERENCE.md and examples to EXAMPLES.md.
  • Keep supporting files inside the skill directory so each skill works when installed separately. Link TROUBLESHOOTING.md; the generator copies shared recovery instructions into each skill root.

Keep it current

Facts that exist in source (tool names and parameters, REST endpoints, env vars, connect adapters, hook events) are generated, never hand-typed. Edit the source, then run npm run skills:gen. CI runs npm run skills:check and fails on drift, so generated tables cannot fall behind the code.

Style

No external or competitor product names. No emojis. No em-dashes. No filler. State the thing and stop.

Checklist

  • Description has a "Use when" sentence with real triggers.
  • SKILL.md is under 100 lines.
  • No time-sensitive claims and no duplicated troubleshooting block.
  • Concrete example present; generated facts come from the generator.
  • Cross-links resolve and go one level deep.

Read the full file on GitHub · 42 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. 3d ago Changed · +1 lines 5838e514f9b0
  2. 1mo ago First seen · 41 lines · 40 tokens per session scan A 07f5e9973c86

Subscribe to this mod's changes

write-agentmemory-skill is a skill published in the GitHub repository rohitg00/agentmemory (29,595 stars, last pushed today), licensed Apache-2.0. It adds 40 tokens to every session and 536 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-30.

Related

Other skills, from other repositories

hindsight-local

Store user preferences, learnings from tasks, and procedure outcomes. Use to remember what works and recall context before new tasks. (user).

vectorize-io/hindsight · 32 tokens

memory-retain

Save what was learned to Hindsight long-term memory. Use when a task finishes, when the user states a fact, decision or preference, and when you discover something a later run or another Bot would need.

vectorize-io/hindsight · 46 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

thisWeek

Resolve "thisWeek" to a concrete ISO date range relative to your run time — this week so far (Monday → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a week-to-date task (this week's activity…

chaitanyagiri/munder-difflin · 77 tokens

session-summaries

What the chat right-panel session summary shows, what it costs, and how to make a session summarize well. Load when the user asks about the session summary panel, why a summary looks wrong or empty, or how to turn it on.

kirodotdev/KiroCrew · 53 tokens

relevance-coarse-filter

Cheap, high-recall first-pass filter that removes obvious junk from a detector candidate pool before expensive story-origin research and PR judgment. Decides keep, monitoronly, or reject — never ranks, writes angles, verifies dates, or decides whether to pitch.

elvisun/newsjack · 57 tokens