Environment Troubleshooting
SkillDatabases & dataLets your agent diagnose why a local dev environment fails to install, build, run, or pass tests.
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Environment Troubleshooting skill
About this skill
Diagnose ITSM local development and CI environment failures involving Go/Node versions, npm dependencies, ports, environment files, databases, Redis, Docker networks, frontend-backend routing, or service health. Use when install, startup, build, test, or local integration fails.
What this skill tells your AI
The instructions your AI receives, as published by heidsoft/itsm in itsm-frontend/.trae/skills/env-troubleshooting/SKILL.md and read by ahel’s review.
Diagnose read-only first
Collect evidence before changing the environment:
node --version
npm --version
go version
go env GOROOT GOTOOLCHAIN
lsof -nP -iTCP:3000 -sTCP:LISTEN
lsof -nP -iTCP:8090 -sTCP:LISTEN
curl -i http://localhost:8090/api/v1/health
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'
Read package.json, lockfiles, go.mod, .env.example, Compose files, and the exact error.
Do not change go.mod, kill processes, delete node_modules, clear caches, or force dependency
resolution until the cause is confirmed.
Common boundaries
- Frontend defaults to
3000; backend defaults to8090. - Browser API configuration uses
NEXT_PUBLIC_API_URLor the project's same-origin proxy. - Production Compose must receive an explicit
--env-file. - Development and production containers may use different Docker networks.
- A listener on port 3000 may be an older Docker image rather than the checked-out frontend.
- Secrets belong in local environment files and must never be printed or committed.
Recovery order
- Correct the command/working directory.
- Correct missing or invalid environment values.
- Resolve the port owner or choose an explicit alternate port.
- Confirm the running artifact matches the source before debugging already-fixed code.
- Align the toolchain with the repository without weakening version requirements.
- Use
npm ciwhen the lockfile is authoritative; repair lockfile drift deliberately. - Verify dependent database/Redis/network health.
- Re-run the smallest failed command and health endpoint.
Avoid npm --force, --legacy-peer-deps, global Go environment mutation, or broad cleanup as
default fixes.
Docker verification
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
docker logs <container> --tail 50
docker inspect <container> --format '{{json .NetworkSettings.Networks}}'
If a protected browser flow cannot log in with documented seed credentials, classify it as environment/seed drift until proven otherwise. Do not read or print environment secrets to work around the failure; validate public endpoints and source/build layers independently.
Report the root cause, current service endpoints, exact remediation, and any remaining external dependency.
Signals
- GitHub stars
- 77
- Forks
- 18
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
env-troubleshooting- Source
- github.com/heidsoft/itsm
Related picks
Skill · docker
The pick for Dockerdocker-sandbox
Skill · joelhooks
The pick for Dockergolang-code-style
Skill · samber
The pick for Gocc-go-dev
Skill · doccker
The pick for Golegacy-js
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScript