What problem does it solve?
This Skill prevents accidental exposure of sensitive credentials by forbidding agents from reading live .env files and by blocking the inclusion of secrets in committed repository files, especially within the .squad/ decision and history artifacts.
Core Features & Use Cases
- Prohibited Reads: Explicitly forbids reading .env, .env.production, .env.local and other live-secret files while allowing safe examples like .env.example.
- Pre-Commit Secret Scanning: Defines regex-based detection of API keys, passwords, connection strings, JWTs, private keys, and other secret patterns and mandates blocking commits that contain them.
- Remediation & Escalation: Provides clear steps to remove staged secrets, notify the user, revoke exposed credentials, and remove secrets from git history using specialized tools.
- Safe Alternatives: Recommends asking users for values, reading placeholder files, and writing placeholders or redacted references instead of real secrets.
Quick Start
Ask the agent to run the pre-commit secret scan on staged files and block any commit that contains detected secret patterns.