sign-commits

sign-commits is a skill for Claude Code, Codex from JimmyPaolini/codebase. It costs 107 tokens per session (1,887 once invoked), scanned A, original, MIT.

A workflow for adding GPG signatures to existing Git commits without changing their code content. It rewrites the relevant history on a temporary branch and keeps a backup first.

In plain words
What is it for?
Use it when asked to sign commits, re-sign a branch or pull request, add verified signatures, or satisfy signed-commit rules.
Why use it?
It helps meet repository or pull-request requirements for verified commits while preserving commit messages and file snapshots.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/sign-commits.sh.

Good fit Use it when asked to sign commits, re-sign a branch or pull request, add verified signatures, or satisfy signed-commit rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JimmyPaolini/codebase
agentmods
npx agentmods add skills/jimmypaolini/codebase/sign-commits

Made for: Claude Code, Codex.

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 sign-commits

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimmypaolini/codebase/sign-commits/github.svg)](https://agentmods.dev/skills/jimmypaolini/codebase/sign-commits)
Your own site
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/sign-commits"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/sign-commits/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 sign-commits

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/sign-commits"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/sign-commits.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,887 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.00107 $0.01887
Opus 5.5 $0.00043 $0.00755
Sonnet 5.5 $0.00021 $0.00377
Haiku 4.5 $0.00011 $0.00189

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

Security

Grade A, and why

sign-commits 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 3mo 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.

.agents/skills/sign-commits/SKILL.md · 259 lines

How it starts

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

Sign Existing Commits

Re-sign unsigned branch commits while preserving commit messages and file content.

When to Use This Skill

  • When a branch or pull request has several unsigned commits
  • When a repository or branch protection rule requires signed commits
  • When you need to re-sign history without changing the code snapshots
  • When you want a backup branch before rewriting commit history

Keywords: sign commits, GPG sign branch, re-sign PR commits, verified commits, signed history.

Prerequisites

  • Run from the repository root
  • git is available and authenticated to the remote
  • The wrapper script is available at scripts/sign-commits.sh
  • The signing configuration check script is available at scripts/git/check-commit-signing-configuration.sh
  • The branch contains only commits that are safe to rewrite

Safety Model

  • Create a backup branch before rewriting history
  • Rewrite on a temporary branch so the original branch stays untouched until verification passes
  • Fail fast on any errors or obstacles
  • Stop immediately on any rebase conflict or GPG failure
  • Skip commit hooks during --amend so hooks cannot block a metadata-only rewrite
  • Preserve commit messages and the exact final tree of the original branch tip

Scripted Workflow

Use the wrapper script for the normal path:

bash scripts/sign-commits.sh

The script performs the same workflow documented below:

  • checks for a clean working tree and a checked-out branch
  • fetches origin/main
  • validates Git and GPG signing configuration
  • verifies the branch already contains the latest origin/main
  • creates a backup branch
  • creates a temporary rewrite branch
  • finds the first unsigned branch commit and rewrites only that suffix of history
  • re-signs each rewritten commit with --no-verify --allow-empty
  • suppresses rebase todo and commit-message editors for non-interactive execution
  • verifies the rewritten final tree exactly matches the original branch tip before updating the real branch ref
  • verifies signatures and checks for zero content drift after switching the real branch to the verified rewrite
  • pushes with --force-with-lease

Read the full file on GitHub · 259 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. 3mo ago First seen · 259 lines · 107 tokens per session scan A dbd1774dbb1a

Subscribe to this mod's changes

sign-commits is a skill published in the GitHub repository JimmyPaolini/codebase (0 stars, last pushed 2mo ago), licensed MIT. It adds 107 tokens to every session and 1,887 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-01.

Related

sign-commits compared with skills from other repositories

sign-commits next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sign-commitsJimmyPaolini/codebaseSkill02mo agoMITA107Claude Code, Codex
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
git-commitThinkInAIXYZ/deepchatSkill6.4kyesterdayApache-2.0A15Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill11ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill4.2k2d agoApache-2.0A25Claude Code
contributingHugoRCD/evlogSkill2.0kyesterdayMITA68Claude Code, Codex
git-commit-writermergisi/awesome-openclaw-agentsSkill4.1k26d agoMITA53Claude Code, Codex