PluginBench
Skill
Pass
Audit score 90

second-brain-lint

nicholasspisak/second-brain

Health-check your wiki for broken links, orphans, contradictions, and stale claims.

What is second-brain-lint?

Audits a personal wiki (second brain) to identify structural and content issues like broken wikilinks, orphaned pages, contradictory claims, and missing cross-references. Run this after ingesting new sources or monthly to maintain wiki quality and catch data gaps.

  • Detects broken wikilinks that point to non-existent pages
  • Finds orphan pages with no inbound references from other wiki pages
  • Identifies contradictions between source summaries and entity/concept pages
  • Flags stale claims citing only old sources when newer ones exist
  • Discovers missing pages for frequently referenced topics
  • Suggests missing cross-references between related pages

How to install second-brain-lint

npx skills add https://github.com/nicholasspisak/second-brain --skill second-brain-lint
Claude Code
Cursor
Windsurf
Cline

How to use second-brain-lint

  1. 1.Run the lint check to scan all wiki pages for issues
  2. 2.Review the consolidated report grouped by Errors, Warnings, and Info items
  3. 3.For each finding, note the file location and suggested fix
  4. 4.Optionally ask the skill to auto-fix issues (broken links, index entries, etc.)
  5. 5.Review any manual fixes (contradictions, stale claims) yourself
  6. 6.Append the results to wiki/log.md with the date and summary

Use cases

Good for
  • Run after ingesting 10 new sources to catch linking and reference gaps while fresh
  • Monthly audit to identify orphaned content and outdated information
  • Pre-query health check to ensure wiki reliability before major analysis
  • Spot contradictory claims across multiple pages on the same topic
  • Find topics mentioned frequently but lacking dedicated pages
Who it's for
  • Knowledge workers maintaining a personal wiki or second brain
  • Researchers building interconnected note systems
  • Anyone using a structured wiki to track sources, entities, and concepts

second-brain-lint FAQ

How often should I run the lint check?

After every 10 ingests to catch fresh gaps, and at minimum monthly to catch stale claims and orphans over time. Also run before major queries to ensure wiki health.

What's the difference between Errors, Warnings, and Info?

Errors must be fixed (broken links, contradictions, missing index entries). Warnings should be fixed (orphans, stale claims). Info items are nice-to-fix improvements (potential cross-references, data gaps).

Can the skill auto-fix issues?

Yes. After reviewing the report, you can ask it to fix issues. It will update files and log changes to wiki/log.md.

What if a wikilink is intentionally broken (a placeholder)?

The report flags it; you can decide whether to create the page, remove the link, or leave it as a note for future work.

How does it detect contradictions?

It reads pages sharing entities or concepts and flags conflicting claims—opposing statements, differing dates, or factual disagreements between sources and wiki pages.

Full instructions (SKILL.md)

Source of truth, from nicholasspisak/second-brain.


name: second-brain-lint description: > Health-check the wiki for contradictions, orphan pages, stale claims, and missing cross-references. Use when the user says "audit", "health check", "lint", "find problems", or wants to improve wiki quality. allowed-tools: Bash Read Write Edit Glob Grep

Second Brain — Lint

Health-check the wiki and report issues with actionable fixes.

Audit Steps

Run all checks below, then present a consolidated report.

1. Broken wikilinks

Scan all wiki pages for [[wikilink]] references. For each link, verify the target page exists. Report any broken links.

# Find all wikilinks across wiki pages
grep -roh '\[\[[^]]*\]\]' wiki/ | sort -u

Cross-reference against actual files in wiki/.

2. Orphan pages

Find pages with no inbound links — no other page references them via [[wikilink]].

For each .md file in wiki/sources/, wiki/entities/, wiki/concepts/, wiki/synthesis/:

  • Extract the page name (filename without extension)
  • Search all other wiki pages for [[Page Name]]
  • If no other page links to it, it's an orphan

3. Contradictions

Read pages that share entities or concepts and look for conflicting claims. Flag when:

  • Two source summaries make opposing claims about the same topic
  • An entity page contains information that conflicts with a source summary
  • Dates, figures, or factual claims differ between pages

4. Stale claims

Cross-reference source dates with wiki content. Flag when:

  • A concept page cites only old sources and newer sources exist on the same topic
  • Entity information hasn't been updated despite newer sources mentioning that entity

5. Missing pages

Scan for [[wikilinks]] that point to pages that don't exist yet. These are topics the wiki mentions but hasn't given their own page. Assess whether they warrant a page.

6. Missing cross-references

Find pages that discuss the same topics but don't link to each other. Look for:

  • Entity pages that mention concepts without linking them
  • Concept pages that mention entities without linking them
  • Source summaries that cover the same topic but don't reference each other

7. Index consistency

Verify wiki/index.md is complete and accurate:

  • Every page in wiki/sources/, wiki/entities/, wiki/concepts/, wiki/synthesis/ has an index entry
  • No index entries point to deleted pages
  • Entries are under the correct category header

8. Data gaps

Based on the wiki's current coverage, suggest:

  • Topics mentioned frequently but lacking depth
  • Questions the wiki can't answer well
  • Areas where a web search could fill in missing information

Report Format

Present findings grouped by severity:

Errors (must fix)

  • Broken wikilinks
  • Contradictions between pages
  • Index entries pointing to missing pages

Warnings (should fix)

  • Orphan pages with no inbound links
  • Stale claims from outdated sources
  • Missing pages for frequently referenced topics

Info (nice to fix)

  • Potential cross-references to add
  • Data gaps that could be filled
  • Index entries that could be more descriptive

For each finding, include:

  • What: description of the issue
  • Where: the specific file(s) and line(s)
  • Fix: what to do about it

After the Report

Ask the user:

"Found N errors, N warnings, and N info items. Want me to fix any of these?"

If the user agrees, fix issues and report what changed.

Log the lint pass

Append to wiki/log.md:

## [YYYY-MM-DD] lint | Health check
Found N errors, N warnings, N info items. Fixed: [list of fixes applied].

When to Lint

  • After every 10 ingests — catches cross-reference gaps while they're fresh
  • Monthly at minimum — catches stale claims and orphan pages over time
  • Before major queries — ensures the wiki is healthy before you rely on it for analysis

Related Skills

  • /second-brain-ingest — process new sources into wiki pages
  • /second-brain-query — ask questions against the wiki