/gt-wiki:gt-wiki-lintfrom gt-wiki
Health-checks an LLM Wiki vault for broken links, orphan pages, stale content, and other issues, then proposes fixes.
Ships in gt-wiki. 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.
Under gt sandbox mode (the session-start line says SANDBOX MODE; gt_settings.py get sandbox_mode prints on) Claude's shell and file tools cannot write the vault, and by default cannot read it. Every vault step below then takes the route in this table instead: a gt-vault MCP tool runs the same script, with the same checks, outside the sandbox. Read vault files with vault_read, vault_search and vault_list. With sandbox mode off (the default) nothing changes: the shell steps run as written.
| Shell step | Under gt sandbox mode |
|---|---|
wiki_lint.py <vault> --queue <vault>/review-queue.md | vault_derived_write {action: wiki_lint_queue}, then vault_report {report: wiki_lint} for the findings |
<gt-scripts>/gt_write_queue.py … | vault_queue_write — the same path, op, section, key and hint, with the text itself as content (no --session: the server stamps its own). The broker decides at once and the result says apply, held or escalate. design.md and global-memory/ are refused (owner only) |
<gt-scripts>/gt_broker.py drain | nothing to run after vault_queue_write; vault_queue_drain if anything was queued from the shell |
wiki_log.py <vault> log … (it runs the vault's gt_log.py) | vault_log_add {line}: the line it would write, YYYY-MM-DD HH:MM TZ [<kind>] <subject> — <detail> |
wiki_log.py <vault> index … | vault_queue_write {path: index.md, op: append, section, content: "- [[<Page>]] — <summary>"} |
Deterministic checks run in code; judgment stays with the LLM; edits stay
with the owner. Vault path: $GT_VAULT if set, else vault_path in ~/.claude/vault-config.json.
Run the script:
python3 <plugin>/scripts/wiki_lint.py <vault_path> --queue <vault_path>/review-queue.md
(add --json for machine-readable output, --days N to change the
review-due window, default 90).
Interpret the report. For each finding category, propose a concrete fix and group them by effort:
status: stale)stale from ageOwner approves — apply only the fixes the user picks. Never bulk-edit without approval.
Fixes go through the write queue, never a direct Write/Edit (Core
rule 1; the gt guard denies it). Put each revised section body in a
scratch file outside the vault and queue it with gt's scripts, at
~/.claude/plugins/cache/golden-thread-plugin/gt/<newest>/scripts/:
python3 <gt-scripts>/gt_write_queue.py --vault "<vault>" \
--path "Knowledge/<Page Title>.md" --op replace-section --section "<heading>" \
--content-file <scratch file> --session <session id> --hint "lint fix: <finding>"
replace-section replaces the whole body of ## <heading>, so the file
carries everything you keep. A missing return link or an inbound link for
an orphan is --op append --section "Related" (one line); a missing page
is --op create; a wrong status: is
--op set-property --key status --value <value> (no content file).
A citation fix (unsourced, superseded-cited) on a block-list sources:
(one - item per line), or any frontmatter change set-property cannot
express, is a whole-file write: read the page, rebuild its full text with
the corrected list, and queue --op replace-file --content-file <scratch file> (no section; the broker escalates if the page changed since).
Index entries go through wiki_log.py <vault> index, as in ingest.
Declines are recorded, not forgotten: when the user rejects a
finding, queue it onto lint-declines.md as
- <finding text> | <one-line rationale> (--path lint-declines.md --op append, one line per decline in the scratch file). The script
suppresses ledger entries from every future run. To reinstate, delete its
line (ask the owner, or queue a replace-section of the ledger section).
Then drain once, for all fixes and declines:
python3 <gt-scripts>/gt_broker.py drain --vault "<vault>"
and report it in one line: applied N, held N, escalated N.
Log — never append to log.md by hand (in a Golden Thread vault it is
generated). Record a lint entry with finding counts and what was fixed:
python3 <plugin>/scripts/wiki_log.py <vault> log lint "wiki" \
--line "<N> findings, <M> fixed, <D> declined"
In a gt vault the script hands the line to gt's
Projects/golden-thread/tools/gt_log.py --vault "<vault>" add.
stale means "probably wrong", not "old". Set only when a page's source
has been superseded, or when the owner rules it stale during review.
Old-but-correct pages stay mature. This keeps the flag trustworthy.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub shaven/golden-thread --plugin gt-wiki5 skills in this plugin
/gt-wikiALWAYS CHECK FIRST: the user has an LLM Wiki (interlinked pages plus immutable sources). Read its index before exploring repos or code. Use when: the user asks how something works, what a tool does, which conventions apply, or any platform question. Vault path: ~/.claude/vault-config.json (vault_path); if missing, ask once and offer to save it./gt-wiki-ingestAdd a URL, file or pasted text to the user's LLM Wiki: stored immutably in Sources/, then the ingest discussion. Use when the user says: add this to the wiki, ingest this article, capture this into the wiki, save this source, remember this, wiki this. Vault path via ~/.claude/vault-config.json./gt-2 plugins in one repository ship this exact skill · first indexed Oct 31, 2026
Other plugins' skills for the same job