
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@yixi/env-doctor
Advanced tools
Diagnose .env file drift and detect committed secrets. A free standalone version of one skill from Claude Operator.
Diagnose
.envdrift and detect committed secrets. Free standalone tool.
A small Node.js CLI that checks your project's environment configuration for the common ways it breaks in production:
.env files tracked in git.env files not in .gitignore.env.example.env.example but not actually read by code.env values that some parsers don't tolerateRuns in ~1 second on a typical repo. No telemetry. No signups. No dependencies.
# global
npm install -g @yixi/env-doctor
# or just run without install
npx @yixi/env-doctor
# Audit the current directory
env-doctor
# Audit a specific path
env-doctor ~/code/my-app
# Machine-readable output for CI
env-doctor --json
# Exit code only, no output (for CI gates)
env-doctor --quiet
| Code | Meaning |
|---|---|
| 0 | No issues, or only LOW findings |
| 1 | MEDIUM findings present |
| 2 | CRITICAL or HIGH findings present |
Use in CI as a soft gate:
# .github/workflows/ci.yml
- name: Check env config
run: npx -y @yixi/env-doctor --quiet
continue-on-error: true # warn but don't block
Or as a hard gate by removing continue-on-error.
| Severity | Check |
|---|---|
| CRITICAL | .env file tracked in git |
| CRITICAL | Pattern matching a known secret format (AWS, Stripe, GitHub, OpenAI, Anthropic, Slack, PEM, JWT) in a tracked file |
| HIGH | .env exists but isn't .gitignored |
| HIGH | Env var read in code but not documented in any .env.example / .env.sample / .env.template |
| MEDIUM | No .env.example exists at all |
| MEDIUM | Env var documented in .env.example but never read by code (likely dead) |
| LOW | Surrounding whitespace in a .env value |
| LOW | Literal quote characters likely included in a .env value |
.env.test vs .env.development) — only against the canonical example fileprocess.env[someVar]) — pure string access is required to matchThis tool runs entirely locally. It never makes a network request. It never reads files outside the directory you point it at. It never sends your env values anywhere — values are only used internally for whitespace/quote diagnostics and are never printed to stdout (only variable names and filenames appear in reports).
This is a free standalone version of one skill from Claude Operator — a production-grade CLAUDE.md and skill pack for senior engineering teams using Claude Code.
The full pack includes 17 more skills like this one, 3 subagents (verifier, context-keeper, safety-officer), 3 slash commands (/ship, /review, /cost), and a hooks/permissions config — all focused on stopping common agent failure modes before they ship.
Pricing: $27 / $69 / $174 for solo / team / lifetime. Lifetime updates within version line.
Paid CLAUDE.md skill pack with deeper LLM-aware tooling — coming soon.
MIT.
This is a small, focused tool. PRs for the following are welcome:
.envrc (direnv) formatPRs for the following will probably be closed:
v0.1.0 — initial release. Tested on Node 18, 20, 22, 24.
Part of a small family of zero-dependency static-analysis CLIs:
@yixi/env-doctor — this tool@yixi/dockerfile-doctor — Dockerfile production-safety linter@yixi/token-doctor — local Claude Code spend analyzer.env syntax linting onlyFAQs
Diagnose .env file drift and detect committed secrets. A free standalone version of one skill from Claude Operator.
We found that @yixi/env-doctor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.