From claudient
Audits environment variable usage across the codebase, detecting secrets at risk, missing or unused variables, inconsistencies across environments, and naming hygiene issues.
How this command is triggered — by the user, by Claude, or both
Slash command
/claudient:env-audit [path or file glob to scan]devops/The summary Claude sees in its command listing — used to decide when to auto-load this command
Audit environment variable usage in: $ARGUMENTS (default: entire project) Scan all source files, config files, Dockerfiles, compose files, CI/CD definitions, and deployment manifests. Report findings in these categories: **1. Secrets at risk** - Hardcoded credentials, tokens, API keys, or passwords in any file tracked by git - `.env` files that are not gitignored - Secrets interpolated directly into shell `run:` steps in CI (injection risk) - Docker `ARG`/`ENV` instructions that bake secrets into image layers **2. Missing variables** - Variables referenced in code (process.env.X, os.env...
Audit environment variable usage in: $ARGUMENTS (default: entire project)
Scan all source files, config files, Dockerfiles, compose files, CI/CD definitions, and deployment manifests.
Report findings in these categories:
1. Secrets at risk
.env files that are not gitignoredrun: steps in CI (injection risk)ARG/ENV instructions that bake secrets into image layers2. Missing variables
.env.example, docker-compose.yml, Kubernetes Secret/ConfigMap, or documented defaults3. Unused variables
.env, .env.example, Compose, or manifests that are never read in code4. Inconsistencies
DATABASE_URL in compose vs DB_URL in k8s)5. Hygiene
SCREAMING_SNAKE_CASE)sensitive in Terraform or type: kubernetes.io/Opaque in k8s Secrets.env files committed with real valuesOutput format:
critical / warning / info), and one-line remediationDo not print file contents verbatim — cite locations and quote only the relevant line.
npx claudepluginhub claudient/claudient --plugin claudient-personas