/devtools:sops-add-keyfrom devtools
Adds a new machine's age public key to .sops.yaml and re-encrypts all encrypted files so the new machine can decrypt them. Useful for multi-machine setups.
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.
None: SKILL.md is the whole skill.
Add a new machine's age public key to the project and re-encrypt all files so the new machine can decrypt them.
Detect current state:
python3 ${CLAUDE_SKILL_DIR}/../sops-setup/scripts/detect_sops.py <project-root>
Verify prerequisites:
project.sops_yaml.exists must be true — if not, tell user to run /devtools:sops-setup firstproject.encrypted_files should be non-empty — warn if there are no .enc.yaml files to re-encryptproject.tmp_files is non-empty, warn about stale temporary files (leftover from a failed decrypt/re-encrypt) and suggest the user delete themAudit key propagation (if encrypted files exist):
For each encrypted file, read its YAML and check the sops.age recipients list against project.sops_yaml.authorized_keys.
If any authorized key is missing from any file's recipients:
WARNING: Key age1xxx...yyy is in .sops.yaml but NOT a recipient in:
- apps/web/.env.local.enc.yaml
- apps/api/.env.local.enc.yaml
These files need re-encryption before the corresponding machine can decrypt them.
Offer to run sops updatekeys -y <file> for each affected file before proceeding with the new key addition.
Show current authorized keys from project.sops_yaml.authorized_keys:
Currently authorized keys (N):
1. age1abc...def (truncated)
2. age1ghi...jkl (truncated)
Use AskUserQuestion — ask user to paste the new machine's age public key. Validate it starts with age1.
Read .sops.yaml and add the new key to the age: field in creation_rules. Use the Edit tool to append the key to the comma-separated list or multi-line block.
Re-encrypt all files using sops updatekeys:
sops updatekeys -y <file>.enc.yaml
For each encrypted file. The -y flag auto-confirms. This re-wraps only the data encryption key for the new recipient list — values and MAC are unchanged, producing a minimal diff.
If sops updatekeys is not available (older sops version), fall back to decrypt + re-encrypt:
sops --decrypt <file>.enc.yaml > <file>.tmp.yaml
sops --encrypt <file>.tmp.yaml > <file>.enc.yaml
rm <file>.tmp.yaml
Verify: After re-encrypting, read each file's sops.age recipients block and confirm all keys from .sops.yaml (including the newly added key) appear as recipients. If any key is missing, warn the user that re-encryption may have failed.
Summary:
| Action | Detail |
|--------|--------|
| Key added | age1xyz... (new machine) |
| .sops.yaml | Updated (now N+1 authorized keys) |
| Re-encrypted | .env.local.enc.yaml |
| Re-encrypted | .env.production.enc.yaml |
Remind user to commit both .sops.yaml and the updated .enc.yaml files.
sops updatekeys): Re-wraps the DEK for the new recipient list. Safe, minimal diff. Use for onboarding machines.sops rotate -i): Generates a new DEK and re-encrypts every value. Use when a key is compromised or for periodic security hygiene.sops rotate -i after removing the compromised key from .sops.yaml.age1) before modifying .sops.yaml.enc.yaml files — missing any would lock out the new machine for those filessops updatekeys (not full decrypt/re-encrypt) for routine key additionsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sops, age-encryption, key-management, re-encrypt, multi-machine
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-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"./sops-setupSet up SOPS + age encryption for sharing .env files securely across machines. Detects existing state, installs tools, generates age keys, creates .sops.yaml, and encrypts .env files as YAML (avoids SOPS dotenv bug #1435). Use when user mentions "sops setup", "encrypt env", "share secrets", "secure env files", "sops age setup", "env encryption", "setup sops", "share env across machines".Other plugins' skills for the same job