memory-placement

memory-placement is a skill for Claude Code from motlin/claude-code-plugins. It costs 30 tokens per session (316 once invoked), scanned A, original, Apache-2.0.

A guide for deciding whether a lesson belongs in saved memory or in a project instruction file. It explains where to put corrections about plugins, projects, and user-wide rules.

In plain words
What is it for?
It is for reviewing a correction or preference before saving it. It helps choose between memory and instruction files and keep the resulting rule small.
Why use it?
It helps prevent memories from duplicating rules that already belong in files such as CLAUDE.md or a plugin's source. It also discourages saving one-time decisions and unnecessary detail.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Part of the orchestration plugin — 5 skills shipped together

Good fit It is for reviewing a correction or preference before saving it. It helps choose between memory and instruction files and keep the resulting rule small.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/memory-placement"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/memory-placement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 316 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.00030 $0.00316
Opus 5.5 $0.00012 $0.00126
Sonnet 5.5 $0.00006 $0.00063
Haiku 4.5 $0.00003 $0.00032

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

Security

Grade A, and why

memory-placement 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 11d 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/orchestration/skills/memory-placement/SKILL.md · 31 lines

What it actually says

Memory

Skills, commands, agents, and CLAUDE.md files are markdown too. When a lesson is about how one of them behaves, edit that file. Don't write a memory for it.

Find the owner

Before writing a memory, ask which instructions governed the behavior that went wrong:

  • A skill, command, or agent from a plugin: edit its source in the plugin's git repository.
  • A project's CLAUDE.md or AGENTS.md: edit that file.
  • The user's global ~/.claude/CLAUDE.md: edit it, or propose the edit when it is outside the current task.

Keep the fix lean

Add only the rule the correction showed. Leave out lists of examples, destinations, or past decisions that a later session can infer from the files on disk.

  • Skip decisions that happened once, and decisions the session got right on its first guess. A later session will guess right too.
  • Record a convention only when it breaks the obvious default, such as a naming scheme that differs from the rest of the folder.
  • Don't add rationale or "how to apply" sections, and don't expand existing ones to cover new rules.

What still belongs in memory

Write a memory only for a fact that no instruction file owns.

A memory that patches a gap in a skill should be deleted once the skill is fixed.

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. 11d ago First seen · 31 lines · 30 tokens per session scan A 7cca469e0103

Subscribe to this mod's changes

memory-placement is a skill published in the GitHub repository motlin/claude-code-plugins (20 stars, last pushed 2d ago), licensed Apache-2.0. It adds 30 tokens to every session and 316 once invoked, about $0.0001 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-11-24.

Related

memory-placement compared with skills from other repositories

memory-placement next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-placementmotlin/claude-code-pluginsSkill202d agoApache-2.0A30Claude Code
knowledge-ingestopenclaw/openclawSkill396ktodayMITA80Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70ktodayApache-2.0A217Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k16d agoMITA184Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
memoryopensquilla/opensquillaSkill7.2k8d agoApache-2.0A44Claude Code, Codex