/gt:gt-minimizefrom gt
Measures session size and prompt cache warmth, saves important context to Knowledge/ or INBOX.md, then prompts the user to /compact or /clear. Use when pruning a long session before stepping away.
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_minimize.py … | unchanged: it reads the session transcript, not the vault |
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 |
A session left idle past its cache lifetime rebuilds its whole prefix on the next turn, and the
price is set by how large the conversation was, not how long the break was. Compacting while
the cache is still warm reads the prefix from cache and costs a fraction of the context size;
compacting after it expired pays the full rebuild first. And /compact is lossy in ways nobody
chooses: a fact found mid-session that belongs in the wiki is summarised away.
This skill makes the cut safe enough to actually do: measure, triage, prune, cut — in that order, quickly, because the cache is a clock.
/gt:gt-create handoff's job, and this skill sends you there (owner decision, 2026-10-01)./gt:gt-optimize --only session measures cache waste across
sessions over weeks. This is about the one session you are in, now.Step 1 — Measure (read-only)
python3 <base_dir>/../../scripts/gt_minimize.py
It finds this session's transcript from $CLAUDE_CODE_SESSION_ID; if that is not set, pass
--session <id> or --transcript <file> (or --latest, which says it guessed). It prints:
Tell the user the size and the cache state in one line. If the cache has expired, say so plainly: the next turn rebuilds the prefix whatever happens, so there is no rush — but the habit to build is cutting before stepping away.
Step 2 — Triage: what is worth keeping
Go through the session and list, briefly, the things that would be lost by a cut and are worth more than the session itself. Be ruthless: most of a long session is tool output that has done its job.
| it is… | where it goes |
|---|---|
| a platform / tool / infrastructure fact that would help outside this project | Knowledge/ — through /gt:gt-promote (or the wiki-ingest path for something new) |
| a project finding or decision | the project's research.md / ADR — through /gt:gt-work |
| a thought that belongs to another project, not yet worked | one checkbox line in INBOX.md (below) |
| work in flight, an open question, the next command | /gt:gt-create handoff — not here |
| everything else | dropped — say so, so the user can object |
Present the list as keep → destination and drop, and ask the user to confirm or move items between them. Nothing is written until they answer.
Step 3 — Write the keepers through the queue (Core rule 1)
Every vault write goes through the write queue, never Write, Edit or a shell redirect. An INBOX line, for example — write it to a scratch file outside the vault first:
python3 <base_dir>/../../scripts/gt_write_queue.py --vault "<vault>" \
--path "INBOX.md" --op append --content-file <scratch>/inbox-line.md \
--hint "gt-minimize: keeper from session triage"
python3 <base_dir>/../../scripts/gt_broker.py drain --vault "<vault>"
Knowledge pages and project findings go through /gt:gt-promote and /gt:gt-work, which already
route their writes through the queue. Tell the user in one line what the broker applied, held or
escalated.
Step 4 — Cut, now
Tell the user, in this order:
/gt:gt-create handoff first" — and stop until they have;/compact (keeps a summary) or /clear (starts clean) now — the cache is warm for
about N more minutes, so cutting now is cheap." If it had already expired, say that the
saving this time is the next session's size, not the rebuild.You cannot run /compact or /clear yourself; they are the user's commands.
/gt:gt-create handoff.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