sops-decrypt
Installation
SKILL.md
SOPS Decrypt
Decrypt .enc.yaml files back to their plaintext .env originals.
Workflow
-
Detect current state:
python3 ${CLAUDE_SKILL_DIR}/../sops-setup/scripts/detect_sops.py <project-root> -
Verify prerequisites:
tools.sops.installedmust be true — if not, tell user to install:brew install sops(macOS) or download binary (Linux)age_key.existsmust be true — if not, guide user to place their age private key at the expected path, or setSOPS_AGE_KEY_FILEenv var
-
Show encrypted files from
project.encrypted_files. If empty, report "No encrypted files found" and exit. -
Use
AskUserQuestion(multiSelect: true) — which files to decrypt. For each, show the target output name (e.g.,.env.local.enc.yaml→.env.local). If the target file already exists, note it will be overwritten.