Skills for Real Engineers. Straight from my .agents directory.
memory-hygiene
Agent skill fromhuytieu/COG-second-brain
Periodic trust sweep of persistent memory and durable knowledge notes - re-verifies environment-dependent claims against the live environment, stamps last_verified + confidence, and proposes archiving drifted entries
How to install memory-hygiene
npx skills add huytieu/COG-second-brain# or add only this skill to Claude Code: copy the folder
skills/memory-hygiene/
# into
~/.claude/skills/memory-hygiene/ (all projects)
.claude/skills/memory-hygiene/ (one project)
1# COG Memory Hygiene Skill23## Purpose45Prevent the **stale-but-confident** failure mode: a memory or knowledge note that was correct when written ("the webhook lives at X", "the board ID is Y") silently drifts after the environment changes, yet still ranks high at recall and gets acted on.67The system move (adapted from "From Model Scaling to System Scaling: Scaling the Harness in Agentic AI", Gu, UC Berkeley, arXiv:2605.26112): **make trust a runtime decision, not a property of the stored item**. Re-verify against the live environment, and keep per-entry `last_verified` and `confidence` as first-class fields so future recalls can weigh trust.89## When to Invoke1011- `/memory-hygiene`12- "Audit my memories" / "check for stale memories"13- After a memory misfires (a recalled fact turned out wrong)14- Default cadence: monthly1516## Scope1718Sweep two stores:19201. **Agent memory** — wherever your agent keeps persistent memory files (e.g. Claude Code's auto-memory directory). Sweep every entry except the index itself.212. **Durable knowledge notes** — `05-knowledge/**` files whose claims reference the environment (paths, URLs, IDs, tool names).2223A partial sweep ("just the reference entries") is fine when asked.2425## Claim Classification2627For each entry, split its claims into two buckets:2829| Bucket | Examples | Action |30|---|---|---|31…
Excerpt shown under the repository's MIT license.
More skills in COG-second-brain
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
