🧹
AutomationHTML

Memory Hygiene

by huytieu

Memory Hygiene is an Automation skill for Claude Code, published by huytieu in COG-second-brain.

930 stars110 forkson huytieu/COG-second-brainAdded 2026/08/22+1% in starsRepository updated 2026/08/18
agent-loopagent-pluginsagent-skillsagenticai-agentsclaude-codeclosed-loopcursorgarry-tangbraingstackknowledge-managementloop-engineeringobsidianpeople-crmproductivitysecond-brainself-evolvingverification-harnessworker-agents
Install in seconds
Install Memory Hygiene
Copy Memory Hygiene into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/huytieu/COG-second-brain/tree/main/skills/memory-hygiene ~/.claude/skills/memory-hygiene

Requires Node.js. Downloads this skill only β€” not the rest of the repository β€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/huytieu/COG-second-brain.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/memory-hygiene/SKILL.md in huytieu/COG-second-brain
Installs to
~/.claude/skills/memory-hygiene
Collection
One of 25 skills cataloged from this repository
Category
Automation β€” 1523 skills

What Memory Hygiene does

Memory Hygiene periodically re-verifies environment-dependent claims in persistent memory and knowledge notes. It stamps last_verified and confidence, and proposes archiving entries that have drifted or gone obsolete.

Memory Hygiene is cataloged under Automation on DirSkills. Memory Hygiene comes from a repository tagged agent-loop, agent-plugins, agent-skills, agentic and ai-agents.

Documentation

README

COG Memory Hygiene Skill

Purpose

Prevent 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.

The 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.

When to Invoke

This is the opening of the README. Read the full README on GitHub.

Commands Memory Hygiene provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /memory-hygiene
  • /loop-engineering

Frequently asked about Memory Hygiene

  • What else does huytieu publish alongside Memory Hygiene?

    Memory Hygiene is one of 25 skills that DirSkills catalogs from huytieu/COG-second-brain, the repository it ships in. Its siblings there include Auto Research, Braindump and Closed-Loop Execute. Each one is a separate skill with its own page in this directory, installs the same way Memory Hygiene does, and is maintained by huytieu in that same repository. The rest of the collection is listed on the huytieu/COG-second-brain page.

  • How does Memory Hygiene compare to other Automation skills?

    Memory Hygiene ranks #901 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Memory Hygiene against them. Open each page to compare what they document and how they install.

More from huytieu/COG-second-brain

Memory Hygiene is one of 25 skills cataloged on DirSkills from huytieu/COG-second-brain.

See all 25 skills β†’
πŸ”Ž
1w ago

Auto Research

Auto Research decomposes a strategic question into parallel research threads and synthesizes findings into actionable analysis. Use it for market, competitive, or technology questions that need evidence from multiple sources.
AI Engineering
930110
🧠
1w ago

Braindump

Braindump captures stream-of-consciousness notes and turns them into structured analysis with themes, questions, decisions, and strategic insights. Use it when you want to get ideas out quickly and sort them by domain.
Writing
930110
πŸ”
1w ago

Closed-Loop Execute

Closed-Loop Execute runs a V-model pipeline from plan to build, component verification, integration verification, and acceptance checks. Use it for tasks that need traceable evidence tied to acceptance criteria and post-condition validation.
Quality
930110
πŸ“Š
1w ago

Comprehensive Analysis

Comprehensive Analysis generates a 7-day cross-source review for weekly reviews, board prep, and strategic planning. Use it when you need a full picture of team, product, and delivery health.
Data
930110
πŸ› οΈ
1w ago

Content Factory

Content Factory scouts recent developments in a user’s field, scores them for trend fit and unique angle, and turns selected items into posts, blog drafts, or short videos in the user’s voice. It also enforces deduplication, volume caps, and publish verification.
Automation
930110
πŸ“
1w ago

Create User Story

Create User Story helps draft and create user stories or issues after checking for duplicates across active trackers like Linear, GitHub Issues, or Jira. Use it when you need a tracked feature request with acceptance criteria.
Automation
930110