/gpg-ops:gpg-export-public-keyfrom gpg-ops
Export 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.
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 share their public key — to register on GitHub for verified commits, send to a correspondent for encrypted email, publish on a keyserver, or paste into a website's "PGP key" field.
If the user didn't specify which key, list available secret keys (only keys whose private half is on this machine can be meaningfully "their" public key to share):
gpg --list-secret-keys --keyid-format=long
Pick by email, long key ID, or full fingerprint.
ASCII-armored (the universal default for sharing):
gpg --armor --export <email-or-keyid>
Write to file:
gpg --armor --export <email-or-keyid> > <name>-public.asc
Binary (for tooling that wants .gpg):
gpg --export <email-or-keyid> > <name>-public.gpg
-----BEGIN PGP PUBLIC KEY BLOCK----- … -----END PGP PUBLIC KEY BLOCK----- block.gpg --keyserver keys.openpgp.org --send-keys <KEYID>
keys.openpgp.org requires email verification before the key becomes searchable. Don't use the legacy SKS keyservers..asc file by email or paste the armored text.Show the fingerprint so the user can confirm it matches what they intended:
gpg --show-keys <name>-public.asc
--export-secret-keys unless the user is migrating their private key to another machine.gpg-export-private-key workflow — out of scope for this skill, and require explicit user confirmation before running.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-generate-keyGenerate a new GPG keypair (primary signing key + encryption subkey) on the local GnuPG keyring. Use when the user wants to create a new GPG identity, set up signing for git commits, or create a key for encrypted email. Confirms key parameters before generation; defaults to ed25519/cv25519 with no expiry unless the user specifies otherwise./gpg-list-keysList GPG keys on the local keyring — public keys, secret keys, or both. Use when the user wants to see what keys they have, find a key ID or fingerprint, or check whether a contact's public key is already imported before encrypting to them./gpg-signSign 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./gpg-verifyVerify a GPG signature on a file or clear-signed text. Use when the user has downloaded a release artefact + `.sig`/`.asc` and wants to confirm authenticity, or received a clear-signed message and wants to check it. Distinguishes "good signature, untrusted key" from "good signature, trusted key" — both are cryptographically valid; only the latter proves identity.gpg-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin gpg-ops