audit-env-variables
Installation
SKILL.md
- Discovery - Find all env files and code references
- Usage Analysis - Identify which variables are used vs unused
- Service Detection - Recognize services (Stripe, AWS, Supabase, etc.) and their permission implications
- Code Path Mapping - Document where each variable is used in the codebase
- Report Generation - Output a structured markdown document
- Cleanup (optional) - Safely remove unused variables with user confirmation
- Regression Prevention - Validate no regressions via build/test validation with automatic rollback
<quick_start> Audit only (default):
- Scan for
.env*files in project root - Grep codebase for
process.env.,import.meta.env., and destructured env patterns - Cross-reference declared vs used variables
- Identify services by naming patterns and categorize permissions
- Generate markdown report using the template