/cog-second-brain:memory-hygienefrom cog-second-brain
Sweeps persistent memory and durable knowledge notes to re-verify environment-dependent claims against the live environment, stamps entries with last_verified and confidence, and flags drifted entries for archiving.
Ships in cog-second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
/memory-hygieneSweep two stores:
05-knowledge/** files whose claims reference the environment (paths, URLs, IDs, tool names).A partial sweep ("just the reference entries") is fine when asked.
For each entry, split its claims into two buckets:
| Bucket | Examples | Action |
|---|---|---|
| Environment-dependent | file/dir paths, repo names, branch names, channel IDs, board IDs, URLs, API endpoints, cron/routine IDs, CLI names, version numbers, "X lives at Y" | Verify against the live environment |
| Preference / judgment | tone rules, formatting rules, "never do X", people facts, strategy context | No environment check possible; verify only for internal contradiction with newer entries |
ls / test -e. Skills, commands, and agents named in an entry must still exist at the stated path.curl -sI); flag 404 or redirect-to-login.gh repo view, git ls-remote when cheap.unverifiable-cheaply and leave confidence untouched.Never spend more than ~1 minute per entry. This is hygiene, not an investigation. Unverifiable ≠ drifted.
After checking an entry, update its frontmatter metadata: block in place (do not touch body text unless fixing a verified-wrong fact):
metadata:
type: reference
last_verified: 2026-07-10
confidence: high # high = verified now | medium = unverifiable cheaply | low = partially drifted
confidence: high, stamp date.medium), stamp date.confidence: low only if unsure the fix is complete.Scan-until-done over the entry list with a per-entry budget guard (~1 min). The deterministic verifier is the environment itself (test -e, curl, gh) — never the agent's own recollection of whether something "should" still exist. Human escalation: all deletions/archives.
Write one report per sweep to 01-daily/YYYY-MM-DD-memory-hygiene.md, structured around four evolution questions:
verified / unverifiable / drifted / propose-archive counts, plus deltas vs the previous sweep report (the drift trend is the longitudinal signal one-shot checks miss).End the report with a Propose archive section (explicit list, one line of evidence each) and a Waiting on you line if anything needs a decision.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-hygiene, trust-sweep, stale-memory, knowledge-audit, verification
49 skills in this plugin
/auto-researchDeep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/blog-publishWrite and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job