memory-hygiene

memory-hygiene is a skill for Claude Code, Codex from Hawkynt/ClaudeCodePortable. It costs 82 tokens per session (750 once invoked), scanned A, original, LGPL-3.0.

A set of rules for handling persistent agent memory such as CLAUDE.md files, notes, and project documents kept across sessions. It guides what to save, how to write it, and how to check remembered facts against the current project.

In plain words
What is it for?
Use it whenever an agent reads or writes persistent notes, memory files, or project documentation intended for future sessions.
Why use it?
It reduces stale or irrelevant memory being treated as current truth. It also helps preserve information that will remain useful later.

Skill for Claude CodeCodex

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

Good fit Use it whenever an agent reads or writes persistent notes, memory files, or project documentation intended for future sessions.

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

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/hawkynt/claudecodeportable/memory-hygiene/github.svg)](https://agentmods.dev/skills/hawkynt/claudecodeportable/memory-hygiene)
Your own site
<a href="https://agentmods.dev/skills/hawkynt/claudecodeportable/memory-hygiene"><img src="https://agentmods.dev/badge/skills/hawkynt/claudecodeportable/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/hawkynt/claudecodeportable/memory-hygiene"><img src="https://agentmods.dev/badge/skills/hawkynt/claudecodeportable/memory-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 750 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.00082 $0.00750
Opus 5 $0.00041 $0.00375
Sonnet 5 $0.00016 $0.00150
Haiku 4.5 $0.00008 $0.00075

Measured 8d ago against content hash e4957b01cc39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

templates/skills/memory-hygiene/SKILL.md · 43 lines

The source is not reproduced here

Licensed LGPL-3.0

The repository is licensed LGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

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. 8d ago First seen · 43 lines · 82 tokens per session scan A e4957b01cc39

Subscribe to this mod's changes

memory-hygiene is a skill published in the GitHub repository Hawkynt/ClaudeCodePortable (2 stars, last pushed 29d ago), licensed LGPL-3.0. It adds 82 tokens to every session and 750 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

mnemosyne

Use when curating WrongStack SAGE memory: run deterministic hygiene and anchor verification first, then review contradictions, drift, and noise; file destructive outcomes as review proposals instead of deleting directly.

WrongStack/WrongStack · 43 tokens

lc-curate-context

Decide which files a task actually needs, record that as a reusable llm-context rule, verify it against the codebase - including the files your selection references but leaves out - and pack it for your own context, a chat, or a sub-agent you dispatch. Load when choosing what code to put in front of a model, packing…

cyberchitta/llm-context.py · 90 tokens

introspect

Check Wolffish's own status, performance, and memory.

thewolffish/wolffish-app · 16 tokens

knowledge

Maintain your own long-term memory — record a new belief, correct a wrong fact, unlearn a lesson, edit your playbook, identity and standing instructions.

thewolffish/wolffish-app · 33 tokens

agent-computer-use

REQUIRED for any task that involves operating a desktop application — opening apps, clicking buttons, typing into fields, pressing keys, scrolling, dragging, reading what's on screen, moving or resizing windows, or verifying state after an action. Always use the agent-cu CLI commands (open, snapshot, click, type, key…

kortix-ai/agent-computer-use · 216 tokens

create-skill

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

warpdotdev/warp · 64 tokens