/field-guide:lintfrom field-guide
Health-checks wiki structure by checking for contradictions, orphaned pages, changed provenance, stratification needs, and stale content across all wiki pages.
Ships in field-guide. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Health-check wiki structure and surface review candidates. A lint finding is not a verdict that historical intent binds current work; semantic accuracy requires checking implementation/tests and current user direction with resolve-drift.
1. Load the index.
Read the field-guide index. Prefer .lore/reference/index.md; if it does not exist, read .lore/reference/index.html. Collect every local page link it lists — these are the indexed pages. Links may point to .md or .html files. If no index exists or the index contains no links, report that and stop.
2. Run five checks.
Run all five checks before reporting. Each check has a defined severity; do not promote or demote.
Read every indexed wiki page in full. Pages may be Markdown or HTML. For HTML pages, use meta tags as metadata and visible body content as the page body. Look for pages that make conflicting claims about the same concept, entity, or decision. Two pages contradict each other when they assert incompatible facts about the same subject — not merely when they discuss it differently or at different levels of detail.
For each contradiction found, record:
List every .md and .html file under .lore/reference/, recursively — stratified wikis keep pages in category subdirectories. Exclude index.md and index.html. Any file not listed in the index is an orphan.
For each orphan, record its path.
For each indexed wiki page, read its source metadata. Markdown pages use the fg-sources frontmatter field as a YAML list of relative paths. HTML pages use the fg-sources meta tag as a comma-separated or YAML-like list.
For each source path:
For each page with a newer provenance source, report it only as an optional review lead; do not change fg-status from modification time alone. A source timestamp is provenance, not proof of semantic drift. Use resolve-drift to check current claims against code/tests and current user direction.
If a source file no longer exists, report missing provenance as information, not a defect: sources may be deleted after distillation and provenance is not authority.
Count the pages directly inside each directory under .lore/reference/, including the root itself (index.* and dotfiles don't count; pages in deeper subdirectories count toward their own directory, not the parent). Flag any directory holding more than ~12 pages.
For each flagged directory, record its path and page count, and suggest running /field-guide:stratify.
Scan all indexed wiki page bodies for terms that appear across multiple pages. A term is a candidate if it recurs in at least two pages and has no dedicated page with fg-type set to concept. Read fg-type from Markdown frontmatter or HTML meta tags.
Flag all candidates found.
For each candidate, record the term and which pages reference it.
3. Produce the report.
Group findings by severity in this order: errors, warnings, info. Within each group, list findings individually with enough detail to act on them.
Format:
[error] Contradiction
Pages: .lore/reference/auth-decision.md, .lore/reference/auth-architecture.md
Subject: whether JWT tokens are stateless
Claim A: "tokens are stateless and require no server-side storage"
Claim B: "tokens are validated against a server-side revocation list"
[warning] Orphan
Path: .lore/reference/old-spike.md
[info] Changed provenance (optional review lead)
Page: .lore/reference/auth-decision.md
Newer source: .lore/work/retros/auth-rollout.md
[info] Missing provenance
Page: .lore/reference/deploy-config.md
Missing: .lore/work/specs/deploy-spec.md
[info] Stratification due
Directory: .lore/reference/ (17 pages)
Suggestion: run /field-guide:stratify
[info] Missing concept page
Term: "revocation list"
Referenced in: .lore/reference/auth-decision.md, .lore/reference/auth-architecture.md, .lore/reference/session-management.md
If a severity bucket is empty, omit it. If no findings at all, say so.
Close with a one-line count: N errors, N warnings, N info.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
7 skills in this plugin
/ingestUse when distilling useful project understanding from eligible .lore/ artifacts into the reference wiki. Historical artifacts suggest candidates; current claims are checked against implementation and tests. Triggers include "ingest this", "distill reference knowledge", "update the reference", and "populate the field guide"./initUse when setting up field-guide on a project for the first time, or to refresh the scheduled lint job after it expires. Triggers include "init field-guide", "set up field-guide", "refresh field-guide lint schedule", and "bootstrap the wiki"./queryUse when asking questions about the project wiki, querying accumulated knowledge, searching project decisions or lessons. Triggers include "query the wiki", "what does the wiki say about", "search project knowledge", and natural language questions directed at the field-guide wiki./resolve-driftUse when checking whether field-guide reference pages still match current code and tests. Reads pages plus fg-evidence anchors, reports or fixes semantic drift, and can use sub-agents for parallel audit batches. Triggers include "resolve drift", "semantic drift", "check accuracy", "verify the reference against code", and "audit the wiki"./stratifyUse when the wiki has outgrown its flat layout and pages need grouping into category directories. Reorganizes .lore/reference/ into category and subcategory trees, rewrites the index, and repairs every referrer. Triggers include "stratify the wiki", "organize the reference directory", "group the wiki into categories", "the wiki is too flat", and "reorganize the field guide"./update-evidenceUse after ingesting or editing field-guide pages to attach living code/test anchors. Adds or refreshes fg-evidence metadata without trying to prove prose accuracy. Triggers include "update evidence", "wire evidence", "add evidence anchors", and "connect the wiki to code".npx claudepluginhub rjroy/vibe-garden --plugin field-guide