memory-hygiene

memory-hygiene is a skill for Claude Code, Codex from AeonDave/malskill. It costs 171 tokens per session (1,927 once invoked), scanned A, original, no licence file.

A set of rules for managing an agent's persistent memory across sessions. It separates temporary session notes from durable memory and addresses outdated, conflicting, or sensitive information.

In plain words
What is it for?
Deciding what to save, where to save it, when to retrieve it, and how to handle contradictions or aging memory.
Why use it?
It reduces the risk that an agent will retain incorrect, stale, overly broad, or secret information and use it later.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Deciding what to save, where to save it, when to retrieve it, and how to handle contradictions or aging memory.

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

Made for: Claude Code, Codex.

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-hygiene

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aeondave/malskill/memory-hygiene"><img src="https://agentmods.dev/badge/skills/aeondave/malskill/memory-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,927 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 unknown 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.00171 $0.01927
Opus 5 $0.00086 $0.00963
Sonnet 5 $0.00034 $0.00385
Haiku 4.5 $0.00017 $0.00193

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

Security

Grade A, and why

memory-hygiene 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 4d 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.

behaviours/memory-hygiene/SKILL.md · 103 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 4d ago First seen · 103 lines · 171 tokens per session scan A ec2025f96ddd

Subscribe to this mod's changes

memory-hygiene is a skill published in the GitHub repository AeonDave/malskill (18 stars, last pushed today), with no licence file. It adds 171 tokens to every session and 1,927 once invoked, about $0.0009 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-09-05.

Related

Other skills, from other repositories

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

addyosmani/agent-skills · 43 tokens

recall-memory

Recall relevant long-term memories on demand. Given a topic or question, judges relevance from pre-loaded metadata, loads only relevant files, and returns a concise summary to the main agent.

clacky-ai/openclacky · 40 tokens

catchup

Rebuild the human's lost context on a project from live state, in plain language: what needs them, what changed, what new words mean. Use when the human returns after a gap, says they can't follow the project anymore, asks what happened or what a term means, or before deciding what to do next when their mental model…

LilMGenius/paperthin · 84 tokens

immune

Hybrid adaptive memory: Cheatsheet (positive patterns pre-generation) and Immune (negative patterns post-generation) with Hot/Cold tiered auto-learning. Triggers on: "scan for errors", "immune scan", "check output quality", "antibody scan". NOT for PR review (use pr-review) or repo audits (use repo-sentinel).

Mathews-Tom/armory · 73 tokens

unpacking-protected-binaries

Unpack and dump protected executables — UPX and commodity packers, custom crypters, commercial protectors like Themida and VMProtect, and .NET packers — by finding the original entry point, dumping from memory, and rebuilding the import table with Scylla, pe-sieve, or x64dbg. Use when a binary has high entropy, few…

trilwu/secskills · 96 tokens

qmd-knowledge

Manage project knowledge with qmd — captures learnings, decisions, and conventions.

jellydn/my-ai-tools · 20 tokens