gpg-sign-history

gpg-sign-history is a skill for Claude Code from bengous/claude-code-plugins. It costs 39 tokens per session (1,056 once invoked), scanned A, original, MIT.

A tool for adding GPG signatures to unsigned Git commits while preserving their files, authors, dates, and messages. Git is the version-control system that records project history.

In plain words
What is it for?
It is for signing the unsigned history of the current branch, such as during key rotation or a security cleanup.
Why use it?
Projects may require verified commits, but signing existing commits rewrites their identifiers and requires a force-push. This process backs up the branch and checks each replacement before moving it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the git plugin — 4 skills shipped together

Good fit It is for signing the unsigned history of the current branch, such as during key rotation or a security cleanup.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bengous/claude-code-plugins
Claude Code
/plugin install git

Made for: Claude Code.

Or install git, the plugin that ships this one along with the rest of its 4 skills.

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 gpg-sign-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/bengous/claude-code-plugins/gpg-sign-history/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/gpg-sign-history)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/gpg-sign-history"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/gpg-sign-history/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 gpg-sign-history

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/gpg-sign-history"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/gpg-sign-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 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.00039 $0.01056
Opus 5.5 $0.00016 $0.00422
Sonnet 5.5 $0.00008 $0.00211
Haiku 4.5 $0.00004 $0.00106

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

Security

Grade A, and why

gpg-sign-history 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 29d 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.

git/skills/gpg-sign-history/SKILL.md · 89 lines

How it starts

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

GPG-sign history

The plugin's backend does every mechanical step and prints one JSON object per run. It finds the unsigned commits of the current branch and checks that the key signs. It recreates each commit from the oldest unsigned one up to the tip, with the same tree, parents, author, dates and message, and checks every new commit against the one it replaces. Only then does it move the branch, behind a backup branch of its own. This skill explains the tradeoff and asks the user twice.

1. Signature dates

A signature carries its own creation time, and every signature this rewrite makes is dated today. The Git dates stay, and GitHub shows Verified beside them, but git verify-commit --raw <sha> prints the signature's date: anyone who inspects a re-signed commit sees when it was signed. Re-signing fits a key rotation, a security cleanup, or a project that requires a signed history. For a user who only wants old commits to show Verified, recommend Stop: the badge costs a new SHA for every commit in the rewrite and a force-push, and anyone who checks sees the signatures were made today.

Before anything runs, explain this and ask through AskUserQuestion, which records the choice; a reply in chat is not that record. Three options:

  • Audit only: step 2, then the report; the history stays as it is.
  • Continue signing: the whole procedure, signatures dated today accepted.
  • Stop: nothing runs; the history stays as it is.

2. Audit

run `"${CLAUDE_PLUGIN_ROOT}/scripts/gpg-sign-history.ts" audit`

On ok: false, report error and detail and stop. Otherwise report unsigned_count out of commits, with the unsigned list, and sample_signature: its signed_at beside its committed_at shows the date tradeoff on the user's own history.

  • unsigned_count is 0: say so and stop.
  • signing.ready is false: give signing.detail and, for key-locked, the signing.unlock command, which the user runs in their own terminal; then run the audit again.
  • Audit only: restate the date tradeoff and stop.

Read the full file on GitHub · 89 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. 29d ago First seen · 89 lines · 39 tokens per session scan A ec5b3559cb30

Subscribe to this mod's changes

gpg-sign-history is a skill published in the GitHub repository bengous/claude-code-plugins (6 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,056 once invoked, about $0.0002 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-11-01.

Related

gpg-sign-history compared with skills from other repositories

gpg-sign-history next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gpg-sign-historybengous/claude-code-pluginsSkill6todayMITA39Claude Code
development-workflowathola/claude-night-marketSkill358yesterdayMITA20Claude Code
git-workflowvstorm-co/pydantic-deepagentsSkill1.1ktodayMITA17Claude Code, Codex
retroRune-kit/runeSkill96yesterdayMITA57Claude Code
gitRune-kit/runeSkill96yesterdayMITA60Claude Code
safeguardRune-kit/runeSkill96yesterdayMITA41Claude Code
stepwise-task-executionmakifbaysal/tasktrooperSkill123todayApache-2.0A33Claude Code, Codex