/gt:gt-refreshfrom gt
Checks a Golden Thread vault's Sources/ directory for upstream changes and supersedes stale sources by creating new versions alongside the old ones. Never edits existing sources. Use when refreshing the vault or checking if project sources are current.
Ships in gt. 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 |
|---|---|
finding sources (grep in Sources/, grep -rl in Knowledge/) | vault_search, vault_list {path: Sources}, vault_read |
a new Sources/YYYY-MM-DD <title>.md | vault_source_store {name, content} |
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_broker.py drain | nothing to run after vault_queue_write; vault_queue_drain if anything was queued from the shell |
gt_log.py … add "<line>" | vault_log_add {line} — the full line shape; with --event …, the same fields (event, item, from, to, level_from, level_to, project) |
a write to design.md or global-memory/ (the broker escalates one it is handed as a #conflict) | owner only: gt's MCP tools never edit them, with or without sandbox mode. Show the user the proposed text and the file it belongs in; they apply it in an editor. A #conflict task already raised for one points at its conflict file in Projects/golden-thread/spool/broker/conflicts/ |
Check Sources/ for upstream changes. Sources are immutable: "updating" means creating a new source file that supersedes the old one — the old file stays as the historical record forever.
A standalone LLM Wiki vault is refreshed by /gt-wiki:gt-wiki-refresh, from the optional
gt-wiki module. If the gt-wiki plugin is not installed (its gt-wiki:* skills are not
listed), say so and name bash install.sh --with wiki instead of invoking it.
Use $GT_VAULT if it is set (a session pinned to one vault, such as the demo); otherwise read ~/.claude/vault-config.json for vault_path. If missing → tell the user to run /gt:gt-init first.
Sources/ files are never modified after creation. This is absolute. If a source has changed upstream:
Sources/YYYY-MM-DD <title>.mdsupersedes: ["Sources/YYYY-MM-DD <old-title>.md"] in the new file's frontmatterEvery file in Sources/ has frontmatter:
---
title: <human-readable title>
url: <original URL, if web source>
local_path: <original file path, if local source>
fetched: <YYYY-MM-DD>
supersedes: [] # list any source filenames this replaces
---
Step 1 — Select scope
List source files in <vault>/Sources/ that have a url: or local_path: field in their frontmatter (grep for ^url: or ^local_path:). Present the list and ask which to check this run. Default: all sources with a remote URL.
Step 2 — Fetch and compare
For each in-scope source:
Unchanged: note it briefly and move on.
Changed: proceed to Step 3.
Step 3 — Supersede on change
For a changed source:
Store the new version as a fresh immutable file:
Sources/YYYY-MM-DD <title>.md
Frontmatter:
---
title: <title>
url: <url>
fetched: <today>
supersedes: ["<old-source-filename>"]
---
Followed by the full raw content.
Find all Knowledge pages that cite the old source:
grep -rl "<old-source-filename>" "<vault>/Knowledge/"
For each citing Knowledge page:
sources: frontmatter to point at the new filestatus: growingA Knowledge page is vault content, so each approved update goes through the write
queue (Core rule 1), never Write, Edit or a shell redirect. Revised content: write the
section's new body to a scratch file outside the vault and queue it with
--op replace-section. Frontmatter: one --op set-property per key.
python3 <base_dir>/../../scripts/gt_write_queue.py --vault "<vault>" \
--path "Knowledge/<page>.md" --op replace-section --section "<heading>" \
--content-file <scratch>/<page>-<heading>.md --hint "refresh: <new-source-filename>"
python3 <base_dir>/../../scripts/gt_write_queue.py --vault "<vault>" \
--path "Knowledge/<page>.md" --op set-property --key sources \
--value '["Sources/<new-source-filename>"]'
python3 <base_dir>/../../scripts/gt_write_queue.py --vault "<vault>" \
--path "Knowledge/<page>.md" --op set-property --key status --value growing
When every approved page is queued, apply them once and tell the user in one line what the broker applied, held or escalated:
python3 <base_dir>/../../scripts/gt_broker.py drain --vault "<vault>"
The new Sources/ file is not queued — Sources/ sits outside the queue, and is
written once, as above, and never again.
The old source file is left exactly as-is.
Step 4 — Log
Record the summary with gt_log.py (below), in this shape:
<today> [refresh] <N> sources checked, <M> unchanged, <P> superseded, <Q> Knowledge pages updated
For each superseded source, add a line and its event in the same command, right after the new source file is written:
python3 "<vault>/Projects/golden-thread/tools/gt_log.py" --vault "<vault>" add \
"<today> [supersede] Sources/<old>.md → Sources/<new>.md" \
--event source.supersede --item "Sources/<new>.md" \
--from "Sources/<old>.md" --to "Sources/<new>.md"
Use gt_log.py --vault "<vault>" add for the [refresh] summary line too (no --event); never append
to log.md by hand.
Sources/ — not even a typo fix. Corrections go in a new superseding file.supersedes: field. This is how gt-lint detects stale Knowledge pages (superseded-cited check).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (shaven/golden-thread) — no native marketplace selected
npx claudepluginhub p/shaven-gt-golden-thread-plugin-golden-thread-0-22-040 skills in this plugin
/gt-adoptAdopt a vault gt did not create: inspect its folders, propose a layout manifest, write it only after a yes, then run the read-only checks. Use when the user says: adopt this vault, use gt on my existing vault, my notes are not laid out like gt, point gt at my own folders./gt-allinRun every check in one command (scan, lint, optimize, install health, credentials, runbook and wiki lint, tests, receipts) and report how many actually ran. Never pushes or applies a change. Use when the user says: run everything, check everything, all checks./gt-allin-commitCommit once checks pass and a test receipt covers every staged file. Refuses without evidence or on the default branch; never pushes. Use when the user says: commit it, commit once checks pass./gt-briefDraft a self-contained CLAUDE.md section for a project's code repo from its vault notes — what it is, the stable decisions, where it runs, what not to do — printed for review, never written. Use when the user says: /gt-brief, brief the repo, draft the repo CLAUDE.md, graduate this project to its repo, what should the repo's CLAUDE.md say./gt-calibrateRun model calibration now: re-run recent agent-stage work a tier and an effort up and down, have a zero-context judge compare, and show each stage's verdict and the command to apply it. Runs even when model_calibration is off. Use when the user says: calibrate the models, calibrate the agents, run model calibration, are my agents on the right model./gt-closeClose this session's work, the opposite of /gt:gt-open: write back what it learned and release its vault claim. Use when the user says: close this session, close out the session, I'm done for now, wrap up this session, close the project I opened. To complete or archive a project, task or handoff, use /gt:gt-complete.4 plugins in one repository ship this exact skill · first indexed Oct 18, 2026
Other plugins' skills for the same job