signing-preflight

signing-preflight is a skill for Claude Code from avelikiy/great_cto. It costs 105 tokens per session (852 once invoked), scanned A, original, MIT.

A pre-commit check that tests whether the configured signing key is available and unlocked. Commit signing adds a cryptographic mark to a Git commit so others can verify who signed it.

In plain words
What is it for?
Use it at the start of a work session when Git commit signing is expected, with SSH or OpenPGP keys.
Why use it?
It prevents discovering after many commits that signing was unavailable, hung, or produced unsigned history. The check asks for unlocking once instead of silently disabling signing or rewriting history.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the great-cto plugin — 38 skills, 21 commands, 73 agents shipped together

Good fit Use it at the start of a work session when Git commit signing is expected, with SSH or OpenPGP keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avelikiy/great_cto/signing-preflight
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add avelikiy/great_cto --skill signing-preflight
Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 38 skills, 21 commands, 73 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for signing-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/avelikiy/great_cto/signing-preflight/github.svg)](https://agentmods.dev/skills/avelikiy/great_cto/signing-preflight)
Your own site
<a href="https://agentmods.dev/skills/avelikiy/great_cto/signing-preflight"><img src="https://agentmods.dev/badge/skills/avelikiy/great_cto/signing-preflight/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for signing-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/avelikiy/great_cto/signing-preflight"><img src="https://agentmods.dev/badge/skills/avelikiy/great_cto/signing-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 852 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.00852
Opus 5.5 $0.00042 $0.00341
Sonnet 5.5 $0.00021 $0.00170
Haiku 4.5 $0.00011 $0.00085

Measured 2mo ago against content hash 4d68e2be97cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

signing-preflight scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/signing-preflight/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

signing-preflight — find the locked key before the first commit, not after the hundredth

On real projects: an agent committed unsigned without asking to unlock the key; a signing call on a locked SSH key hung the session; 121 commits had to be re-signed after the fact — and the key turned out to have no passphrase at all. Each was a two-second question at the start of the session.

Check (read-only, bounded)

git config --get commit.gpgsign          # true → signing is expected
git config --get gpg.format              # ssh | openpgp (empty = openpgp)
git config --get user.signingkey

SSH signing — does a test signature finish? (user.signingkey may be a key file or a literal key::ssh-…; the test signature is the check that works for both.)

K="$(git config --get user.signingkey)"; case "$K" in key::*) printf '%s\n' "${K#key::}" > /tmp/sigpre.pub; K=/tmp/sigpre.pub ;; esac
echo preflight | perl -e 'alarm 5; exec @ARGV' ssh-keygen -Y sign -n git -f "$K" >/dev/null 2>&1 && echo signs || echo CANNOT-SIGN

OpenPGP — a batch signature that refuses to prompt:

echo preflight | perl -e 'alarm 5; exec @ARGV' gpg --batch --pinentry-mode error --clearsign -u "$(git config --get user.signingkey)" >/dev/null 2>&1 && echo signs || echo CANNOT-SIGN

Always bound the test with a timeout: an unbounded signing call on a locked key waits for a passphrase nobody will type, and the session stalls.

Then

  • signs → proceed; nothing to say.
  • CANNOT-SIGN → one question to the operator, before any work: "Commit signing is on and the key is locked / not loaded. Unlock it (ssh-add / gpg-agent) and I will continue — or tell me to commit unsigned for this session." Wait for the answer. This is the one question worth stopping for at the start.

Never, without being told

  • git -c commit.gpgsign=false commit … or --no-gpg-sign — an unsigned commit on a branch that requires signatures is a push that will be refused, or worse, accepted.
  • Re-signing history (rebase --exec 'git commit --amend -S') — it rewrites every hash after the first commit it touches; on a pushed branch that is a force-push.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 69 lines · 105 tokens per session scan A 4d68e2be97cd

Subscribe to this mod's changes

signing-preflight is a skill published in the GitHub repository avelikiy/great_cto (117 stars, last pushed 13d ago), licensed MIT. It adds 105 tokens to every session and 852 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

signing-preflight compared with skills from other repositories

signing-preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
signing-preflightavelikiy/great_ctoSkill11713d agoMITA105Claude Code
pr-reviewoliver-kriska/claude-elixir-phoenixSkill5782d agoMITA59Claude Code
phx-pr-reviewoliver-kriska/claude-elixir-phoenixSkill5782d agoMITA61Claude Code, Codex
batch-member-cites-a-path-only-a-non-member-addswan-huiyan/agent-traffic-controlSkill33d agoMITA53Claude Code
stagephotostructure/coding-skillsSkill513d agoMITA37Claude Code, Codex
findphotostructure/coding-skillsSkill513d agoMITA82Claude Code, Codex
gitplanphotostructure/coding-skillsSkill513d agoMITA33Claude Code, Codex