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
- Never store raw private keys in config, env vars, or memory files
- Use session keys / delegated access instead of full control
- All secret access goes through 1Password CLI (
op) - Validate all outputs before sending to prevent key leakage
References
references/secure-storage.md- 1Password patterns for agent secretsreferences/session-keys.md- ERC-4337 delegated access patternsreferences/leak-prevention.md- Pre-commit hooks and output sanitization