secret-handling

Solid

Never read .env files or write secrets to .squad/ committed files

AI & Automation 58 stars 15 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
59
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Context Spawned agents have read access to the entire repository, including `.env` files containing live credentials. If an agent reads secrets and writes them to `.squad/` files (decisions, logs, history), Scribe auto-commits them to git, exposing them in remote history. This skill codifies absolute prohibitions and safe alternatives. ## Patterns ### 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) - Any file matching `.env.*` UNLESS explicitly allowed (see below) **Allowed alternatives:** - `.env.example` (safe — contains placeholder values, no real secrets) - `.env.sample` (safe — documentation template) - `.env.template` (safe — schema/structure reference) **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. ### Prohibited Output Patterns **NEVER write these to `.squad/` files:** | Pattern Type | Examples | Regex Pattern (for scanning) | |--------------|----------|-------------------------------| | API Keys | `OPENAI_API_KEY=sk-pro...

Details

Author
DanWahlin
Repository
DanWahlin/ai-agent-board
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category