This skill helps you manage encrypted task plans and keys with the safe CLI, improving secure multi-agent collaboration.
npx playbooks add skill smithclay/skills --skill secret-tasks
Create and manage encrypted task files for secure multi-agent orchestration using the [safe CLI](https://github.com/grittygrease/safe).
| Action | Trigger Phrases |
|--------|-----------------|
| Generate keypair | "generate keys", "keygen", "create keypair" |
| Configure private key | "use key", "set private key", "configure decryption" |
| Add recipient | "add recipient", "add public key" |
| List keys | "list keys", "show configuration", "what keys" |
| Create plan | "create plan", "create encrypted tasks", "make secret plan" |
| Decrypt task | "decrypt task", "show task", "reveal task" |
---
When: User wants to create new encryption keys.
Steps:
mkdir -p ~/.safe
safe keygen x25519 -o ~/.safe/[name]
~/.safe/[name].x25519.key (keep secret)~/.safe/[name].x25519.pub (share with team).key files~/.safe/*.key to global gitignore.pub files with collaborators---
When: User wants to set which key to use for decryption.
Steps:
test -f "[path]" && echo "OK" || echo "ERROR: Key not found"
mkdir -p .claude
.claude/secret-tasks.local.md (if exists) to preserve public_keys ---
private_key: [path]
public_keys:
- [preserved existing keys]
---
# Secret Tasks Configuration
Add this file to .gitignore.
SAFE_KEY_PATH env var---
When: User wants to add a public key that can decrypt tasks.
Steps:
test -f "[path]" && echo "OK" || echo "ERROR: Key not found"
safe keyinfo "[path]" 2>/dev/null | grep -q "public"
mkdir -p .claude
public_keys list and write updated settings---
When: User wants to see current key configuration.
Steps:
.claude/secret-tasks.local.mdSAFE_KEY_PATH (or "not set")SAFE_PUB_KEY (or "not set")---
When: User wants to create an encrypted task plan from requirements.
Prerequisites: At least one public key configured.
Steps:
.claude/secret-tasks.local.md (project-local)~/.claude/secret-tasks.local.md (user-global)SAFE_PUB_KEY env varWith multiple recipients:
echo "DESCRIPTION" | safe encrypt -i - -o - -r key1.pub -r key2.pub | base64
Single recipient:
echo "DESCRIPTION" | safe encrypt -i - -o - -r "$SAFE_PUB_KEY" | base64
{
"id": "N",
"subject": "Secret Task N",
"description": "Decrypt the following using the safe CLI: \"BASE64\"",
"activeForm": "Working on secret task N",
"status": "pending",
"blockedBy": [],
"blocks": []
}
mkdir -p ~/.claude/tasks/[feature-slug]
Write each task to ~/.claude/tasks/[feature-slug]/N.json
CLAUDE_CODE_TASK_LIST_ID=~/.claude/tasks/[slug] claude---
When: User wants to see a task's actual description, or Claude encounters encrypted task content.
Trigger detection: Description contains "Decrypt the following using the safe CLI:"
Steps:
.claude/secret-tasks.local.md for private_keySAFE_KEY_PATH env var~/.claude/tasks/*/$ID.json echo "BASE64" | base64 -d | safe decrypt -i - -o - -k "[private-key-path]"
Task #N: Secret Task N
Status: pending
Blocked by: [deps]
Blocks: [deps]
--- Decrypted Description ---
[actual task content]
Error handling:
---
Location: .claude/secret-tasks.local.md
---
private_key: ~/.safe/mykey.x25519.key
public_keys:
- ~/.safe/alice.x25519.pub
- ~/.safe/bob.x25519.pub
- /shared/team.pub
---
# Secret Tasks Configuration
Add this file to .gitignore.
| Variable | Purpose |
|----------|---------|
| SAFE_KEY_PATH | Private key for decryption |
| SAFE_PUB_KEY | Public key for encryption (single recipient) |
Settings file takes priority over environment variables.
---
{
"id": "1",
"subject": "Secret Task 1",
"description": "Decrypt the following using the safe CLI: \"c2FmZS1lbmNy...\"",
"activeForm": "Working on secret task",
"status": "pending",
"blockedBy": [],
"blocks": ["2", "3"]
}
Visible (no key needed): IDs, subjects, dependencies, status
Hidden (encrypted): Actual descriptions, file paths, implementation details
---
CLAUDE_CODE_TASK_LIST_ID=~/.claude/tasks/my-feature claude
Claude Code will:
---
"No private key configured"
# Configure via settings (recommended)
# Tell Claude: "use key ~/.safe/mykey.x25519.key"
# Or via environment
export SAFE_KEY_PATH=~/.safe/mykey.x25519.key
"Decryption failed"
"safe: command not found"
Install from: https://github.com/grittygrease/safe
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.