Environment Check
Diagnose environment setup, dependencies, and configuration.
Workflow
Detect the project type from manifest files and directory structure.
Run checks by category:
Runtime & Tools
- Language version:
node -v, python3 --version, go version, rustc --version, java -version.
- Package manager:
npm -v, yarn -v, pnpm -v, pip --version, cargo --version.
- Required CLI tools:
git, docker, gh, framework CLIs.
- Compare against version requirements in
.nvmrc, .python-version, .tool-versions, engines field, etc.
Dependencies
- Are dependencies installed? Check for
node_modules/, venv/, vendor/.
- Are lockfiles up to date? Compare
package.json vs package-lock.json timestamps.
- Any missing native dependencies? (e.g.,
sharp, bcrypt, psycopg2).
Configuration
- Required environment variables: scan
.env.example, .env.template, or code for process.env.*, os.environ.*.
- Compare against actual
.env file — report missing variables.
- Config file validity: JSON/YAML syntax, required fields.
Services
- Database connectivity: check if expected port is open (
pg, mysql, redis, mongo).
- Docker:
docker compose ps if docker-compose.yml exists.
- Required services running.
Permissions & Paths
- File permissions on scripts, SSH keys.
- PATH includes required directories.
- Write permissions on output directories.
- Present results as a checklist:
Environment Check Results
=========================
[PASS] Node.js v20.11.0 (required: >=18)
[PASS] npm v10.2.0
[PASS] Dependencies installed (node_modules exists)
[WARN] Lockfile is 3 days older than package.json — consider running npm install
[FAIL] Missing env var: DATABASE_URL (required by src/db.ts)
[FAIL] PostgreSQL not reachable on localhost:5432
[PASS] Docker running
[PASS] Git configured (user.name and user.email set)
3 passed, 1 warning, 2 failures
Guidelines
- Use color-coded symbols: PASS, WARN, FAIL.
- For each failure, include the fix command or action needed.
- Run non-destructive checks only — never modify the environment.
- Check project-specific requirements first (from docs or config), then general tooling.
- If a
.env.example exists, use it as the source of truth for required variables.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: maggit-claude-workspace-envcheck3description: Environment Check4---56# Environment Check78Diagnose environment setup, dependencies, and configuration.910## Workflow11121. **Detect the project type** from manifest files and directory structure.13142. **Run checks by category:**1516### Runtime & Tools17- Language version: `node -v`, `python3 --version`, `go version`, `rustc --version`, `java -version`.18- Package manager: `npm -v`, `yarn -v`, `pnpm -v`, `pip --version`, `cargo --version`.19- Required CLI tools: `git`, `docker`, `gh`, framework CLIs.20- Compare against version requirements in `.nvmrc`, `.python-version`, `.tool-versions`, `engines` field, etc.2122### Dependencies23- Are dependencies installed? Check for `node_modules/`, `venv/`, `vendor/`.24- Are lockfiles up to date? Compare `package.json` vs `package-lock.json` timestamps.25- Any missing native dependencies? (e.g., `sharp`, `bcrypt`, `psycopg2`).2627### Configuration28- Required environment variables: scan `.env.example`, `.env.template`, or code for `process.env.*`, `os.environ.*`.29- Compare against actual `.env` file — report missing variables.30- Config file validity: JSON/YAML syntax, required fields.3132### Services33- Database connectivity: check if expected port is open (`pg`, `mysql`, `redis`, `mongo`).34- Docker: `docker compose ps` if `docker-compose.yml` exists.35- Required services running.3637### Permissions & Paths38- File permissions on scripts, SSH keys.39- PATH includes required directories.40- Write permissions on output directories.41423. **Present results as a checklist:**4344```45Environment Check Results46=========================47[PASS] Node.js v20.11.0 (required: >=18)48[PASS] npm v10.2.049[PASS] Dependencies installed (node_modules exists)50[WARN] Lockfile is 3 days older than package.json — consider running npm install51[FAIL] Missing env var: DATABASE_URL (required by src/db.ts)52[FAIL] PostgreSQL not reachable on localhost:543253[PASS] Docker running54[PASS] Git configured (user.name and user.email set)55563 passed, 1 warning, 2 failures57```5859## Guidelines6061- Use color-coded symbols: PASS, WARN, FAIL.62- For each failure, include the fix command or action needed.63- Run non-destructive checks only — never modify the environment.64- Check project-specific requirements first (from docs or config), then general tooling.65- If a `.env.example` exists, use it as the source of truth for required variables.6667---68> Converted and distributed by [TomeVault](https://tomevault.io/claim/maggit) — claim your Tome and manage your conversions.69<!-- tomevault:4.0:skill_md:2026-04-14 -->