Skip to content
Back to skills

Lint

ASecurity

Health-check the wiki. Finds orphan pages, unresolved contradictions, stale claims, missing pages, broken links, and data gaps. Produces a lint report and appends to the log. Trigger phrases: /lint, health check the wiki, audit the wiki, check for broken links, wiki maintenance.

  • 188 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgonode

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add jessepinkman9900/claude-second-brain --skill lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jessepinkman9900-lint/badge)](https://www.skillsdirectory.com/skills/jessepinkman9900-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lint
description: "Health-check the wiki. Finds orphan pages, unresolved contradictions, stale claims, missing pages, broken links, and data gaps. Produces a lint report and appends to the log. Trigger phrases: /lint, health check the wiki, audit the wiki, check for broken links, wiki maintenance."
argument-hint: "Optional: focus area (e.g. 'broken links only', 'check contradictions'). Leave blank for a full check."
---

# Lint

Runs the full lint workflow defined in CLAUDE.md. Checks for six categories of issues, fixes what can be fixed automatically, and reports the rest.

## Workflow

**Step 0 — Run the lint script**
- From the vault root: `node scripts/lint/wiki-lint.js --json`
- It is plain Node with no dependencies, and checks every page under `wiki/` in one pass. It exits 1 when it finds errors; that is expected, read the JSON anyway.
- Output: `summary` (error/warning/info counts), `issues` (each with `check`, `severity`, `page`, `line`, `message`, and `target` for links), and `missingPages` (broken link targets grouped, most-linked first).
- Use these results for checks 1, 2, 4 and 5, plus frontmatter. Do not read every page to find them; open a page only to fix an issue the script reported.
- If `scripts/lint/wiki-lint.js` is missing (a vault from before this script shipped), do checks 1, 2, 4 and 5 by hand: Glob `wiki/**/*.md`, extract `[[...]]` links, and check each against the file system.

Then run all six checks. For each: identify issues, apply fixes where possible, and note anything that needs user input.

**Check 1 — Orphan pages**
- Script issues with `check: "orphan"`: wiki pages no other wiki page links to (`index.md`, `log.md` and `overview.md` are exempt, and links from `log.md` don't count)
- Fix: add links from relevant topic pages (or `wiki/index.md`) where appropriate
- If a page is a stub with no clear home, flag it for the user to decide

**Check 2 — Unresolved contradictions**
- Script issues with `check: "contradiction"` list every `[!WARNING] Contradiction` callout with its line
- Read each one: which pages, what the conflict is, which sources are involved
- Fix: flag to user with a recommendation — a new source may resolve it

**Check 3 — Stale claims**
- Look for claims on older pages that newer source-summary pages have superseded
- Cross-reference `updated` dates in frontmatter against source dates
- Fix: update the claim and update the `sources` frontmatter attribution

**Check 4 — Missing pages**
- Script `missingPages`: broken link targets grouped by how many links point at them
- Fix: create stub pages (with frontmatter) for high-frequency targets and queue them for ingestion

**Check 5 — Broken links and frontmatter**
- Script issues with `check: "broken-link"` (link points to no file), `"short-link"` (resolves only by bare name; rewrite to the full `[[wiki/...]]` path) and `"frontmatter"` (missing frontmatter, or missing/invalid `type` or `updated`)
- Fix: create the missing page as a stub, correct the link if it's a typo, or repair the frontmatter
- After fixing, re-run the script to confirm `summary.errors` is 0

**Check 6 — Data gaps**
- Identify important topics in the wiki that have many cross-references but thin source coverage
- Look for topic pages with empty or sparse `sources` frontmatter
- Report: suggest specific sources, articles, or web searches to fill each gap

## Output

Produce a lint report with three sections:
1. **Issues found** — count and description per category (script counts plus checks 3 and 6)
2. **Fixes applied** — what was changed automatically
3. **Next sources to investigate** — recommended reads to address data gaps or resolve contradictions

Then append to `wiki/log.md` (never overwrite):
```
## [YYYY-MM-DD] lint | Lint run

N issues found, N fixed. [Brief summary of notable findings.]
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.