/gt:gt-syncfrom gt
Syncs a git-backed knowledge vault across machines: shows ahead/behind status, pulls remote changes (fast-forward only), and pushes local commits after validation.
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 |
|---|---|
gt_sync.py status / behind / pull / push | terminal: they run git in the vault (denied to the shell) and reach the network |
A terminal row is a step sandbox mode refuses on purpose — it changes settings or install state, or rewrites the vault wholesale. Give the user the exact command to run from a terminal, and carry on with the rest.
The vault is a git repo so that what one machine learns reaches the others. This skill moves it in both directions. It never merges and never rebases: when both sides have commits, it stops and says so, and the owner reconciles.
Use $GT_VAULT if it is set; otherwise read vault_path from ~/.claude/vault-config.json. Pass
it explicitly every time (--vault "<vault>"). Every git call the script makes is
git -C <vault>.
The script is at <base_dir>/../../scripts/gt_sync.py, where <base_dir> is the path in the
Base directory for this skill: header.
| The user wants | Run |
|---|---|
where the vault stands (default, bare /gt:gt-sync) | gt_sync.py status --vault "<vault>" |
| the newest vault from another machine, before work | gt_sync.py pull --vault "<vault>" |
this machine's commits on origin, after /gt:gt-work | gt_sync.py push --vault "<vault>" |
Add --dry-run to rehearse: no fetch, no pull, no push, only what the refs on disk say and the
command it would run.
N ahead, M behind; K uncommitted change(s); last fetch …. Behind → offer pull.
Ahead → offer push. Both → say DIVERGED and stop; do not attempt to fix it.STOPPED -- … DIVERGED means local and remote both have commits. Show the user the
two counts and leave the reconciliation to them. Never run git merge, git rebase or
git pull without --ff-only yourself.git refused the fast-forward usually means uncommitted local edits touch the
incoming files. Say which./gt:gt-work
when the user agrees. Never push on your own initiative.The opt-in sync_check setting (off by default) adds one line at session start, printed by
the push check:
cached compares with the remote refs already on disk. It uses no network and says how old
they are.fetch runs one fetch, bounded to a few seconds, before comparing.Turn it on with /gt:gt-settings. The same line on demand: gt_sync.py behind --vault "<vault>".
0 ok or nothing to do · 1 refused or git failed (diverged, push check failed, behind on push,
fast-forward refused) · 2 usage, no vault, or not a git repository.
What SKILL.md sets; muted values are Claude Code's defaults
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-21-342 skills in this plugin
/gt-allinRun every check in one command — scan, lint, optimize report, install health, credentials, runbook and wiki lint, the repo's tests, validation receipts — and report how many actually ran, not just what they found. Never pushes, never applies a change./gt-allin-commitCommit once the checks pass and a test receipt covers every staged file. Refuses without evidence, refuses on the default branch, and never pushes./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 the model calibration pass now: re-run recent agent-stage work one tier down, one tier up and one effort higher, have a zero-context adjudicator judge the outputs, and show keep, move-down, move-up or raise-effort for each stage with the command to apply it. An alias for /gt:gt-optimize --only calibration that runs even when model_calibration is off. Use when the user says: calibrate the models, calibrate the agents, run model calibration, recalibrate the models, are my agents on the right model./gt-closeClose this session's work — the opposite of /gt:gt-open: write back what the session learned (gt-work) and release the session's claim on the vault. To complete or archive a project, a task or a handoff, use /gt:gt-complete. 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./gt-completeComplete a project, a task or a handoff the guided way. A project: review every open task and handoff (complete, drop, move to another project, or keep shelved), offer to graduate what it learned, then archive it in place — or move it to Archive/ on request. A task: mark it done. A handoff: mark it handled. Use when the user says: complete the project, we're done with this project, archive the project, retire this project, mark that task done, mark that handoff handled, complete the handoff. To end the session you are in, use /gt:gt-close.Other plugins' skills for the same job