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.
npx agentmods add skills/shandar/memory-map/memory-prunenpx skills add shandar/memory-map --skill memory-prunegit clone --depth 1 https://github.com/shandar/memory-mapWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00147 | $0.01203 |
| Opus 5 | $0.00073 | $0.00602 |
| Sonnet 5 | $0.00029 | $0.00241 |
| Haiku 4.5 | $0.00015 | $0.00120 |
Grade A, and why
memory-prune 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory Prune
Identify and remove stale, outdated, or redundant memory entries to keep the store clean and decision-useful over time.
Works in claude.ai (uses memory_user_edits) and Claude Code (writes
~/.claude/memory.md). Detected automatically.
Step 0 — Detect environment
| Signal | Environment | Load |
|---|---|---|
memory_user_edits tool is available |
claude.ai | references/claude-ai.md |
| Not available / running in terminal | Claude Code | references/claude-code.md |
Core Protocol
Step 1 — Read all memory
Fetch every entry with the environment-appropriate read command.
Step 2 — Audit for cleanup candidates
Categorise each entry into:
Stale — references past events or dates that have passed:
- Events with past dates that are not retrospectively meaningful
- "Upcoming" tags on things that have shipped
- Old "CURRENT STATE SNAPSHOT" entries that have been superseded but not replaced
Redundant — covered by another entry:
- Two entries with overlapping content (one is more current)
- Sub-entries that have been folded into a parent entry
- Duplicate category labels
Outdated — factually wrong now:
- Old contact details, links that no longer work
- Specs that have been revised
- Cohort numbers that have changed
Mergeable — could be consolidated to save space:
- Two related entries that are both under-character-limit could become one
- Multiple small notes about the same project
Step 3 — Propose changes (do not apply yet)
Show the user a structured proposal:
MEMORY PRUNE — proposed changes
REMOVE (stale)
→ Entry 12: "P2P landing page draft v1" (superseded by v2 in entry 13)
→ Entry 18: "TIU registration link" (event closed)
REMOVE (redundant)
→ Entry 7: "Workshop tools" (covered by entry 14 — frameworks)
CONSOLIDATE
→ Entries 9 + 10 → single "V2V EDITIONS" entry (saves 1 slot)
KEEP (just confirming these are still current)
→ Entry 1-6: PWP and operating preferences
→ Entry 19: Current state snapshot
Apply these changes? [yes / modify / cancel]
What ships with it
2 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.
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.
- 2d ago First seen · 148 lines · 147 tokens per session scan A b277c4160f85
memory-prune is a skill published in the GitHub repository shandar/memory-map (2 stars, last pushed 4mo ago), licensed MIT. It adds 147 tokens to every session and 1,203 once invoked, about $0.0007 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.
Other skills, from other repositories
join-meeting
AgentCall (agentcall.dev) — Join a video meeting (Google Meet, Teams, Zoom) as an AI bot with voice and visual presence. Supports audio-only mode with voice intelligence (barge-in, interruptions), text-to-speech mode, and webpage modes for custom UI. Use when asked to join a call, attend a meeting, or participate in a…
hwp
Use this skill whenever the user wants to read, create, or edit Korean Hangul Word Processor documents (.hwp or .hwpx files). Triggers include any mention of 'hwp', 'hwpx', '한글 문서', '아래한글', '한컴오피스', or uploading/attaching .hwp/.hwpx files. Also use when extracting text from Korean reports or producing Korean-formatted…
quiz-me
Quiz the user on root cause and intended fix BEFORE writing any non-trivial code, then verify comprehension of every change after. Use when the user asks for a bug fix, refactor, or feature and wants to stay technically sharp instead of vibe-coding. Also use when the user says "quiz me", "don't let me vibe code", or…
website-deploy-builder
Plan what to build on Website Deploy (simple-host.app). Helps a user decide whether their idea fits the static + light-backend model, maps it to concrete patterns (shared JSON state with atomic ops, append-only collections, private/password-locked pages on a custom domain, drop-in comments/feedback widgets…
connect-domain
Connect a user's own custom domain (subdomain e.g. recipes.brand.com via CNAME, or apex e.g. brand.com via A record) to a site already deployed on simple-host. Use when a user wants their site served from their own domain with automatic HTTPS, or wants a private/password-protected site (privacy is offered only on a…
name-cop
A naming process, not a name generator. Applies the SMILE and SCRATCH frameworks created by Alexandra Watkins in her book Hello, My Name Is Awesome. Builds a brand brief, generates candidates across several angles, kills any that trips a SCRATCH deal breaker, and scores the survivors on SMILE. Use when naming a…