pratos/clanker-setup/sops-secret-editor

Claude Code and agent skill by pratos/clanker-setup

Trust tier 3
  • community
Source check pending

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

Allows pi or any agent to put secrets safely via sops.

Install

npx vskill@latest install pratos/clanker-setup/sops-secret-editor

SKILL.md

The same SKILL.md was published earlier as pratos/clanker-setup/sops-secret-editor.

Sops Secret Editor

Activation

When this skill is triggered, ALWAYS display this banner first:

╭─────────────────────────────────────────────────────────────╮
│ 🔐 SKILL ACTIVATED: sops-secret-editor │
├─────────────────────────────────────────────────────────────┤
│ Action: Safely write encrypted secrets via sops │
│ Output: Updated secrets file + redacted summary │
╰─────────────────────────────────────────────────────────────╯

When to Use

  • "add secrets via sops"
  • "update encrypted secrets"
  • "sops set"
  • "store credentials in sops"
  • "put this secret in secrets.yaml"
  • "add new api key in sops"

Inputs to Collect

  • Target secrets file path (default: nixpkgs/secrets/secrets.yaml)
  • Age key file path (default: ~/.config/sops/age/keys.txt)
  • List of secrets to update (multiple allowed):
  • Key path (slash-separated, e.g., fpl/email)
  • Secret value (never echo back)
  • Confirm yolo mode (apply all updates in one run without extra prompts)

Workflow / How to Run

1) Confirm defaults

  • Secrets file: nixpkgs/secrets/secrets.yaml
  • Age key file: ~/.config/sops/age/keys.txt

2) Validate prerequisites

  • Verify the secrets file exists.
  • Verify the age key file exists.
  • Set SOPS_AGE_KEY_FILE before running sops.

3) Convert key paths to JSON indices

  • fpl/email → ["fpl"]["email"]
  • aws/credentials → ["aws"]["credentials"]

4) Apply updates (yolo mode)

  • Use nix run nixpkgs#sops -- set --value-stdin for each secret.
  • Always JSON-encode values before passing to sops.
  • Run multiple updates in one session.

Example (multi-secret, safe stdin + JSON encoding):

bash
set -euo pipefail
export SOPS_AGE_KEY_FILE="$HOME/.config/sops/age/keys.txt"
secrets_file="nixpkgs/secrets/secrets.yaml"
# Repeat per secret (no echo; JSON-encode via python)
read -s FPL_EMAIL
printf '%s' "$FPL_EMAIL" | python3 - <<'PY' | nix run nixpkgs#sops -- set --value-stdin "$secrets_file" '["fpl"]["email"]'
import json, sys
print(json.dumps(sys.stdin.read()))
PY
read -s FPL_PASSWORD
printf '%s' "$FPL_PASSWORD" | python3 - <<'PY' | nix run nixpkgs#sops -- set --value-stdin "$secrets_file" '["fpl"]["password"]'
import json, sys
print(json.dumps(sys.stdin.read()))
PY

5) Report results (redacted)

  • Summarize only the keys updated and the target file path.
  • Do not print or log secret values.

Output Format

  • Confirmation that the secrets file was updated.
  • List of updated keys (paths only, no values).
  • Any errors encountered (redact sensitive data).

Safety Rules

  • Never echo or log secret values.
  • Never print decrypted files.
  • Always use --value-stdin and JSON encoding.
  • Do not store secrets in files, commits, or shell history.
  • Stop immediately if sops cannot decrypt the file (missing age key).

Success Criteria

  • Requested keys are updated in nixpkgs/secrets/secrets.yaml.
  • No secret values are exposed in output or logs.
  • sops exits successfully for every update.

Security

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

Quality evaluation

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

Source

Popularity

Repository stars
12
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. 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/pratos/clanker-setup/sops-secret-editor/badge)](https://verified-skill.com/skills/pratos/clanker-setup/sops-secret-editor)

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