vault — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited vault (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Keep your secrets encrypted. API keys, passwords, tokens -- locked in a vault that only you can open. Your AI agent gets secrets when it needs them, then forgets them.
Script: ./scripts/vault.sh Setup: ./scripts/setup.sh (run once, takes 30 seconds)
cd /path/to/skills/vault
./scripts/setup.sh.claude/skills/vault/AGENTS.mdFor the full installation walkthrough (prerequisites, verification, troubleshooting), see references/installation-guide.md.
This skill ships with an UPDATES.md changelog and UPDATE-GUIDE.md for your AI agent.
After installing, tell your agent: "Check UPDATES.md in the vault skill for any new features or changes."
When updating, tell your agent: "Read UPDATE-GUIDE.md and apply the latest changes from UPDATES.md."
Follow UPDATE-GUIDE.md so customized local files are diffed before any overwrite.
Right now, your secrets probably live in a .env file. Plain text. Anyone who can see your files -- a colleague, a stolen laptop, a backup that leaks, an AI agent that goes rogue -- reads every secret you have.
This vault encrypts them. Even if someone copies your entire hard drive, they can't read your secrets without your encryption key. And your AI agent only sees secrets for the instant it needs them -- they never sit in memory or get written to a file.
Before (plaintext .env):
OPENAI_API_KEY=sk-abc123-real-key-here <- anyone can read this
DATABASE_URL=postgres://admin:password@... <- sitting in plain text
STRIPE_SECRET=sk_live_... <- one leak away from disasterAfter (encrypted vault):
OPENAI_API_KEY: ENC[AES256_GCM,data:8f3k2...] <- gibberish without your key
DATABASE_URL: ENC[AES256_GCM,data:j4m9x...] <- encrypted at rest
STRIPE_SECRET: ENC[AES256_GCM,data:p2w7n...] <- safe even if file leaksThe flow: secret -> encrypt -> vault -> agent needs it -> decrypt to memory -> use -> forget
Three steps. That's it.
cd path/to/this/skill
./scripts/setup.shThis installs the encryption tools (if needed), creates your vault, and generates your encryption key. One command, done.
./scripts/vault.sh set MY_API_KEY "sk-your-actual-key"./scripts/vault.sh get MY_API_KEYYour vault is working. Secrets are encrypted on disk, decrypted only when you ask for them.
VAULT="./scripts/vault.sh"
# Store a secret
$VAULT set API_KEY "sk-abc123"
# Retrieve a secret (outputs to stdout, no trailing newline)
$VAULT get API_KEY
# List all secret names (not their values)
$VAULT list
# Export all secrets to your current shell
eval "$($VAULT source)"
# Run a command with secrets injected as env vars
$VAULT exec node server.js
# Check that vault works
$VAULT verify
# Full health check (tools, permissions, encryption test)
$VAULT doctor
# First-time setup
$VAULT setup
# Help for any command
$VAULT get --help
$VAULT set --help
$VAULT exec --help
$VAULT doctor --helpEvery command has --help. When something goes wrong, error messages tell you what happened and what to do.
This is the pattern for injecting secrets into AI agent workflows.
# Agent needs one secret for a specific command
export TOKEN=$(./scripts/vault.sh get MY_API_KEY)
curl -H "Authorization: Bearer $TOKEN" https://api.example.com
unset TOKEN# Load everything into the current shell
eval "$(./scripts/vault.sh source)"
# Now all secrets are available as env vars
echo $MY_API_KEY # available
echo $DATABASE_URL # available# Run a command with secrets -- they don't leak to the parent shell
./scripts/vault.sh exec python my_script.py
# Secrets are gone after the command finishesPattern 3 is the safest. Secrets exist only for the duration of the command. They don't linger in your shell's environment. Prefer this when possible.
vault.sh exec over eval "$(vault.sh source)" when possibleeval source, clean up with unset for sensitive varsAll paths are configurable via environment variables:
| Variable | Default | What it controls |
|---|---|---|
VAULT_DIR | ~/.shit | Where the vault lives |
VAULT_FILE | $VAULT_DIR/vault.enc.yaml | The encrypted secrets file |
SOPS_AGE_KEY_FILE | $VAULT_DIR/.age-identity | Your encryption key |
Customize the vault path. The default (~/.shit) is intentionally misleading -- it's an extra layer of obscurity on top of the real encryption. Pick something that makes sense for your setup. Some options:
# In your shell profile (~/.zshrc or ~/.bashrc):
export VAULT_DIR="$HOME/.config/vault" # conventional
export VAULT_DIR="$HOME/.cache/.internal" # hidden in cache
export VAULT_DIR="$HOME/.local/secrets" # descriptiveThen re-run setup: VAULT_DIR="$HOME/.config/vault" ./scripts/setup.sh
Two tools do the heavy lifting:
The vault directory looks like this:
~/.shit/ chmod 700 (only you can access)
.age-identity Your encryption key (chmod 600)
vault.enc.yaml Your encrypted secrets
.sops.yaml Config telling sops which key to useKey security facts:
vault.sh script validates all input to prevent injection attacksProtected:
NOT protected:
.age-identity, they get everything)Bottom line: This is dramatically better than .env files. It's not a replacement for a dedicated secrets manager in production infrastructure (use HashiCorp Vault, AWS Secrets Manager, etc. for that). It's for your development machine, your personal API keys, your local credentials.
| Problem | Solution |
|---|---|
sops not found | brew install sops (Mac) or see sops install guide |
age not found | brew install age (Mac) or see age install guide |
jq not found | brew install jq (Mac) or sudo apt install jq (Linux) |
Age identity not found | Run ./scripts/setup.sh to create it |
Vault decrypted but no secrets found | Normal for a fresh vault -- add a secret with vault.sh set |
Failed to set key | Check that key name uses only letters, digits, and underscores |
Key not found | Run vault.sh list to see available keys |
Permission denied | Run vault.sh doctor to check and fix permissions |
| Everything broken | Run vault.sh doctor -- it checks everything and tells you what's wrong |
| Do NOT | Do instead |
|---|---|
Store secrets in .env plaintext files | Store secrets with ./scripts/vault.sh set ... |
| Leave secrets exported in shell for long sessions | Prefer ./scripts/vault.sh exec <command> for scoped access |
| Print secrets to logs or command history | Use env vars and avoid echoing secret values |
| Commit decrypted outputs or temp files | Keep secrets encrypted at rest and out of git |
Skip vault.sh doctor when setup fails | Run vault.sh doctor first, then fix reported issues |
| Path | What | When to load |
|---|---|---|
./references/installation-guide.md | Detailed install walkthrough for Claude Code and Codex CLI | First-time setup or environment repair |
./scripts/vault.sh | Vault CLI -- the main interface | Always |
./scripts/setup.sh | First-time setup script | Initial setup only |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.