Agent skill

Write an agentmemory Skill

by rohitg00 in rohitg00/agentmemory

Sets the house format for writing or restructuring an agentmemory skill: a tiered SKILL.md under 100 lines, generated reference facts and a fixed style and checklist.

Apache-2.0Auto-check passedAgent Workflows

Install Write an agentmemory Skill

skills CLI
$ npx skills add rohitg00/agentmemory --skill write-agentmemory-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rohitg00/agentmemory write-agentmemory-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rohitg00/agentmemory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/write-agentmemory-skill .claude/skills/write-agentmemory-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
write-agentmemory-skill
GitHub stars
29k
Token cost
~567 tokens
SKILL.md length
257 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Sets the house format for writing or restructuring an agentmemory skill: a tiered SKILL.md under 100 lines, generated reference facts and a fixed style and checklist.

  • Writing a new agentmemory skill from scratch
  • SKILL.md covers Directory layout, SKILL.md rules, Keep it current and Style, plus 1 more section
  • Calls npm
  • Restructuring an existing agentmemory skill to match the house format

What it does

A skill folder has a required SKILL.md under 100 lines, an optional REFERENCE.md for dense, auto-generated facts, and presumably an EXAMPLES.md for worked examples, though the excerpt was cut before fully listing it. SKILL.md's frontmatter needs name, description, an optional argument-hint, and a user-invocable flag set true only for skills run as a slash command. The description itself is exactly two sentences in third person and under 1024 characters: the first states the capability, the second starts with "Use when" and lists concrete triggers distinct from sibling skills.

The body follows a fixed order: a quick start with one concrete example, a Why section stating the governing principle, a numbered Workflow with decision gates, an Anti-patterns callout showing a wrong-versus-right case for the top mistake, a checklist, and a See also section that cross-links siblings one level deep, with shared recovery steps living only in a central troubleshooting file rather than being inlined. Facts that already exist in source, such as tool names, REST endpoints or env vars, are generated with npm run skills:gen rather than hand-typed, and CI runs npm run skills:check to fail on drift. Style bans external or competitor product names, emojis, em-dashes and filler.

When your agent uses it

  • Writing a new agentmemory skill from scratch
  • Restructuring an existing agentmemory skill to match the house format
  • Reviewing a submitted skill contribution for format and style consistency

Example prompts

  • “Write a new agentmemory skill for exporting memory to Markdown, following the house format.”
  • “Review this skill contribution against the checklist before we merge it.”
  • “Restructure this skill's SKILL.md so the generated facts come from npm run skills:gen.”

Requirements

  • Node.js with npm run skills:gen and npm run skills:check

What it can do on your machine

Read from SKILL.md and the folder at commit 007a1a7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Write an agentmemory Skill loads about 567 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~567

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rohitg00/agentmemory at commit 007a1a7, republished under its Apache-2.0 licence (© rohitg00). 257 words, ~567 tokens.

