claude-memory

claude-memory is a skill for Claude Code from atournayre/claude-marketplace. It costs 79 tokens per session (4,725 once invoked), scanned A, original, MIT.

Guidance for creating and improving CLAUDE.md memory files and .claude/rules files used by Claude Code. These files provide project instructions, such as the technology stack, commands, conventions, and rules that apply to specific paths.

In plain words
What is it for?
Use it to set up project memory, add commands and coding conventions, create path-specific rules, improve existing instructions, or manage memory during Claude Code sessions.
Why use it?
It helps an agent start with the project context it needs without repeatedly rediscovering the same information. It also explains how to organise instructions for small projects or larger codebases.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the claude plugin — 7 skills shipped together

Good fit Use it to set up project memory, add commands and coding conventions, create path-specific rules, improve existing instructions, or manage memory during Claude Code sessions.

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

Made for: Claude Code.

Or install claude, the plugin that ships this one along with the rest of its 7 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 claude-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atournayre/claude-marketplace/memory"><img src="https://agentmods.dev/badge/skills/atournayre/claude-marketplace/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,725 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.00079 $0.04725
Opus 5 $0.00039 $0.02363
Sonnet 5 $0.00016 $0.00945
Haiku 4.5 $0.00008 $0.00473

Measured 12d ago against content hash 418badc23195, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-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 12d 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.

claude/skills/memory/SKILL.md · 695 lines

How it starts

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

Memory files are automatically loaded at session startup, consuming tokens from your 200k context window. Every instruction competes with Claude Code's ~50 built-in instructions, leaving ~100-150 effective instruction slots for your customizations.

Two approaches available:

  • CLAUDE.md - Single file, simpler, best for small projects
  • .claude/rules/ - Modular files with optional path-scoping, best for large projects

<quick_start> <bootstrap_new_project> Run /init in Claude Code to auto-generate a CLAUDE.md with project structure.

Or create manually at project root:

# Project Name

## Tech Stack

- [Primary language/framework]
- [Key libraries]

## Commands

- `npm run dev` - Start development
- `npm test` - Run tests
- `npm run build` - Build for production

## Code Conventions

- [2-3 critical conventions]

## Important Context

- [1-2 architectural decisions worth knowing]

</bootstrap_new_project>

<quick_add_memory> Press # during a Claude Code session to quickly add new memory items without editing the file directly. </quick_add_memory>

<edit_memory> Use /memory command to open CLAUDE.md in your system editor. </edit_memory> </quick_start>

<file_hierarchy> Claude Code loads CLAUDE.md files in a specific order. Higher priority files are loaded first and take precedence.

<loading_order>

Priority Location Purpose Scope
1 (Highest) /Library/Application Support/ClaudeCode/CLAUDE.md (macOS) Enterprise policy (managed by IT) All org users
2 ./CLAUDE.md or ./.claude/CLAUDE.md Project memory (git-tracked) Team via git
2 ./.claude/rules/*.md Modular rules (git-tracked) Team via git
3 ~/.claude/CLAUDE.md User preferences (global) All your projects
3 ~/.claude/rules/*.md Personal modular rules (global) All your projects
4 (Lowest) ./CLAUDE.local.md Personal project prefs (auto-gitignored) Just you
</loading_order>

<recursive_loading> Claude recurses UP from current directory to root, loading all CLAUDE.md files found.

Running Claude in foo/bar/ loads:

  1. foo/bar/CLAUDE.md
  2. foo/CLAUDE.md
  3. Root-level files

Claude also discovers CLAUDE.md in SUBTREES when reading files in those directories. </recursive_loading>

<monorepo_strategy> For monorepos, use layered approach:

root/
├── CLAUDE.md              # Universal: tech stack, git workflow
├── apps/
│   ├── web/CLAUDE.md      # Frontend-specific patterns
│   └── api/CLAUDE.md      # Backend-specific patterns
└── packages/
    └── shared/CLAUDE.md   # Shared library conventions

Root file defines WHEN to use patterns; subtree files define HOW. </monorepo_strategy> </file_hierarchy>

<rules_directory> The .claude/rules/ directory provides a modular alternative to monolithic CLAUDE.md files. Instead of one large file, you organize instructions into multiple focused markdown files.

<when_to_use_rules> Use .claude/rules/ when:

  • Project has many distinct concerns (testing, security, API, frontend)
  • Different rules apply to different file types
  • Team members maintain different areas
  • You want to update one concern without touching others

Use CLAUDE.md when:

  • Project is small/simple
  • All rules are universal
  • You prefer a single source of truth </when_to_use_rules>

<rules_structure>

.claude/rules/
├── code-style.md      # Formatting and conventions
├── testing.md         # Test requirements
├── security.md        # Security checklist
├── frontend/
│   ├── react.md       # React-specific patterns
│   └── styles.md      # CSS conventions
└── backend/
    ├── api.md         # API development rules
    └── database.md    # Database conventions

Read the full file on GitHub · 695 lines

Files

What ships with it

5 files 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. 12d ago First seen · 695 lines · 79 tokens per session scan A 418badc23195

Subscribe to this mod's changes

claude-memory is a skill published in the GitHub repository atournayre/claude-marketplace (9 stars, last pushed 6mo ago), licensed MIT. It adds 79 tokens to every session and 4,725 once invoked, about $0.0004 per session on Opus 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

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens