env-doctor

Reviewed at commit f7da140

Env Doctor

Made by
YeonwooSung
What we checked

Adds an /env-doctor command that checks the Node and package manager versions against the engines and packageManager fields in your package.json, and reports whether environment variables you list are set or missing, never their values. It runs the version commands of node, npm, pnpm or yarn in your project and stores the variable names you asked it to track.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since b375bb2; the rest carries over from the review at that commit. Registers session.start (registers /env-doctor), command.run and a tool.call handler that is a pass-through (the feature has no observe method, so it returns next(e) untouched). On '/env-doctor check' it reads package.json with $.fs.read and runs only 'node|npm|pnpm|yarn --version' via $.process.run (10 s timeout, project as cwd); argv is restricted to exactly one of those four programs plus --version. Presence of a variable is tested by running 'node -- <plugin root>/hooks/env-presence.mjs NAME' (the shipped script, name validated by regex), which prints only 'set' or nothing and never the value. Persistent state is the list of required variable names (max 200) via $.store. Output goes through safeText redaction and a 32 KiB cap. Caveat: the version probes run whatever binary the project environment resolves; yarn 2+ runs the release file named by yarnPath in the project's .yarnrc.yml, and pnpm or corepack can fetch the packageManager version from the npm registry before answering --version. The plugin itself makes no network calls and writes no files. The version-range comparison is a small hand-written subset of semver and reports UNKNOWN for other syntax. npm dependencies: none. What changed: the store key is now built from a local pure hash (two FNV-style 32-bit hashes of the session cwd and id, defined in core/runtime.ts) instead of the raw JSON, with a fallback read of the old key when it is short enough; this avoids keys over the host's length limit. Plugin version 0.1.2. No new calls, hosts, files or permissions.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
None listed
Made this mod? Add a badge to your README

modsforClaude badge for env-doctor

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/env-doctor.svg)](https://modsforclaude.com/mods/env-doctor/)

← All mods