What problem does it solve?
Spawned agents have read access to the entire repository, including the environment files containing live credentials. This Skill codifies absolute prohibitions and safe alternatives to prevent credential leakage into .squad/ generated decisions, logs, and history.
Core Features & Use Cases
- Prohibited File Reads: NEVER read these files: .env (production secrets), .env.local (local dev secrets), .env.production (production environment), .env.development (development environment), .env.staging (staging environment), .env.test (test environment with real credentials), and any file matching .env.* unless explicitly allowed.
- Allowed alternatives: .env.example, .env.sample, .env.template.
- If you need config info: 1) Ask the user directly β βWhatβs the database connection string?β, 2) Read .env.example β shows structure without exposing secrets, 3) Read documentation β check README.md, docs/, config guides.
- NEVER assume you can just peek at .env to understand the schema. Use .env.example or ask.
- Scribe Pre-Commit Validation: Before committing .squad changes, Scribe MUST 1) Scan all staged files for secret patterns, 2) Check for prohibited file names, 3) If secrets detected: STOP the commit and report, 4) If no secrets detected: proceed with commit.
- Remediation β If a Secret Was Already Committed: 1) STOP immediately, 2) Alert the user with guidance, 3) Do NOT attempt to fix it yourself, 4) Wait for user confirmation before resuming work.
- Examples: β Correct: Reading Config Schema; β Incorrect: Reading Live Credentials; β Correct: Scribe Pre-Commit Validation.
Quick Start
Tell the agent to never read live environment files and to consult .env.example for schema before attempting to read.