/gt:gt-allin-commitfrom gt
Commits staged files only after all checks pass and a test receipt covers every file. Refuses on the default branch and never pushes. Keeps commits separate from sweeping changes.
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_allin.py …, gt_allin_commit.py … | terminal: the tests member writes its receipt into ~/.claude/golden-thread/ and the vault members read the vault — both refused inside the sandbox. Meanwhile vault_report (lint, runbook_lint, optimize, doctor) shows the vault members' findings |
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 deliberate act, kept separate from the sweep.
/gt:gt-allin reports and changes nothing, so it can be run freely by anyone at any time. This
one changes the repository. Keeping them apart means a routine check is never also a write, and
committing stays something a person chose.
A commit is local and reversible — git reset undoes it and nobody else ever saw it. A push is
outward-facing and effectively permanent: other people fetch it, CI acts on it, and a bad commit
becomes a public fact. That asymmetry is the whole line, and there is no --push flag.
guard_test_before_commit already denies a commit with no passing test receipt — but it is a
PreToolUse hook. It sees the model running git commit in a Bash call and never sees a
script running it through subprocess. A script that shelled out to git would walk straight
past the one mechanism enforcing core_test_before_commit, so the same check is made here,
directly, against the same ledger. Protection cannot depend on who is holding the pen.
Cite Core rules by name, never by number. The numbers in the injected list are positions,
computed each turn from the rules that are gated ON — switch test_gate off and every rule
below it shifts up one. This file said "Core rule 4" and "Core rules 4 and 10"; both happened
to be right, and both would have gone quietly wrong the moment a setting changed.
Step 1 — Stage what you mean to commit
It commits the index, not the working tree. Nothing staged is a refusal, not a no-op.
Step 2 — Run it
python3 <base_dir>/../../scripts/gt_allin_commit.py \
--repo "<repo>" --vault "<vault>" -m "your message"
Add --dry-run to run every check and commit nothing — the safe first move, always.
Step 3 — Read the refusals
It prints the staged file list before the verdict, then refuses for any of:
--allow-findings cannot wave it through. An unknown
is not a finding someone can accept.--allow-findings once you have decided they are acceptable.
Since 0.21.0 findings from lint, optimize, runbooks, wiki and doctor — which judge
the vault or the install, not the staged code — are printed as ADVISORY and do not block
a commit to a code repository (they still block a commit in the vault itself). Tell the user
they exist; do not fix the vault as part of the commit.main/master — branch first, or pass --allow-default-branch.scope_gate set to
block) — when the repository has an approved plan for this branch with a scope: block, the
run prints a --- scope --- block listing every staged file or new dependency outside it,
JUSTIFIED (the plan's ## Deviations has a line, shown beside it) or UNJUSTIFIED. Under the
default warn it only prints them. --allow-findings does not accept an unjustified
deviation: show the user the items and let them choose — take the change out, or write the
reason in ## Deviations (propose the line; never add one to make the check pass). No plan, a
draft, or a plan for another branch prints not applicable and never refuses. A plain git commit
in a Bash call meets the same contract in the PreToolUse guard guard_scope_contract (denied under
block, reported under warn); neither GT_TEST_GATE=off nor .gt-no-test-gate applies to it.A local second opinion (0.21.4, opt-in). With commit_local_review on (or unset under farm_first auto with a
calibrated local engine), the run prints a --- local review --- block: the staged diff, scanned for credentials and
prompt injection first (any hit skips it, naming the kind), was read by a calibrated local: yes engine. It is
advisory and never blocks; --allow-findings has nothing to do with it. Its findings are unverified
suggestions: in the trial behind it 3 of 10 were real defects no test had caught and 7 needed Claude to dismiss.
Check each one against the diff before you tell the user it is real, and say which you could not confirm. An engine
with no calibration, or one the calibration marks not suitable for code review, is sent nothing.
Step 4 — Push yourself
It prints the command. Run it when you mean to.
--allow-findings on the user's behalf. Accepting a finding is a judgement
about this specific change; it is theirs.core_test_before_commit and core_verification_state together mean naming the evidence,
not just asserting it.In a repo with a release pipeline (release-pipeline.tsv), the checks include the pipeline's
steps before the owner gate. A FAILED step refuses the commit and --allow-findings cannot wave
it through — a gate that did not pass is not a finding someone may accept. Fix the step (or, for
a default gate that does not apply, gt_pipeline.py remove <id> --reason "...", which is
recorded), then run this again.
On a feature branch the test-receipt check accepts a scoped receipt -- from a test run
limited to the tests the change needs (--affected) -- for the files it covered (setting scoped_receipts); the default branch
and every release gate still need a full-suite receipt.
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-637 skills in this plugin
/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./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./gt-completeComplete a project (review its open tasks and handoffs, offer to graduate what it learned, archive it), a task (mark it done) or 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. To end the session, use /gt:gt-close./gt-contextShow what words mean in this vault: vocabulary, validation rules and runbooks from the definition packs in effect, inside an untrusted-data envelope.2 plugins in one repository ship this exact skill · first indexed Oct 18, 2026
Other plugins' skills for the same job