bedkillerspacex-boop/codex-skill-library/age-encryption-cli

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

age (FiloSottile/age) encrypt/decrypt for files and SOPS integration: X25519 recipients, SSH recipients, identity files, armor, and git-friendly workflows. Use when encrypting secrets for repos, handoffs, or SOPS-age backends on owned systems — not for breaking others’ ciphertext or committing private identities.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/age-encryption-cli

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/age-encryption-cli.

age Encryption CLI

Scope And Authorization

  • In scope: encrypting data for teams/systems you operate; managing your recipients/identities.
  • Out of scope: attacking others’ encrypted files; sharing private keys in tickets/chat.
  • Private identities (age1... secret keys / AGE-SECRET-KEY-1...) are high-value secrets.
  • Prefer hardware-backed or passphrase-protected storage for long-term identities.
  • Pair automation with code-quality-standards and secrets-management-hygiene.

When To Use

  • Encrypt files for multiple recipients with age.
  • SOPS using age as creation rule backend.
  • Replacing ad-hoc GPG for simple file encryption in CI/dev.
  • Generating and rotating recipient keys for a team.

Do Not Use As Primary

NeedSkill instead
Org-wide secrets programsecrets-management-hygiene
Ansible Vaultansible-vault-usage
Cloud KMS-only envelope patternscloud secrets skills
ACME/TLS cert automationacme-dns01-automation
Implementation quality baselinecode-quality-standards

Domain Focus

ItemPurpose
RecipientPublic key (age1...) or SSH pubkey that can decrypt
IdentityPrivate key file for decrypt
-a / armorASCII armored ciphertext for git
-RRecipients file (list of public keys)
-iIdentity file(s) for decrypt
SOPSEncrypts structured YAML/JSON/env fields with age

Workflow

1. Confirm scope and success criteria
  1. Record data class, who must decrypt (humans, CI bots), and storage location (git vs object store).
  2. Success: encrypt with intended recipients only; CI decrypts via bot identity; rotation plan exists.
  3. Decide passphrase-protected identity vs machine identity.
2. Install and generate keys
bash
# Install per platform (examples)
# go install filippo.io/age/cmd/...@latest
age --version
age-keygen -o key.txt
# key.txt contains AGE-SECRET-KEY-1... and prints public age1...
age-keygen -y key.txt # show public recipient from identity file
  1. Store key.txt outside git; chmod 600.
  2. Publish only the age1 public recipient to the team list.
3. Encrypt and decrypt files
bash
# Single recipient
age -r age1xxxxxxxx -o secrets.yaml.age secrets.yaml
# Multiple recipients
age -r age1alice -r age1bob -o bundle.age bundle.tar
# Recipients file
cat > recipients.txt <<'EOF'
# alice
age1alice...
# bob
age1bob...
# ci bot
age1ci...
EOF
age -R recipients.txt -a -o secrets.env.age secrets.env
# Decrypt
age -d -i key.txt -o secrets.env secrets.env.age

SSH recipient (convenient for humans):

bash
age -R ~/.ssh/id_ed25519.pub -o f.age f
age -d -i ~/.ssh/id_ed25519 -o f f.age
4. SOPS + age pattern
yaml
# .sops.yaml
creation_rules:
- path_regex: secrets/.*\.yaml$
age: >-
age1alice...,age1bob...,age1ci...
bash
sops --encrypt --in-place secrets/prod.yaml
sops --decrypt secrets/prod.yaml > /dev/shm/prod.yaml
# Edit
sops secrets/prod.yaml
  1. Never commit decrypted plain files.
  2. CI: inject bot identity via secret store; SOPS_AGE_KEY_FILE or SOPS_AGE_KEY.
5. Rotation and access control
EventAction
Person joinsAdd recipient; re-encrypt secrets
Person leavesRemove recipient; re-encrypt all secrets with new recipient set
Bot compromiseGenerate new bot identity; revoke old; rotate ciphertext
Suspected leakRotate identities + all encrypted payloads
bash
# Re-encrypt for new recipient set (decrypt with old, encrypt with new)
age -d -i key.txt -o - old.age | age -R recipients-new.txt -a -o new.age
6. Verify
bash
# Wrong identity must fail
age -d -i wrong-key.txt secrets.env.age && echo 'FAIL: decrypted' || echo 'ok deny'
# List recipients (metadata) when using tools that support inspection; otherwise doc recipients file
sha256sum secrets.env.age
  1. Confirm armored files are readable as ASCII in PRs.
  2. Ensure shell history does not capture passphrases (set +o history practices).
7. Hand off
  1. Document recipients owners, identity backup, and SOPS paths.
  2. CODEOWNERS on recipients.txt / .sops.yaml.
  3. Train team: never paste AGE-SECRET-KEY into chat.

Good / Bad

TopicGoodBad
KeysPublic in repo; private in vaultIdentity committed to git
RecipientsExplicit file + rotationEncrypt only to personal laptop key for team secrets
CIEphemeral key mountLong-lived key in plaintext log
FormatArmored for git textBinary blobs without need
RotationLeave re-encrypt checklistRemove person but leave old ciphertext

Output Checklist

  • [ ] Recipients and owners listed
  • [ ] Identities stored safely (not in git)
  • [ ] Encrypt/decrypt path tested for humans and CI
  • [ ] SOPS rules (if used) cover secret paths
  • [ ] Rotation procedure documented
  • [ ] Armor/git hygiene decided
  • [ ] Access removal path tested once
  • [ ] code-quality-standards on scripts

Rules

  • Protect private identities like production root keys.
  • Encrypt only for current need-to-know recipients.
  • Do not attempt to “break age” for unauthorized access.
  • Prefer age/SOPS over DIY crypto.
  • Never log plaintext secrets during decrypt in CI.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/age-encryption-cli/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/age-encryption-cli)

Something wrong with this skill or its page? Tell us.