/skills:second-brain-audit [path-to-notes-folder]from Cole's AI Skills
Audits notes, wikis, or agent memory for stale facts, distinguishing state (replace) from events (append), then fixes the worst outdated claim.
Ships in Cole's AI Skills. 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.
Notes rot in a specific way. Nothing is corrupted and nothing goes missing: a fact simply stops being true, the note keeps saying it, and nothing raises a hand.
The cause is almost always the same. The write path can only append. New information arrives and becomes a new line under the old line, which is correct for some facts and ruinous for others.
Every stored fact is one of two kinds.
| Meaning | Correct update | |
|---|---|---|
| State | one current value, and it changes | replace it |
| Event | a timestamped thing that happened | append it |
A price, a status, an owner, a deadline: state. A payment, a signature, a decision, a lesson learned: event.
The update rules are opposites. Replacing an event destroys history. Appending a state creates two answers to one question with nothing marking which is current, and the stale copy usually sits higher in the file, so it gets read first.
Structure carries this rule, not an instruction. Asking a model, or a person, to remember to update the old entry fails quietly and constantly. Give the page two sections and the rule follows from where a fact lands.
Do not assume a wiki, a vault, or pages. Most people have none of those. Look at what actually exists before anything else, because it changes both what the audit can see and what the fix should be.
| Shape | Looks like | Where state should live |
|---|---|---|
| Page per subject | clients/acme.md, projects/x.md | two sections on each page |
| One big file | a single notes.md or CLAUDE.md | a ## Current State block at the top |
| Daily notes only | 2026-06-01.md, and nothing else | nothing to convert. A state layer is missing entirely |
| Not markdown | Notion, Apple Notes, a chat assistant's memory | the idea still applies; the tooling does not |
The notes folder this run was invoked with is $notes, and it is optional
(/second-brain-audit ~/notes). Use it when it is a real path. When nothing was passed, so the
line above still reads \$notes, use the working directory and confirm it with the user. When it
is a path that does not exist, say so and stop rather than auditing the wrong folder.
Then establish two things:
CLAUDE.md, a MEMORY.md, a system
prompt file, whatever loads automatically. This matters more than anything else:
a stale fact in an archive is harmless, the same fact in the always-loaded file is
the bug. If the user does not know, say so and run without it.Daily-notes-only is the case most worth naming out loud. Dated notes are an event log, and events are supposed to accumulate; nothing about them is broken. What is missing is any place that says what is true now. Telling someone to restructure their journal would be actively wrong.
This is the part that works on every second brain, in any tool, in any domain, with or without the script. Run it always, even when the scan found plenty.
Whatever the agent reads on every session is small: that is what makes it always loadable. So it can be read in full and checked claim by claim.
Ten to thirty claims is normal, and it is a few minutes of reading. A research vault with no money in it, a personal wiki, a Notion workspace: all auditable this way, and none of them by the script.
Report the contradicted pile first, then the unsupported pile. Both are findings.
An accelerator, not the audit. It applies to markdown folders where facts carry monetary values, and it finds cross-file disagreements far faster than reading can. Skip it otherwise; phase 2 already did the work.
python <skill>/scripts/audit.py <notes-dir> \
--always-loaded MEMORY.md --always-loaded CLAUDE.md \
--subject rate --subject <one word per subject that matters>
Pass --subject for every subject you care about, one word each (rate, not
"Hourly rate"), and --json for structured output. On a small folder the script
attributes values by page name and bold key only, so without --subject a real
cross-file contradiction can come back as a clean zero with no warning. The script
counts; phase 2 is the audit. It only reads; it never writes.
A zero is not a clean bill of health. Values are the only thing it can compare without guessing, so notes with no money in them are largely invisible to it, and so is a status that changed while the amount did not ("$32,300 due" versus "$32,300 on hold" is the same number). Its "0 touch a file your agent loads" line counts money only; the always-loaded file is audited in phase 2, never by this count. It prints a COVERAGE WARNING when it knows it was blind. Read that warning out rather than reporting "no problems found".
Why a script at all: the count has to be the same twice. A model asked to tally 600 bullets returns a confident number and a different one tomorrow, which is the class of failure this skill exists to fix. The script counts. The agent judges.
Open a few flagged pages and look for what no regex will catch:
git blame says
about a freshly dated line before trusting the date; a date is a claim that the
value was verified, not a stamp that the line was touched.Lead with the single most damaging finding, not a summary of the tool's output:
Three different answers for what Acme pays, and the oldest one is in the file the agent reads every session.
Where an agent already runs over these notes, demonstrate it. Ask the question the notes should answer and read the reply out. Watching an assistant confidently return a number that stopped being true in March lands harder than any report. Point out the common case where it is diligent and still wrong: it checks a page, warns that another file looks stale, and still misses the true value because that value was never promoted anywhere durable.
On a small folder a capable agent will read everything and find the truth. Confine the demonstration to what the agent is actually handed every session (paste the always-loaded file alone, or run with read tools off) and ask again. The gap between the two answers is the finding.
Never bulk-convert, and never convert a page the user did not agree to. Fix the single worst location, which depends on the shape found in phase 1:
MEMORY.md, a pinned summary) → it
is state, whatever it calls itself. Put a dated ## Current State block at the
TOP so it survives any truncation, key each line on the deal, and move superseded
lines verbatim to a ## Log at the bottom. Leave the to-do list in between.## Current State block at the top and leave everything
else beneath it. No new files, no folder structure. If the file already has a block
that claims to be current ("Current status", "Now", "Active"), its lines move into
the new block or into the Log by rule 2. Two sections claiming now is the bug you
are removing, so never leave the old block in place.The shape below is the page-per-subject version; adapt the same two ideas to the others. What has to be true in every case is only this: one place says what is true now, and it gets replaced rather than added to.
## Current State
<!-- One entry per subject. Dated. REPLACED on update, never appended to. -->
- **Retainer** (2026-08-01): $3,200/mo, renewed through February 2027
- **Main contact** (2026-05-02): Curtis Ilo
## Log
<!-- Append-only. Never edit or delete an entry. -->
- (2026-04-30) Delivered and paid, $21,000
- (2026-05-02) Retainer started at $2,800/mo
- (2026-06-15) Added reply drafting, retainer to $3,200/mo
Conversion rules, in order of importance:
Re-ask the earlier question afterwards so the correct answer is visible. Same notes, same agent, one page restructured. Then record what is still outstanding, which is phase 8, or the next run starts from nothing.
This phase decides whether the audit was worth anything. Converting pages fixes today; changing how facts get written is what stops the recurrence.
Add to whatever file instructs the agent (CLAUDE.md, AGENTS.md, a system prompt):
## Writing to these notes
Every fact is state or event.
- **State** (one current value that changes: price, status, owner, date):
find the matching line in `## Current State` and REPLACE it. Always date it.
Never add a second line for the same subject.
- **Event** (a thing that happened): append to `## Log`. Never edit or delete
an existing Log entry.
If unsure, append to the Log and say so. A missing state update is recoverable;
a rewritten history is not.
Then state the honest part: this instruction gets followed most of the time, not all of the time. Anything that must happen every time needs a mechanism. Two cheap ones worth more than the instruction:
Everything above this point exists only in a conversation. Close the window and the audit is gone: the piles, the claims, the locations you did not reach. That is the same failure this whole skill is about, committed by the skill itself.
So write it down, in the shape being taught. One file in the notes folder, called
second-brain-audit.md:
# Second brain audit
## Current State
<!-- One entry per location. REPLACED when that location changes. -->
- **MEMORY.md** (2026-09-18): the always-loaded file. 6 contradicted, 3 unsupported.
FIXED this run, `## Current State` block added at the top, 9 superseded lines to `## Log`.
- **clients/acme.md** (2026-09-18): 4 contradicted, all about the retainer. NEXT.
- **notes/tools.md** (2026-09-18): 2 unsupported, no trail, low value. Leave it.
- **write path** (2026-09-18): rule added to `CLAUDE.md`.
## Log
<!-- Append-only. One entry per audit run. -->
- (2026-09-18) First run. 24 claims in the always-loaded file: 13 confirmed,
6 contradicted, 5 unsupported. Fixed MEMORY.md. Asked "what do we charge Acme?"
before and after, and got $4,000 then $9,500.
Four rules for that file:
/second-brain-fix works the queue in batches, and a
later audit reads the Log to see whether the count moved. Whatever is marked NEXT is
where the fixing starts, unless a later run turns up something worse.audit.py skips any file whose name starts with second-brain-audit, so the report
never comes back as evidence in a later scan.
Say this out loud at the end, because it is the question every user has and the answer is not "run this again":
The audit fixed one location so you could see the shape. To work through the rest, run
/second-brain-fix, or/second-brain-fix <path to this file>from anywhere else. It reads this same file, batches the findings, and updates the ledger as it goes.
Fixing one location at a time is correct for this skill and useless as a plan. Nobody runs a seven-phase audit forty times. The batch job is a separate skill because it has a different contract: this one never bulk-converts and gates every write behind a diff, that one writes many files at once and requires a branch or a copy before it starts.
There is no version of this where every page gets converted, and chasing that is how people quit in week two. The finish line is narrow: nothing contradicted in what the agent loads every session. An archive full of old pages is not rot, it is history. Convert a deeper page only when it has a trail (several entries about one subject over time) or when it keeps producing wrong answers.
Restructuring alone often moves the number less than people expect. When it does not move, the reason is usually that the correct fact was never captured, and no amount of reorganizing reaches a fact nobody wrote down. Say that when it applies. The audit's real value is identifying which of the two problems is in play.
scripts/audit.py: run it for the deterministic scan; --help lists all flags,
--json returns structured findings. Never read it into context; only its output.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub coleam00/skills --plugin skills40 skills in this plugin
/ablate-ai-layerMeasure whether a repository's AI instructions still earn their place, by running the same real task many times with the layer intact and with it stripped, then grading every rule against what actually changed. Runs both arms itself in throwaway git worktrees and never touches the working tree. Agent-agnostic across CLAUDE.md, AGENTS.md, .claude/, .agents/, .cursor/rules, .clinerules, .windsurfrules and copilot-instructions. Use when the user wants to prune, audit, clean up, shrink or "delete" their CLAUDE.md, AGENTS.md, cursor rules, agent instructions or AI layer; when they ask whether their rules are still needed, whether their context is bloated, or what to cut; or when they mention ablating, ablation, or testing their agent without its instructions./agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools./agent-config-auditRead-only audit of everything a repository's coding-agent config can run on its own - Claude Code hooks, status lines and helper commands, MCP servers, Codex and Cursor hooks, Gemini CLI settings, VS Code folder-open tasks, plugin marketplaces, permission allow rules, MCP auto-approval, and skills that run inline shell - plus the project's dependencies (missing lockfiles, known-poisoned releases, code-running .pth files), secrets saved in settings.local.json or pasted into stored Claude Code and Codex conversations, and known-bad editor extensions. Explains each risky entry in plain words and how to fix it, and never prints secret values. Use when the user says "audit my agent config", "what runs when I open this repo", "check my repos for malicious hooks", "is this repo safe to open", before trusting or opening a cloned repo, after pulling changes to .claude, .mcp.json, .codex, .cursor or .vscode, or after a supply-chain incident./ast-grepGuide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics./build-dark-factoryTake a PRD and build a dark factory around it - a repository that takes work in as an issue and ships validated code out with nobody at the keyboard - one component at a time, into the user's actual repo. Covers the five components in construction order - the guidance layer, the validation harness, the workflow-driven repo, deployment, and the trigger that makes it autonomous - and is agnostic about which coding agent runs underneath (Claude Code, Codex, Archon, the Agent SDK, Cline, Goose, Amp, Pi). It encodes the AI coding process the user already runs rather than replacing it. Requires a PRD as input and deliberately does not write one. Use when the user wants to build a dark factory, an autonomous or self-driving repository, a software factory, an agent that ships its own code, an unattended or overnight coding loop, or asks how to get to level 4 or level 5 of AI coding autonomy; and when they mention dark factory, lights-out coding, autonomous PRs, or a repo that maintains itself./build-signal-engineBuild a personal signal engine from scratch - a system that reads every source someone cares about each day (changelogs and release notes, communities, feeds, videos, papers), makes a quick decision on every item, lets an LLM read only what survives, and delivers one short digest. Interviews the user first to pin down what they need to keep up with, the sources where it actually shows up, and the one question that decides what is worth their time, then builds it one stage at a time into their own repo, proving each stage on real data. Agnostic about the coding agent, the decision model and where the data comes from. Use when the user wants to keep up with AI or their field without doomscrolling, build an AI news digest, a daily briefing, a content engine, a research or competitor monitor, a changelog watcher, or "something that reads everything and tells me what matters"; and when they mention signal vs noise, an information diet, or falling behind.Other plugins' skills for the same job