/synthesis-skills:synthesis-git-hooksfrom synthesis-skills
Installs, configures, and debugs git hooks that block credentials, keys, and unapproved disclosures in commits. Activates when a commit is refused.
Ships in synthesis-skills. 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.
Read when SKILL.md points to them.
One global core.hooksPath sends git's pre-commit, pre-merge-commit and commit-msg hooks in every repository on the machine through synthesis/commit_check.py. It refuses credentials everywhere, refuses unapproved disclosures where outsiders read the repository, refuses commits into another session's claim, and then runs the repository's own hooks. The rules live in code that runs outside the model, so they hold under load.
git commit --no-verify without the principal's explicit approval for that commit, and never reword, split, encode or build a flagged term at run time to get past the check. No word list can tell a leak from a legitimate mention; disguising the text weakens it and defeats the check (ruling of 2026-10-06). Remove a leak; get a legitimate line approved. Until then the guard holds a git command whose line as written turns the check off; it cannot see a program that runs git..githooks/<hook> and .git/hooks/<hook> after its own; never delete one as redundant. .githooks/required makes a missing or non-executable delegate block.synthesis doctor before the first commit.config.json keys, the ledger contract. Read when writing or changing a policy or ledger..githooks/required, SYNTHESIS_REPO_CLASS, allowlist lines. Read when a repository needs a rule the global policy can't express.Install with the runtime: python3 -S <plugin>/synthesis/install.py --git-hooks. It writes ~/.synthesis/v5/git-hooks/{pre-commit,pre-merge-commit,commit-msg} and points the global core.hooksPath there, recording the value it replaced so install.py uninstall can restore it. synthesis doctor then shows git hooks: core.hooksPath -> ~/.synthesis/v5/git-hooks.
Configure. Copy git-hook-config.example.yaml somewhere private, fill it in, and set "commit_policy": "<path>" in ~/.synthesis/v5/config.json (and "disclosure_ledger" to override the ledger path the policy names). Without a policy the check still refuses credentials, keys, credential file names and claimed paths.
Check a repository's class: from inside it, python3 -S ~/.synthesis/v5/current/synthesis/commit_check.py --classify prints strict, public-surface or personal. git remote -v | awk '/\(push\)/ {print $2}' shows the remotes it read.
When a commit is refused, git exits non-zero and nothing was committed. The message names each finding:
synthesis commit check refused this commit (strict repository):
notes/kickoff.md:3: Kickoff with <name> <- unapproved disclosure for this repository's audience; if it belongs, ask the principal to type approve followed by the code <code>
A credential: remove it, and rotate it if it was real. A disclosure that leaks (in a file or the message): remove what it discloses, not just the flagged word; a message follows the principal's commit-message rules. A legitimate line: show the principal the line; they type approve and its code in their own prompt; commit again (scanning.md). Only the principal adds a ledger entry, with evidence, for a name they have published. A claim: synthesis who, then synthesis msg <holder> "...". The policy or the approved lines can't be read: repair the file it names; never point the config away from it or delete it.
A pattern that is wrong (it matches what it was never meant to): the principal changes the policy, or a diff_exclude_paths entry covers a file whose purpose is the pattern catalog. In tier 0: fix the checker in synthesis-skills with a test. Never weaken a pattern to get one commit through.
New machine or drift: synthesis doctor; if core.hooksPath points elsewhere, rerun step 1.
--no-verify bypassesNot for: one-off scripts or throwaway repos where policy infrastructure is overkill; environments where you genuinely need to commit credentials (very rare; almost always indicates a missing secrets store); CI/CD pipelines that run their own credential-leak scanners (the pre-commit is a developer-side layer; CI/CD-side scanning is a complementary, not redundant, control).
agents/openai.yaml (opens in a new tab)git-hook-config.example.yaml (opens in a new tab)references/coverage-map.md (opens in a new tab)references/per-repo-overrides.md (opens in a new tab)references/policy-file.md (opens in a new tab)references/preserved.md (opens in a new tab)references/scanning.md (opens in a new tab)references/threat-model.md (opens in a new tab)references/tier-classification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub synthesisengineering/synthesis-skills --plugin synthesis-skills73 skills in this plugin
/synthesis-absence-coordinationPlan an absence end to end: who to tell, coverage, meetings released, out-of-office on and off, the return sweep. Use for time off or leave./synthesis-action-sheetOne page of what the principal must still do after agents act: approvals, sends, tasks. Use after a decision packet or daily plan./synthesis-adversarial-reviewBounded adversarial review by differently shaped agents, with a findings table and rulings. Use for red-team or cross-agent review.Other plugins' skills for the same job