second-brain-lint
Skill1.5k starsChanged 3 months agoMITView on GitHub
Audit a second-brain vault for structural problems and repair them: broken wikilinks, orphan pages, empty stubs, frontmatter that violates the schema, near-duplicate pages, and stale index entries. Use this skill whenever the user asks to lint, clean, audit or check the health of their vault, says pages feel messy or links are broken, after a large bulk import, or when a scheduled maintenance run fires. Do NOT use for ingesting new sources, for answering questions from the vault, or for rewriting page content that is structurally fine but reads badly.
2 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- PieroSierra/SecondBraintheir own version, first seen Sep 24, 2026
- NicholasSpisak/second-braintheir own version, first seen Apr 7, 2026
Who's talking about undefined-ui/second-brain-os
- cbartens/bkit“Review and adopt second-brain-os patterns”GitHub · Nov 4, 2026
- doobidoo/mcp-memory-service“dashboard graph: click-to-focus, filters that fade instead of re-layout, edge-type filter, jump-to-node search”GitHub · Nov 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.undefined-ui.second-brain-os: 0-unstable-2026-11-02 → 0-unstable-2026-11-03”GitHub · Nov 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.undefined-ui.second-brain-os: c9589f7 → df8d278”GitHub · Nov 2, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.undefined-ui.second-brain-os: 0-unstable-2026-10-14 → 0-unstable-2026-11-02”GitHub · Nov 2, 2026
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Nov 4, 2026Review and adopt second-brain-os patterns — cbartens/bkit0 reactions · 1 comment
- Nov 4, 2026dashboard graph: click-to-focus, filters that fade instead of re-layout, edge-type filter, jump-to-node search — doobidoo/mcp-memory-service0 reactions · 4 comments
- Nov 4, 2026claude-code-marketplaces.github.undefined-ui.second-brain-os: 0-unstable-2026-11-02 → 0-unstable-2026-11-03 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.undefined-ui.second-brain-os: c9589f7 → df8d278 — sudosubin/agents.nix0 reactions
- Nov 2, 2026claude-code-marketplaces.github.undefined-ui.second-brain-os: 0-unstable-2026-10-14 → 0-unstable-2026-11-02 — sudosubin/agents.nix0 reactions
8 more on GitHub
- Oct 29, 2026claude-code-plugins.github.undefined-ui.second-brain-os: 0-unstable-2026-10-14 → 0-unstable-2026-10-07 — sudosubin/agents.nix0 reactions
- Oct 29, 2026claude-code-plugins.github.undefined-ui.second-brain-os: init at 0-unstable-2026-10-14 — sudosubin/agents.nix0 reactions
- Oct 28, 2026claude-code-marketplaces.github.undefined-ui.second-brain-os: init at 0-unstable-2026-10-14 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.undefined-ui.second-brain-os: init at 0-unstable-2026-09-21 — sudosubin/agents.nix0 reactions
- Sep 29, 2026[Study] Explain an affair: decision history, evidence changes and explicit gaps — bacoco/alfred-chatgpt0 reactions
- Sep 27, 2026Add fork notice (upstream license and ownership; no upstream changes) — bdickie9/second-brain-os0 reactions
- Sep 25, 2026undefined-ui/second-brain-os: An AI second brain that maintains itself — hanzhad/squelch-news-engine0 reactions
- Aug 3, 2026further reading — vib-training-conferences/agentic-coding-with-github-copilot0 reactions
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- NicholasSpisak/second-brain★ 718same name
- PieroSierra/SecondBrain★ 164same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- vault-template/CLAUDE.mdCLAUDE.md
- second-brain-backfillSkill
- second-brain-changed-my-mindSkill
- second-brain-chat-importSkill
- second-brain-graphSkill
- second-brain-ingestSkill
- second-brain-mergeSkill
- second-brain-metricsSkill
- second-brain-privacySkill
- second-brain-projectSkill
- second-brain-publishSkill
- second-brain-querySkill
- second-brain-quizSkill
- second-brain-renameSkill
- second-brain-reportSkill
- second-brain-reviewSkill
- second-brain-transcriptSkill
- second-brain-writeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 67
Do not run a full lint after every ingest.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lint the vault
Structural rot is silent. Nothing errors, nothing crashes, the vault just slowly stops answering questions well because a third of its pages are unreachable. Linting is the only thing that catches it before the owner does.
Core rule
Report before repairing. Fix the mechanical problems automatically, but never delete or merge a page without listing it first and getting a yes, because the owner may have written it by hand.
Workflow
- Inventory. Count pages by type. Build the link graph by parsing every
[[wikilink]]. - Broken links. Links pointing at pages that do not exist. Distinguish
two cases: a typo or rename, which you fix, and a genuine gap, which goes
into
index.mdunder Gaps. - Orphans. Pages with no inbound links. For each, either find where it should be linked from and add the link, or flag it as a candidate for deletion.
- Stubs. Pages under roughly 40 words with no links. Usually a failed
ingest. Flag for re-ingest from the original source in
raw/. - Schema. Missing or malformed frontmatter, wrong
type, missing dates, tags outside the existing vocabulary. - Near-duplicates. Pages with very similar titles or aliases. Propose merges; do not perform them unsolicited.
- Index drift. Pages missing from
index.md, index entries pointing nowhere. - Repair, then append the run to
log.md.
Output format
Vault: <n> pages (<n> sources, <n> concepts, <n> entities, <n> synthesis)
Link graph: <n> links, average <n> per page, <n> orphans
Fixed automatically:
- <list>
Needs a decision:
- <list, each with the recommended action>
Health: orphan rate <n>%, broken link rate <n>%, stub rate <n>%Calibration
An aggressive linter that merges pages on its own judgement destroys work. A timid one that only reports produces a list nobody acts on. The split above is the useful line: mechanical fixes happen, semantic decisions get proposed.
Do not run a full lint after every ingest. Weekly, or after an import of more than about twenty sources.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

