bagman

SKILL.md

Bagman

Secure key management patterns for AI agents handling private keys and secrets. Designed to prevent:

  • Key loss: Agents forgetting keys between sessions
  • Accidental exposure: Keys leaked to GitHub, logs, or outputs
  • Prompt injection: Malicious prompts extracting secrets

Core Principles

  1. Never store raw private keys in config, env vars, or memory files
  2. Use session keys / delegated access instead of full control
  3. All secret access goes through 1Password CLI (op)
  4. Validate all outputs before sending to prevent key leakage

References

  • references/secure-storage.md - 1Password patterns for agent secrets
  • references/session-keys.md - ERC-4337 delegated access patterns
  • references/leak-prevention.md - Pre-commit hooks and output sanitization
Installs
9
First Seen
Mar 12, 2026