Agent skill

Env Troubleshoot

by 312362115 in 312362115/claude

环境排障技能:结构化排查开发环境问题. An agent skill from 312362115/claude.

MITAuto-check: warningsDevOps & Cloud

Install Env Troubleshoot

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add 312362115/claude --skill env-troubleshoot -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 312362115/claude env-troubleshoot --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/312362115/claude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/env-troubleshoot .claude/skills/env-troubleshoot && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
env-troubleshoot
GitHub stars
107
Token cost
~900 tokens
SKILL.md length
281 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

环境排障技能:结构化排查开发环境问题. An agent skill from 312362115/claude.

  • Tasks that involve Containers
  • SKILL.md covers 排障流程, 问题分类与排查, 排障原则 and 通用排查命令速查
  • Calls npm, docker and node

What it does

Env Troubleshoot is an agent skill from 312362115/claude. 环境排障技能:结构化排查开发环境问题。 覆盖 Node.js/Python/Docker 环境、依赖安装失败、端口冲突、权限问题等。 触发词:装不上、跑不起来、报错了、环境问题、npm install 失败、Docker 起不来、端口被占。 触发场景:依赖安装失败、服务启动报错、Docker 构建失败、环境变量缺失、版本冲突。 即使用户没有说"环境问题",只要是开发环境配置/启动相关的报错,都应触发此技能。

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Containers. It works with Docker, npm, Python and Node.js. The licence is MIT.

When your agent uses it

  • Tasks that involve Containers

Example prompts

  • “/env-troubleshoot”

