agentleFS
justvinhherejustvinhhere/llm-wiki-plugin/skills/wiki-lint/SKILL.md

wiki-lint

Skill1 starsChanged 8 months agoMITView on GitHub

Use when the user runs /lint [--since <ref>], says "fix wiki issues", "resolve contradictions", "heal the wiki", "clean up dead links", "health-check the wiki", or wants a full structural pass. Scans the wiki for six categories (orphans, dead/ambiguous links, stale pages, missing cross-references, unresolved contradictions, index drift) and fixes each in place — the agent picks the tactic per finding — committing the pass as lint(<yyyy-mm-dd>). Fully automatic. Detection algorithms and healing principles live in reference.md.

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 6 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

  • 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

  • ZanderRussSkill

    obsidian-markdown

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run all six checks from reference.md.

    line 36
  2. Distinctive:

    If zero findings across all checks, skip to step 6 with the healthy-wiki output.

    line 47
  3. Very specific:

    Keep a running log, internal to this run: {page, finding-category, one-sentence-call}.

    line 55

“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

Full-wiki structural audit-and-repair. One invocation produces exactly one lint(<date>) commit (or none, if the wiki is already healthy).

Refuse conditions

  1. No .llm-wiki.yaml in CWD or ancestors.
  2. .llm-wiki.yaml:schema_version != 1.
  3. git status --porcelain -- wiki/ index.md non-empty — working tree dirty on wiki paths. The caller must commit or stash before linting (use /review for hand-edits).

Workflow

1. Build the page index

Walk wiki/**/*.md. For each page, capture: path, slug, frontmatter (type, tags, status, updated, sources, contradictions, allow_orphan), outbound [[X]] list.

Load .llm-wiki.yaml:lint — stale_days, orphan_allowlist, default_scope, suggest_after_n_ingests.

2. Scope

--since / configPages scanned
full (default)All pages.
since-last-commitgit diff --name-only HEAD~1 HEAD -- 'wiki/**/*.md'.
<git-ref>git diff --name-only <ref> HEAD -- 'wiki/**/*.md'.

Orphan, dead-link, and cross-ref checks resolve against the full page index regardless of scope; the scope filter limits which pages can produce findings (and therefore which pages get mutated).

3. Detect

Run all six checks from reference.md. Build an internal list of findings grouped by check:

CheckFinding shape
OrphansPage path, type.
Dead linksPage:line, target, dead-link or dead-link-ambiguous.
StalePage, updated, days past stale_days.
Missing cross-refsPage:line, bare mention, candidate slug.
ContradictionsPage, each {source, note} entry.
Index driftMissing entries and stale entries.

If zero findings across all checks, skip to step 6 with the healthy-wiki output; do not create a commit.

4. Heal

For each finding, pick a tactic guided by the healing principles in reference.md. Mutate in place.

The agent is explicitly authorized to use its judgment — read source pages, consult raw/ passages for contradictions, pick the better-supported side, rewrite prose, add or remove [[…]], set frontmatter status:, regenerate index.md entries. No rule table prescribes the tactic; the principles describe the target state, the agent picks the mechanism.

Keep a running log, internal to this run: {page, finding-category, one-sentence-call}. The log feeds the commit body in step 5.

5. Commit

Single batch.

git add <explicit-paths-touched>
git commit -F <message-file>

Subject: lint(<yyyy-mm-dd>): fix N orphan(s), M dead link(s), K contradiction(s), … — list only categories with non-zero fixes. Singular / plural per count. Subject ≤72 chars; drop least-important categories first if it overflows.

Body: one short line per resolved contradiction naming the page and the call the agent made, plus any non-obvious judgment from other categories (e.g. "merged [[foo]] into [[bar]] — same subject"). Straightforward fixes (a typo'd link, an index entry) need no body line. No Co-Authored-By trailer.

6. Output

Single line.

  • With fixes: Linted <yyyy-mm-dd>: N fix(es) across M page(s). Commit <short-sha>.
  • No findings: Wiki is healthy — no findings.

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.