Skip to content
Productivity
Skill

/second-brain-lint

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

From plugin
second-brain-os
1.6k23 skills7 agents70 commands

Claude Code

$ npx -y skills add undefined-ui/second-brain-os --skill second-brain-lint --agent claude-code

SKILL.md

second-brain-lint.SKILL.md
name: second-brain-lint
description: >-
  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.

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

1. **Inventory.** Count pages by type. Build the link graph by parsing every `[[wikilink]]`. 2. **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.md` under Gaps. 3. **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. 4. **Stubs.** Pages under roughly 40 words with no links. Usually a failed ingest. Flag for re-ingest from the original source in `raw/`. 5. **Schema.** Missing or malformed frontmatter, wrong `type`, missing dates, tags outside the existing vocabulary. 6. **Near-duplicates.** Pages with very similar titles or aliases. Propose merges; do not perform them unsolicited. 7. **Index drift.** Pages missing from `index.md`, index entries pointing nowhere. 8. **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.

Read more
@undefined-ui
Ships withsecond-brain-os

Guides and resources for AI engineers: a course on building agents, five handbooks that go deep on one layer each, hands-on projects, and the links worth your time.

1.6k23 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.6k
Star history of undefined-ui/second-brain-os on GitHub, a chart by star-history.com

Other skills on second-brain-os.

goal-test

goal-test

Turn a vague task into a testable definition of done and generate an executable goal-test script for it, optionally with a…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about second-brain-lint.

Which coding agents can use second-brain-lint?
second-brain-lint installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.