Requirements

  • Python 3
  • Node.js
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 2d4fa49. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • docker
    • node
    • python
    • pip
    • npx
    • nvm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, docker, pip and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Env Troubleshoot loads about 900 tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 281 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~900

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • NoteRuns commands with sudoSKILL.md:45
    ACCES permission denied` | 权限不足 | 1. 不要用 sudo 装 npm 2. 检查 npm 全局目录权限 3. 用 nvm 管理 node |
  • NoteMentions a .env fileSKILL.md:56
    | 环境变量相关错误 | .env 缺失或变量缺失 | 1. `cp .env.example .env` 2. 对照检查必填变量 |
  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:84
    | SSH key 权限 | `chmod 600 ~/.ssh/id_*`,`chmod 700 ~/.ssh` |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from 312362115/claude at commit 2d4fa49, republished under its MIT licence (© 312362115). 281 words, ~900 tokens.

Download SKILL.mdSave it as .claude/skills/env-troubleshoot/SKILL.md (or your agent's skills folder).
name
env-troubleshoot
description
环境排障技能:结构化排查开发环境问题。 覆盖 Node.js/Python/Docker 环境、依赖安装失败、端口冲突、权限问题等。 触发词:装不上、跑不起来、报错了、环境问题、npm install 失败、Docker 起不来、端口被占。 触发场景:依赖安装失败、服务启动报错、Docker 构建失败、环境变量缺失、版本冲突。 即使用户没有说"环境问题",只要是开发环境配置/启动相关的报错,都应触发此技能。
version
1.0.0
last_updated
2026-04-08
repository
https://github.com/312362115/claude

环境排障(Env Troubleshoot)

环境问题的特点:每个人遇到的都不一样,但解决思路是一样的。 核心方法:读错误信息 → 定位问题类别 → 对症处理。


排障流程

环境报错
  │
  ├─ 1. 读错误信息(完整读,不跳过)
  ├─ 2. 分类问题
  ├─ 3. 按类别排查
  ├─ 4. 修复并验证
  └─ 5. 记录(如果是常见问题,建议加到项目 docs/guides/)

问题分类与排查

类别 1:依赖安装失败

常见错误:

错误特征可能原因排查步骤
ERESOLVE unable to resolvenpm 依赖版本冲突1. 读冲突详情 2. npm ls <冲突包> 3. 确定哪个依赖要求了不兼容版本
node-gyp rebuild FAILED原生模块编译失败1. 检查 node 版本 2. 检查 Python/build-tools 3. xcode-select --install(macOS)
EACCES permission denied权限不足1. 不要用 sudo 装 npm 2. 检查 npm 全局目录权限 3. 用 nvm 管理 node
network timeout网络问题1. 检查代理设置 2. 切换镜像源 npm config set registry
ModuleNotFoundError (Python)包未安装或虚拟环境未激活1. which python 确认解释器 2. 检查 venv 是否激活 3. pip install -r requirements.txt
类别 2:服务启动失败
错误特征可能原因排查步骤
EADDRINUSE :::3000端口被占用lsof -i :3000 找到占用进程,kill 或换端口
Error: Cannot find module模块缺失1. rm -rf node_modules && npm install 2. 检查路径拼写
ECONNREFUSED 127.0.0.1:5432依赖服务未启动检查 DB/Redis/等依赖服务是否运行
环境变量相关错误.env 缺失或变量缺失1. cp .env.example .env 2. 对照检查必填变量
SyntaxError: Unexpected tokenNode/TS 版本不匹配检查 node -v 和 engines 字段,检查 tsconfig
类别 3:Docker 问题
错误特征可能原因排查步骤
Cannot connect to Docker daemonDocker 未启动启动 Docker Desktop 或 systemctl start docker
no space left on device磁盘/Docker 空间不足docker system prune 清理无用镜像和容器
COPY failed: file not foundDockerfile 路径错误检查 COPY 源路径相对于 build context
构建卡在某一层网络问题或依赖下载慢检查 Docker 镜像源配置
容器启动后立即退出启动命令出错docker logs <container> 看日志
类别 4:版本冲突
场景排查步骤
Node.js 版本不对1. node -v 2. 检查 .nvmrc 或 engines 3. nvm use 切换
Python 版本不对1. python --version 2. 检查 pyproject.toml 3. 用 pyenv 切换
TypeScript 编译错误1. 检查 tsconfig.json target 2. npx tsc --version
全局工具版本冲突which <tool> 确认用的哪个,必要时用 npx 跑项目本地版本
类别 5:权限问题
场景排查步骤
macOS 文件权限ls -la 检查权限,chmod 修复
Git hook 没有执行权限chmod +x .git/hooks/* 或 chmod +x .husky/*
SSH key 权限chmod 600 ~/.ssh/id_*,chmod 700 ~/.ssh

排障原则

  • 先读错误信息:80% 的环境问题,错误信息本身就包含了答案。不要跳过错误信息直接猜
  • 从最简单的可能性开始:先检查服务是否启动、端口是否对、环境变量是否配了,再深入
  • 重现优先:如果用户描述的错误不完整,先复现问题再排查
  • 不要盲目清理:rm -rf node_modules 是最后手段,不是第一步。先理解为什么出错
  • 记录解法:如果是项目特有的环境问题,建议用户加到 docs/guides/ 或 README

通用排查命令速查

bash
# Node.js 环境
node -v && npm -v              # 版本检查
npm ls --depth=0               # 已安装依赖
npm cache clean --force        # 清理缓存
npx envinfo                    # 环境信息汇总

# Python 环境
python --version && pip --version
which python                   # 确认解释器路径
pip list                       # 已安装包
python -m venv .venv && source .venv/bin/activate  # 创建虚拟环境

# 端口/进程
lsof -i :3000                  # 查端口占用
kill -9 <PID>                  # 杀进程

# Docker
docker ps -a                   # 所有容器
docker logs <container>        # 容器日志
docker system df               # 磁盘占用
docker system prune            # 清理

# 通用
echo $PATH                     # PATH 检查
env | grep -i proxy            # 代理设置

© 312362115, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/env-troubleshoot of 312362115/claude.

Open the folder on GitHubat commit 2d4fa49

Compare with similar skills

Env Troubleshoot next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Env Troubleshoot compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Env Troubleshoot this skill312362115/claude107—~900Automated safety check: WarnMIT
Reflexo ReleaseMyriad-Dreamin/typst.ts1.2k—~1.5kAutomated safety check: PassApache-2.0
Liveblog Devliveblog/liveblog119—~1.9kAutomated safety check: PassAGPL-3.0
Releasear-io/ar-io-node127—~4.2kAutomated safety check: NotesAGPL-3.0
Acarshub Tool Additionssdr-enthusiasts/docker-acarshub117—~707Automated safety check: PassGPL-3.0
Deploy To Tempsgotempsh/temps831—~1.3kAutomated safety check: NotesApache-2.0

Similar skills

  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Liveblog Dev

    liveblog/liveblog

    Run a local Liveblog development environment. An agent skill from liveblog/liveblog.

    119 GitHub stars~1.9k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Release

    ar-io/ar-io-node

    Drive the AR.IO Node release process end-to-end — preflight checks, prepare commit, finalize with image SHAs, test docker compose profiles, tag & publish, and post-release cleanup.

    127 GitHub stars~4.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Acarshub Tool Additions

    sdr-enthusiasts/docker-acarshub

    Use ONLY when working in the docker-acarshub repository AND a task may require adding a system tool, npm package, or other dependency.

    117 GitHub stars~707 tokensUpdated 3 days ago
    DevOps & CloudAuto-check passed
  • Deploy To Temps

    gotempsh/temps

    Deploy applications to the Temps platform with automatic framework detection, Dockerfile generation, and container orchestration.

    831 GitHub stars~1.3k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Writing Dockerfiles

    ancoleman/ai-design-components

    Writing optimized, secure, multi-stage Dockerfiles with language-specific patterns (Python, Node.js, Go, Rust), BuildKit features, and distroless images.

    525 GitHub stars~3.2k tokensUpdated 10 mo ago
    DevOps & CloudAuto-check: notes

More from 312362115/claude

All 20 skills in this repo
  • Diagram

    312362115/claude

    专业图表生成技能:根据需求自动选择合适的图表类型,生成符合设计规范的 PNG 图表. An agent skill from 312362115/claude.

    107 GitHub stars~2.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Deep Research

    312362115/claude

    深度调研技能:对任意命题进行系统性调研并输出专业研究报告. An agent skill from 312362115/claude.

    107 GitHub stars~6.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Preview Md

    312362115/claude

    MD 文件浏览器预览:GitHub 风格渲染 + 左侧自动目录. An agent skill from 312362115/claude.

    107 GitHub stars~636 tokensUpdated 4 mo ago
    Auto-check passed
  • Writing

    312362115/claude

    通用写作技能:以"内容→组件→组合"的方式产出技术文档、产品文档、汇报材料. An agent skill from 312362115/claude.

    107 GitHub stars~1.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Code Walkthrough

    312362115/claude

    代码导读技能:帮助快速理解不熟悉的项目或模块,建立心智模型. An agent skill from 312362115/claude.

    107 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check: notes
  • DB Review

    312362115/claude

    数据库代码审查 + Migration 安全检查. An agent skill from 312362115/claude.

    107 GitHub stars~1.8k tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Env Troubleshoot

What does Env Troubleshoot do?

环境排障技能:结构化排查开发环境问题. An agent skill from 312362115/claude. Env Troubleshoot is an agent skill from 312362115/claude.

When should I use Env Troubleshoot?

Env Troubleshoot fits situations like: tasks that involve Containers.

How do I install Env Troubleshoot in Claude Code?

Run `npx skills add 312362115/claude --skill env-troubleshoot -a claude-code`. Or copy the skill folder (skills/env-troubleshoot in 312362115/claude) into .claude/skills/env-troubleshoot in your project. Claude Code loads it when a task matches its description.

How do I install Env Troubleshoot in Codex?

Run `npx skills add 312362115/claude --skill env-troubleshoot -a codex`. Or copy the skill folder (skills/env-troubleshoot in 312362115/claude) into .agents/skills/env-troubleshoot in your project. Codex loads it when a task matches its description.

Can I use Env Troubleshoot in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 312362115/claude --skill env-troubleshoot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/env-troubleshoot, .gemini/skills/env-troubleshoot, .github/skills/env-troubleshoot and .opencode/skills/env-troubleshoot in your project.

What does Env Troubleshoot need to run?

Going by SKILL.md and its folder, Env Troubleshoot needs the command-line tools its instructions call (npm, docker, node, python, pip and npx). Our summary lists: Python 3; Node.js; Docker.

Does Env Troubleshoot access the network?

SKILL.md contains no URLs. Its commands use npm, docker, pip and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Env Troubleshoot safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Env Troubleshoot use?

Env Troubleshoot is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Env Troubleshoot use?

About 900 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Env Troubleshoot?

Skills that share tags, products or a category with Env Troubleshoot: Reflexo Release (Myriad-Dreamin/typst.ts, 1.2k stars), Liveblog Dev (liveblog/liveblog, 119 stars), Release (ar-io/ar-io-node, 127 stars) and Acarshub Tool Additions (sdr-enthusiasts/docker-acarshub, 117 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Env Troubleshoot?

312362115 (a GitHub user) maintains it in 312362115/claude, which has 107 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on May 14, 2026.

Source: 312362115/claude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.