/devtools:sops-setupfrom devtools
Interactive setup wizard for SOPS + age encryption to securely share .env files across machines. Detects existing state, installs tools, generates age keys, creates .sops.yaml, and encrypts .env files as YAML (avoiding SOPS dotenv bug #1435).
Ships in devtools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Interactive setup for SOPS + age encryption. Detects current state and guides through configuration.
Important: This skill uses YAML format for encrypted files (not dotenv) because SOPS has a known bug (#1435) where the dotenv store corrupts backslash and \n sequences on decrypt. A helper script handles dotenv↔YAML conversion transparently.
Run the detection script to understand current state:
python3 ${CLAUDE_SKILL_DIR}/scripts/detect_sops.py <project-root>
Run the detector on the project root:
python3 ${CLAUDE_SKILL_DIR}/scripts/detect_sops.py <project-root>
Summarize findings — show a status table:
| Component | Status | Detail |
|---|---|---|
| sops binary | installed/missing | version, path |
| age binary | installed/missing | version, path |
| age key | exists/missing | public key (truncated) |
| .sops.yaml | exists/missing | # of authorized keys |
| .env files | N found | list of filenames |
| encrypted files | N found | list of *.enc.yaml files |
| .gitignore | ok/needs update | env ignored, enc.yaml not ignored |
Walk through each missing component. Skip steps where detection shows everything is already configured.
Install tools (if tools.sops.installed or tools.age.installed is false):
os field:
brew install sops ageGenerate age key (if age_key.exists is false):
mkdir -p ~/.config/sops/ageage-keygen -o ~/.config/sops/age/keys.txtchmod 600 ~/.config/sops/age/keys.txtGenerate backup key (recommended):
AskUserQuestion — offer to create an offline backup key for disaster recoveryage-keygen 2>&1 | tee /dev/stderr | grep "public key:" | awk '{print $NF}'
Display BOTH the public key AND the full output (which includes the private key).
Tell user: Copy the entire output (including the private key line starting with AGE-SECRET-KEY-) to a password manager or secure offline storage. This is your recovery key..sops.yaml alongside the machine keyCreate .sops.yaml (if project.sops_yaml.exists is false):
.sops.yaml with machine key + backup key (if generated):
creation_rules:
- path_regex: (^|/)\.env\.[^/]+\.enc\.yaml$
age: >-
<machine-public-key>,
<backup-public-key>
.sops.yaml already exists but is missing this machine's key, offer to add itSet up .gitattributes for diff-friendly encrypted files:
.gitattributes:
*.enc.yaml diff=sopsdiffer
git config diff.sopsdiffer.textconv "sops decrypt"
git diff show decrypted content for encrypted filesUpdate .gitignore (if needed):
.env* patterns are ignored (secrets must not be committed in plaintext)*.enc.yaml is NOT ignored (encrypted files should be committed)Encrypt files (if project.env_files is non-empty):
AskUserQuestion (multiSelect: true) — show detected .env* filespython3 ${CLAUDE_SKILL_DIR}/scripts/dotenv_yaml.py to-yaml <file> > <file>.enc.yaml.tmp
sops --encrypt <file>.enc.yaml.tmp > <file>.enc.yaml
rm <file>.enc.yaml.tmp
Example: .env.local → .env.local.enc.yamlConfirmation summary — show table of all actions taken:
| Step | Action | Result |
|------|--------|--------|
| Tools | sops 3.9.4, age 1.2.0 | installed |
| Key | Machine key generated | age1abc...def |
| Key | Backup key generated | age1xyz...uvw (save offline!) |
| Permissions | chmod 600 keys.txt | done |
| Config | .sops.yaml created | 2 keys authorized |
| Git | .gitattributes updated | sopsdiffer configured |
| Git | .gitignore updated | .env* ignored |
| Encrypt | .env.local → .env.local.enc.yaml | done |
## Next Steps
- Commit .sops.yaml, .gitattributes, and *.enc.yaml files to git
- On another machine: clone, install sops+age, place age key, run /devtools:sops-decrypt
- To add another machine: /devtools:sops-add-key
- To encrypt after editing .env: /devtools:sops-encrypt
- To decrypt after pulling: /devtools:sops-decrypt
AskUserQuestion for every decision. Do not assume user preferences.--input-type dotenv. Use the dotenv_yaml.py helper for conversion.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sops, age-encryption, env-encryption, secret-management, setup-wizard
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin devtools9 skills in this plugin
/browser-companionZero-dependency live-preview server providing an agent↔browser bidirectional companion. Watches a content directory, wraps HTML fragments in a frame template, broadcasts live-reload over WebSocket, and captures browser-side click events to a JSONL file. Use when an agent needs to show HTML to the user in a browser and react to clicks — mockups, design exploration, gallery browsing, multi-select choices, prototype iteration. Triggered by "live preview", "browser companion", "preview server", "browser mockup", "show in browser", "arkhe-preview", or any skill that wants to write HTML fragments and have the user see them reload in real time./code-env-setupInteractive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code"./quality-stackScan a project to detect configured quality and testing tools across JVM (Gradle/Maven), Android (AGP/Compose/KMP), Node.js/TypeScript, and Python ecosystems. Cross-reference against research-backed recommendations and assist with setup. Auto-detects project type(s) including monorepos with mixed ecosystems. Use when user asks to "audit tooling", "recommend tools", "quality stack", "what tools am I missing", "setup eslint", "setup detekt", "add coverage", "add ruff", "configure CI quality pipeline", "scan project tools", "tooling audit", "android tooling", "android quality", "compose testing", "kmp testing", or "screenshot testing".
/sops-add-keyAdd a new machine's age public key to .sops.yaml and re-encrypt all files. Use for multi-machine setups. Use when user mentions "add key", "add machine", "sops add key", "new machine", "authorize machine", "share key", "add public key", "multi machine sops"./sops-decryptDecrypt SOPS-encrypted YAML files back to .env format. Finds *.enc.yaml files, decrypts, and converts YAML back to dotenv. Use when user mentions "decrypt env", "sops decrypt", "decrypt secrets", "restore env", "decrypt .env", "restore secrets", "decrypt environment files"./sops-encryptEncrypt .env files using SOPS + age. Converts dotenv to YAML format (avoids SOPS bug #1435), then encrypts. Auto-detects unencrypted .env files. Use when user mentions "encrypt env", "sops encrypt", "encrypt secrets", "encrypt .env", "encrypt environment", "re-encrypt", "update encrypted".Other plugins' skills for the same job