/skills:second-brain-fix [path-to-audit-findings.md]from Cole's AI Skills
Batch-fixes stale facts and converts note locations to state/event schema using findings from a second-brain audit. Run after second-brain-audit to process remaining issues.
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.
The audit found what is wrong and fixed one location so the shape was visible. This works through the rest, in batches, from the findings the audit left behind.
The findings file this run was invoked with is $audit-results, and it is optional:
/second-brain-fix nothing passed
/second-brain-fix ~/notes a folder to look in
/second-brain-fix ~/notes/second-brain-audit.md the findings file itself
$audit-results is a path to one markdown file of findings. /second-brain-audit names
what it writes second-brain-audit.md, so that is usually what you will be handed, but the
name is not the contract. Any markdown file holding the findings works, and whatever the user
points at is the one to use.
Resolve it before anything else:
| What you were given | Do |
|---|---|
| a path to a file | that is the findings. The notes folder is its parent, unless the file names a different one |
| a path to a folder | look inside it for the findings, second-brain-audit.md first |
nothing, so the line above still reads \$audit-results | look in the current folder, then one level down |
| a path that does not exist | say so and stop. Do not fall back to searching, or a typo silently works on the wrong folder |
| more than one candidate when searching | list them with their newest ## Log dates and ask which |
| no candidate when searching | stop. Say to run /second-brain-audit first, since there is nothing to work from |
Never invent a queue from scratch when there are no findings. Auditing and fixing in one pass is how a bulk write happens against findings nobody read.
The findings are the input. $audit-results is both the queue and the record: one keyed
line per location in ## Current State, one dated line per run in ## Log. Everything below
is driven by that file, and a run that does not update it is a run nobody can pick up from.
Never start writing without settling this, and never resolve it by copying the notes folder somewhere else. A duplicate folder of notes is a second answer to every question, which is the exact problem this skill exists to remove.
First, check what is already there. Run git rev-parse --show-toplevel in the notes folder.
Already in git, either its own repo or tracked by a parent one. Commit or stash anything
outstanding, then git checkout -b second-brain-fix, and commit after every batch. Say which
repo you are in, because a vault nested inside another project is common and the user should
know what the branch covers.
Not in git. Ask, in these words or close to them:
Your notes are not in git, so there is no way to undo a batch. Want me to run
git inithere first? It stays on your machine, nothing gets pushed anywhere, and every batch becomes a checkpoint you can roll back to.
If they agree: git init, git add -A, one baseline commit, then the branch. Never add a
remote and never push.
If they decline, ask once more and take the answer:
Understood. To be clear, this rewrites many files at once and there will be no way to undo it. Go ahead anyway?
On a clear yes, proceed and do not raise it again. On silence or anything ambiguous, stop. An unanswered question is not permission.
| Pile | What the finding contains | What to do |
|---|---|---|
| Contradicted | the stale claim AND the newer evidence | fix in batch, no questions |
| Unsupported | the claim, and nothing backing it up | never guess. One batch of questions for the user |
| Locations not yet converted | a page that has no ## Current State / ## Log | convert in batch, verbatim |
The middle row is where bulk fixing goes wrong. An unsupported claim has no answer in the notes by definition, so an agent told to "correct these" will invent a value or quietly delete the line. Both are worse than the stale claim.
Ask how large the notes are, or count the markdown files, and scale the ambition:
| Size | Do this |
|---|---|
| Under ~50 files | everything in one session. Two or three batches |
| ~50 to 500 | the always-loaded surface first, then one folder per batch, committing between |
| 500+ | the always-loaded surface, plus only the pages with a trail (several entries about one subject over time). Everything else stays as it is, permanently |
Bigger notes do not mean convert more. They mean convert a smaller fraction and lean harder on the write path, because at that size nobody is ever going to hand-tend the archive.
Read $audit-results. Take the ## Current State entries that are not marked as fixed, plus
any pile the audit reported but did not enumerate. Group them into batches of roughly 5 to 15
locations, keeping a folder together where you can.
Show the user the batch list and the order before writing anything. Ordering is always:
For each finding, the newer evidence is already named. So:
## Current State.## Log.That last one matters more than it looks. A date on a current value is a claim that somebody checked the value on that day. Stamping today's date on a line you corrected from a note written in June makes a June fact look verified this morning.
Work the whole batch, then show one summary: how many lines replaced, in which files, and the three or four that were least obvious. Do not show a diff per line, and do not ask per line.
Give each page the two sections. Adapt to the shape the audit found:
## 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-06-15) Added reply drafting, retainer to $3,200/mo
One big file gets a ## Current State block at the top and everything else beneath it, no new
files. Daily notes get one new file of current values and the journal untouched. Notes that are
not markdown do not get converted at all.
This is sorting, not rewriting. Every existing line lands in one of the two sections, verbatim, at most with a date prepended. Improving the prose is how information disappears without anyone noticing, and in a batch nobody is reading closely enough to catch it.
When a bullet has no date and none can be recovered, do not invent one and do not quietly
leave the entry bare. Take the date from the evidence if the bullet cites any, otherwise write
(date unknown) in the date's place. A bare entry reads as an oversight; (date unknown) reads
as the gap it is, and it survives into the next audit as something to ask about.
Two kinds of page to leave alone, and say so rather than converting them:
## Current State and the
oldest inside it, which is the exact failure being removed, rebuilt one level up.Collect them all and ask once, as a numbered list. Not one at a time, and never silently.
For each, three outcomes:
## Current State with the date the user gives, and say plainly that
the evidence was missing, not just misfiled.## Log.If the user does not answer, leave every one of them exactly as it is. An unanswered question is not permission.
A question in your summary reaches one person once. The line stays in the notes and gets read by every future session, so the warning has to be on the line, not only in your report.
Whenever you leave a line standing because only the owner can resolve it, append the reason to that line in place, keeping the original text intact ahead of it:
- **Sam Iwu**: accepted a full-time offer, starting October 2026. UNVERIFIED (fix run
2026-09-18): no date and no source anywhere; entities/sam-iwu.md says he is still a
contractor. Confirm or delete.
- **Ferro retainer renewal** (2026-09-12): renewed at $6,500/mo through year-end. CONFLICT
(fix run 2026-09-18): the 2026-09-10 call set it to $12,000/mo. Nothing sources this line.
Ask before quoting either number.
This matters most for a stale line that is newer than the line you just corrected. If one key says $12,000 dated the 10th and another says $6,500 dated the 12th, an agent reading that page takes the newer one and answers $6,500, so correcting the first key changed nothing unless the second one carries the warning. Check for that case explicitly after every batch: for each key you fixed, look for another key on the same page about the same subject with a later date.
Never delete the line to resolve the conflict, and never pick a value yourself. Annotating is the whole move.
After each batch, edit $audit-results:
## Current State line with its new status. One line per
location, always. Never a second line.## Log: the date, which batch, how many lines replaced, how many
locations converted, and how many unsupported claims are still unanswered.Then commit the batch. The findings and the notes move together, so an interrupted run is resumable by reading one file.
When the batches are done, run /second-brain-audit again and compare the contradicted count
to the last ## Log line. That number is the only evidence any of this worked.
If the count did not move much, say so and say why rather than presenting the conversion as a result. Restructuring cannot reach a fact nobody ever wrote down, and when the count stays flat that is usually what happened. The fix then is the write path, not another batch.
Flag one thing if the findings file has been renamed: audit.py skips files whose name starts
with second-brain-audit, so a renamed one gets read as evidence on the next scan, and it
quotes stale claims verbatim. Either keep that name or keep the file outside the notes folder.
## Log entry. Old and superseded is the point of that section.Check whether CLAUDE.md (or AGENTS.md, or the system prompt) carries the state/event rule
from the audit's phase 7. If it does not, add it before starting, and say why: fixing four
hundred lines under a write path that can only append buys about a month.
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