Env doctor free
全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard
npx -y skills add bg-szy/TOP-SKILLS --skill env-doctor-freeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Diagnose local project environment issues that prevent apps from starting or running. Use when the user says "why won't this run", "check my environment", "env doctor", "diagnose startup issue", "it works on my machine", or asks for help debugging missing dependencies, runtime versions, port conflicts, .env problems, file permissions, or stopped services.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.9 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
Env Doctor
Diagnose the local environment before changing application code. Treat the project as innocent until the environment is ruled out.
Workflow
- Detect project type from files:
- Node:
package.json - Python:
requirements.txt,pyproject.toml,Pipfile, ormanage.py - Go:
go.mod - Docker:
Dockerfileordocker-compose.yml
- Node:
- Check runtime availability and versions:
- Node:
node --versionandnpm --version - Python:
python --versionorpython3 --version - Go:
go version - Docker:
docker --versionanddocker compose version
- Node:
- Check dependencies:
- Node projects with no
node_modules/: flag as high priority and suggestnpm install. - Python projects with no
.venv/,venv/, or active virtual environment: flag and suggest creating one, then installing requirements. - Go projects: run
go mod tidyonly after explaining it mutatesgo.mod/go.sum; otherwise suggest it as the fix. - Docker projects: check whether Docker is running before suggesting rebuilds.
- Node projects with no
- Check common port conflicts for
3000,3001,5000,8000, and8080.- Detect the operating system before providing commands.
- On macOS/Linux, inspect listeners with
lsof -nP -iTCP:<port> -sTCP:LISTEN, then identify the PID withps. - On Windows PowerShell, inspect listeners with
Get-NetTCPConnection -LocalPort <port>, then identify the owning PID withGet-Process. - Report the PID, executable or service name, and available ownership evidence before suggesting any stop action.
- Prefer the application's documented stop command,
Ctrl+Cin its owning terminal, or a targeted service stop. - Never assume a listener is stale or belongs to the project. Do not terminate any process without the user's explicit approval.
- Never default to
kill -9,Stop-Process -Force, or a broad process-name kill. Escalation to a force-kill requires a confirmed target, a failed normal stop, and separate explicit approval.
- Validate environment variables:
- Compare
.env.exampleagainst.envwhen both or either exist. - Flag missing
.envif.env.exampleexists. - Flag missing required variables listed in
.env.example. - Always flag missing
DATABASE_URLwhen it appears in.env.examplebut is absent from.env. - Treat every value after the first
=as a secret, including comments or examples that resemble credentials. - Parse only key names and whether each value is empty. Never print, quote, store, summarize, or retain values in findings, evidence, logs, or commands.
- Do not use raw-display commands such as
cat .env,Get-Content .env, or unredactedgrepoutput. - Redact accidental value exposure immediately and refer to variables by key name only.
- Compare
- Check file permissions:
- Verify the project directory is writable before running installers or build commands.
- For Unix-like scripts referenced by
package.json,Makefile, Docker, or shell commands, check whether executable bits may be required and suggestchmod +x <script>.
- Check background services when the project appears to need them:
- Postgres: referenced by
DATABASE_URL,postgres,pg,psycopg, Prisma, Django, Rails-like config, ordocker-compose.yml. - Redis: referenced by
REDIS_URL,redis, Celery, BullMQ, Sidekiq-like config, ordocker-compose.yml. - MySQL: referenced by
MYSQL_URL,mysql,mysqlclient,pymysql, ordocker-compose.yml. - Prefer non-destructive status checks. Suggest start commands only after identifying the likely service.
- Postgres: referenced by
Reference Loading
Read references/checks.md when the project type is known, when the user asks for a checklist, or when framework-specific .env validation is needed for Express, Django, Gin, or Flask. Read references/safety-fixtures.md before evaluating or changing the port or .env behavior of this skill.
Output Shape
Return a prioritized checklist, highest impact first:
**Env Doctor Findings**
1. [High] <issue>
Evidence: `<command output or file reference>`
Fix:
<Use a `powershell` code fence on Windows or a `bash` code fence on macOS/Linux. Include only the matching OS command.>
2. [Medium] <issue>
Evidence: `<command output or file reference>`
Fix:
<Use a `powershell` code fence on Windows or a `bash` code fence on macOS/Linux. Include only the matching OS command.>
**Likely Start Command**
`<command>`
**What I Checked**
Node/Python/Go/Docker runtimes, dependencies, ports, .env key presence, permissions, services. No .env values were displayed or retained.
If no issue is found, say that the environment looks healthy and identify the next best application-level debugging step.
Required Quality Cases
- Missing
node_modules/in a Node project must be reported withnpm install. - Port
3000in use must be reported with an OS-appropriate inspection command and ownership evidence before any stop action. - Missing
DATABASE_URLin.env, when required by.env.example, must be reported as a high-priority environment variable issue. .envfindings and evidence must contain key names and empty/present state only, never values.- An unrelated process that owns a common port must not be stopped or given an unconditional termination command.
- POSIX commands must use a
bashblock and Windows commands must use apowershellblock.
What ships with it: 1 file
94.5 KB alongside SKILL.md
- skill-report.json94.5 KB
Gives 0 of the 12 instructions most debug triage skills give in ~1.3k tokens
Counted across 839 of the 1,149 authors here whose files we hold, read 2026-08-07
- Investigate root cause before proposing any fixin 102 of 839, across 67 files
- Read error messages completelyin 89 of 839, across 49 files
- Create a failing test case before fixingin 84 of 839, across 46 files
- Reproduce the issue consistentlyin 82 of 839, across 41 files
- Change one variable at a timein 82 of 839, across 42 files
- Check recent changesin 74 of 839, across 36 files
- Write the regression test before fixingin 74 of 839, across 40 files
- Fix the root cause not the symptomin 60 of 839, across 45 files
- Implement a single fix at a timein 59 of 839, across 20 files
- Trace data flow backward to the sourcein 50 of 839, across 20 files
- Remove all debug instrumentationin 49 of 839, across 13 files
- Form a single hypothesisin 48 of 839, across 18 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.