Download SKILL.mdSave it as .claude/skills/write-agentmemory-skill/SKILL.md (or your agent's skills folder).
name
write-agentmemory-skill
description
The house format and rules for writing or updating an agentmemory skill. Use when adding a new skill, restructuring an existing one, or reviewing a skill contribution for consistency.
user-invocable
false

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

Directory layout

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

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.
  • Cross-references link one level deep only. Shared recovery steps live in ../_shared/TROUBLESHOOTING.md, never inlined.

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.

© rohitg00, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugin/skills/write-agentmemory-skill of rohitg00/agentmemory.

Open the folder on GitHubat commit 007a1a7

Compare with similar skills

Write an agentmemory Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Write an agentmemory Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write an agentmemory Skill this skillrohitg00/agentmemory29k—~567Automated safety check: PassApache-2.0
Skill CreatorAzure/azqr79489 repos~8.2kAutomated safety check: PassApache-2.0
Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase10k10 repos~3.5kAutomated safety check: PassMIT
Darwin Skill Optimizeralchaincyf/darwin-skill6.2k1 repos~4.7kAutomated safety check: PassMIT
Claude Code Command Developmentanthropics/claude-plugins-official37k10 repos~4.8kAutomated safety check: PassApache-2.0
Claude Code Plugin Structureanthropics/claude-plugins-official37k10 repos~3.4kAutomated safety check: PassApache-2.0

Similar skills

  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    794 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Skill Developer Guide

    diet103/claude-code-infrastructure-showcase

    A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.

    10k GitHub starsUsed in 10 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Darwin Skill Optimizer

    alchaincyf/darwin-skill

    Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.

    6.2k GitHub starsUsed in 1 repo~4.7k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    37k GitHub starsUsed in 10 repos~4.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Plugin Structure

    anthropics/claude-plugins-official

    Official

    Explains the directory layout, plugin.json manifest and component organization of a Claude Code plugin, including auto-discovery and portable paths.

    37k GitHub starsUsed in 10 repos~3.4k tokens
    Agent WorkflowsAuto-check passed
  • Skill Release Gate

    rohitg00/ai-engineering-from-scratch

    Evaluates an Agent Skill bundle before release for structure, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity and host portability.

    65k GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from rohitg00/agentmemory

All 17 skills in this repo
  • Sets up and troubleshoots a local agentmemory install, covering the MCP connection, environment variables, ports, authentication and optional feature flags.

    29k GitHub stars~1k tokensUpdated today
    Auto-check: notes
  • Commit Context Lookup

    rohitg00/agentmemory

    Traces a file, function or line back to the agent session behind its current commit, using git blame and a memory lookup, and reports only what the records show.

    29k GitHub stars~522 tokensUpdated today
    Auto-check passed
  • Agent Commit History

    rohitg00/agentmemory

    Lists recent git commits linked to agent sessions, filterable by branch, repository or a result limit, showing the session id and observation count behind each one.

    29k GitHub stars~524 tokensUpdated today
    Auto-check passed
  • Agentmemory Forget

    rohitg00/agentmemory

    Deletes chosen memories from agentmemory only after showing the matches and getting an explicit yes, for privacy requests and cleanup of outdated notes.

    29k GitHub stars~612 tokensUpdated today
    Auto-check passed
  • Session Handoff Resume

    rohitg00/agentmemory

    Resumes the most recent agent session for the current directory, leading with any question left unanswered and ending with a concrete next step.

    29k GitHub stars~678 tokensUpdated today
    Auto-check passed
  • Lesson Memory Recorder

    rohitg00/agentmemory

    Distills a user correction or hard-won rule into a confidence-weighted lesson that resurfaces automatically before similar future work.

    29k GitHub stars~721 tokensUpdated today
    Auto-check passed

Categories

Questions about Write an agentmemory Skill

What does Write an agentmemory Skill do?

Sets the house format for writing or restructuring an agentmemory skill: a tiered SKILL.md under 100 lines, generated reference facts and a fixed style and checklist. md for worked examples, though the excerpt was cut before fully listing it.md's frontmatter needs name, description, an optional argument-hint, and a user-invocable flag set true only for skills run as a slash command.

When should I use Write an agentmemory Skill?

Write an agentmemory Skill fits situations like: writing a new agentmemory skill from scratch; restructuring an existing agentmemory skill to match the house format; reviewing a submitted skill contribution for format and style consistency.

How do I install Write an agentmemory Skill in Claude Code?

Run `npx skills add rohitg00/agentmemory --skill write-agentmemory-skill -a claude-code`. Or copy the skill folder (plugin/skills/write-agentmemory-skill in rohitg00/agentmemory) into .claude/skills/write-agentmemory-skill in your project. Claude Code loads it when a task matches its description.

How do I install Write an agentmemory Skill in Codex?

Run `npx skills add rohitg00/agentmemory --skill write-agentmemory-skill -a codex`. Or copy the skill folder (plugin/skills/write-agentmemory-skill in rohitg00/agentmemory) into .agents/skills/write-agentmemory-skill in your project. Codex loads it when a task matches its description.

Can I use Write an agentmemory Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rohitg00/agentmemory --skill write-agentmemory-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-agentmemory-skill, .gemini/skills/write-agentmemory-skill, .github/skills/write-agentmemory-skill and .opencode/skills/write-agentmemory-skill in your project.

What does Write an agentmemory Skill need to run?

Going by SKILL.md and its folder, Write an agentmemory Skill needs the command-line tools its instructions call (npm). Our summary lists: Node.js with npm run skills:gen and npm run skills:check.

Does Write an agentmemory Skill access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Write an agentmemory Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Write an agentmemory Skill use?

Write an agentmemory Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write an agentmemory Skill use?

About 567 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Write an agentmemory Skill?

Skills that share tags, products or a category with Write an agentmemory Skill: Skill Creator (Azure/azqr, 794 stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars), Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars) and Claude Code Command Development (anthropics/claude-plugins-official, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write an agentmemory Skill?

rohitg00 (a GitHub user) maintains it in rohitg00/agentmemory, which has 29,188 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 6, 2026.

Source: rohitg00/agentmemory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.