agentleFS
po4ykapo4yka/llm-wiki-skills/skills/wiki-lint/SKILL.md

wiki-lint

Skill3 starsChanged 5 months agoMITView on GitHub

Run structural and trust health checks for an LLM-Wiki vault. Use for broken links, orphan pages, missing provenance, stale claims, contradiction reports, taxonomy drift, protected-section edits, and review queue generation.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wiki-capture, wiki-update and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jehrhardtSkill

    wiki-capture

    Quickly capture raw thoughts, links, images, or notes to today's Obsidian daily note from anywhere in Pi. Use when the user wants to jot something down for later wiki processing.

    Also in 4 projects that use this

  • bozhouDevSkill

    wiki-update

    Use when revising existing wiki pages because knowledge has changed, a new piece of information updates or contradicts existing content, or the user wants to directly edit wiki content with LLM assistance.

    Also in 4 projects that use this

  • Ivy-Chen1999Skill

    wiki-setup

    Initialize a new Obsidian wiki vault with the correct structure, special files, and configuration. Use this skill when the user wants to set up a new wiki from scratch, initialize the vault structure, create the .env file, or says things like "set up my wiki", "initialize obsidian", "create a new vault", "get started with the wiki". Also use when the user needs to reconfigure their existing vault or fix a broken setup.

    Also in 3 projects that use this

  • justvinhhereSkill

    wiki-review

    Use when the user runs /review, says "show pending changes", "what's uncommitted", or wants an audit of uncommitted wiki edits before they land in history. Narrates uncommitted changes, flags structural issues scoped to those changes, and commits them with a conventional subject. Fully automatic.

    Also in 4 projects that use this

  • joeseesunSkill

    defuddle

    Extract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.

    Also in 5 projects that use this

  • KKodiacSkill

    obsidian-bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before large refactors or after bulk ingestion.

    line 21
  2. Very specific:

    create reports under _agent/reports/.

    line 39
  3. Distinctive:

    Not allowed by default:

    line 44
  4. Very specific:

    Use --strict in CI to fail on critical/high findings.

    line 68
  5. Distinctive:

    Look for tensions such as incompatible tool maturity claims, local-first vs cloud-only descriptions, stale landscape claims contradicting …

    line 83
  6. Very specific:

    Start from the script's draft report, merge in the judgement-only and contradiction findings, and save it as …

    line 89
  7. Very specific:

    Every saved report is appended as an audit entry to wiki/log.md.

    line 138

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wiki Lint

Goal

Detect structural decay, provenance gaps, stale claims and contradictions without silently rewriting truth.

When to use

  • The vault needs a structural or trust health check.
  • Before large refactors or after bulk ingestion.
  • A review queue should be generated from mechanical findings.

A filled final report ships in assets/worked-example.md.

Inputs

  • wiki/index.md
  • wiki/log.md
  • all wiki/**/*.md pages
  • _meta/taxonomy.md
  • _meta/schemas/*
  • optional git history

Write permissions

Allowed:

  • create reports under _agent/reports/;
  • append to wiki/log.md when a report is created;
  • propose patches;
  • fix trivial broken links only when the user explicitly asks for apply mode.

Not allowed by default:

  • resolve contradictions;
  • rewrite synthesis pages;
  • mark pages verified;
  • delete pages;
  • bulk-normalize frontmatter without a dry run.

Procedure

1. Run deterministic checks

node scripts/wiki-lint-core.mjs <vault-path>

The bundled script is read-only and prints a draft report covering the mechanical checks. Do not re-derive these by hand; re-run the script instead:

  • inventory: page counts by type/status, missing or malformed required frontmatter;
  • links: broken wikilinks and relative links, orphan pages, pages with no outbound links, duplicate titles, near-duplicate slugs;
  • provenance: generated or reviewed/verified factual pages without source_paths/source_urls, high-confidence pages with no source reference;
  • trust: ai_confidence < 0.70 without review_required: true, review_required: false on draft pages, verified pages past stale_after, ambiguous claim support outside review;
  • taxonomy: unknown types/statuses, tags missing from _meta/taxonomy.md, unused taxonomy tags.

Use --strict in CI to fail on critical/high findings.

2. Add judgement-only checks

The script cannot see these; check them manually:

  • pages changed since the last lint and pages without source backlinks in git history;
  • protected human sections changed by recent agent commits;
  • stale source hashes when available;
  • generated pages that cite only other generated pages;
  • pages missing from wiki/index.md that are likely important;
  • spelling-variant and overbroad tags beyond exact taxonomy mismatches.

3. Contradiction checks

Look for tensions such as incompatible tool maturity claims, local-first vs cloud-only descriptions, stale landscape claims contradicting newer source pages, lifecycle status conflicts or incompatible defaults.

Report contradictions with evidence. Do not auto-resolve them.

4. Report

Start from the script's draft report, merge in the judgement-only and contradiction findings, and save it as _agent/reports/YYYY-MM-DD-lint.md:

# Wiki lint report: YYYY-MM-DD

## Summary

## Critical issues

## High-priority review queue

## Broken links

## Orphans

## Provenance gaps

## Stale pages

## Contradictions

## Taxonomy drift

## Suggested patches

## Metrics

Append to wiki/log.md if the report is saved.

Output

A structured lint report saved to _agent/reports/YYYY-MM-DD-lint.md, using the section skeleton from step 4 (Summary, Critical issues, High-priority review queue, Broken links, Orphans, Provenance gaps, Stale pages, Contradictions, Taxonomy drift, Suggested patches, Metrics). Each finding names the affected page path and the check that raised it, tagged with a severity from the table below so a reviewer can triage top-down. Saving a report also appends a one-line entry to wiki/log.md; no other vault content is modified.

Severity levels

SeverityMeaningAction
criticalcould corrupt trust or delete human workstop and review
highimportant provenance or contradiction issuereview soon
mediumstructural decayschedule cleanup
lowcosmetic or taxonomy cleanupbatch later

Safety gates

  • Deterministic checks run through node scripts/wiki-lint-core.mjs are read-only; the script never edits vault files.
  • Contradictions, stale claims and confidence conflicts are reported with evidence, never auto-resolved.
  • Trivial broken-link fixes only run in apply mode when the user explicitly asks for it; every other write stays report-only.
  • Deleting pages, rewriting synthesis pages, marking pages verified, and bulk frontmatter normalization without a dry run are out of scope for this skill.
  • Every saved report is appended as an audit entry to wiki/log.md.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.