/gpg-ops:gpg-signfrom gpg-ops
Sign a file or text with GPG — detached signature, clear-signed, or inline. Use when the user wants to publish a release artefact with a `.sig` file, prove authorship of a document, or sign a plain-text message that recipients can verify with their copy of their public key.
Ships in gpg-ops. 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.
The user wants to attach a cryptographic signature to a file or message — for release artefacts (.tar.gz + .tar.gz.sig), signed announcements, or signed email body text.
| Mode | Flag | Output | When |
|---|---|---|---|
| Detached | --detach-sign | Separate .sig / .asc file alongside the original | Release artefacts, large binaries — original stays unchanged |
| Clear-signed | --clearsign | Plaintext wrapped in -----BEGIN PGP SIGNED MESSAGE----- | Signed email body, signed announcements that should remain human-readable |
| Inline | --sign | Single binary/armored blob containing message + signature | Niche; use detached or clear-signed instead in most cases |
gpg --armor --detach-sign --output <file>.sig <file>
Drop --armor if you want a binary .sig instead of an armored .asc-style signature. By GitHub-release convention, releases ship <artefact>.tar.gz + <artefact>.tar.gz.sig (binary) or .asc (armored).
To sign with a specific key (if you have multiple secret keys):
gpg --local-user <KEYID-or-email> --armor --detach-sign --output <file>.sig <file>
gpg --clearsign --output <file>.asc <file>
Or pipe text:
echo "Announcement: …" | gpg --clearsign
The output is human-readable plaintext with a signature appended — recipients can verify and read without a GPG-aware client.
Round-trip the signature locally before publishing:
gpg --verify <file>.sig <file> # detached
gpg --verify <file>.asc # clear-signed (verifies and prints the message)
You should see gpg: Good signature from "Your Name <email>".
If multiple people need to sign the same artefact (e.g. a release with co-maintainers), each signer produces their own detached signature:
# Alice
gpg --local-user alice@... --detach-sign --armor -o release.tar.gz.alice.asc release.tar.gz
# Bob
gpg --local-user bob@... --detach-sign --armor -o release.tar.gz.bob.asc release.tar.gz
Verifiers run gpg --verify against each .asc.
gpg-encrypt (--sign --encrypt), not here.git config commit.gpgsign true and git commit -S / git tag -s — that's a git workflow, not a direct GPG invocation.S capability flag (gpg --list-keys shows [SC] or [S] on the relevant subkey).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/gpg-decryptDecrypt a GPG-encrypted file (.gpg or .asc) using the local keyring. Handles both asymmetric (key-encrypted) and symmetric (passphrase-encrypted) ciphertext — GPG auto-detects which. Use when the user receives an encrypted file or has at-rest encrypted backups they need to read./gpg-encryptEncrypt a file or text with GPG to one or more recipients (asymmetric) or with a passphrase (symmetric). Use when the user wants to send confidential data to someone whose public key they have, or lock a file with a password. Defaults to ASCII-armored output and refuses to encrypt to keys with marginal/unknown trust unless the user confirms./gpg-export-public-keyExport a GPG public key in ASCII-armored form, ready to share, paste into GitHub, or upload to a keyserver. Use when the user wants to publish their public key, share it with a collaborator, or register it for signed commits. Selects the key by email, key ID, or fingerprint.gpg-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin gpg-ops