Guides structured remote server troubleshooting with context-aware environment checks, log analysis, and container debugging. Useful for service crashes, performance issues, and deployment failures.
Ships in external-gitcode-ascend-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
引导agent按结构化流程排查远程服务器问题,避免盲目执行命令。所有远程命令通过connect/scripts/ssh-exec.sh执行。
uptime, df -h, free -m, top -bn1 | head -20journalctl -u <service> --since "1h ago", /var/log/grep -i "error\|fatal\|exception" <log> | tail -50docker logs <container> --tail 200Token优化策略:
日志分析:先用grep搜索错误关键词,找到问题再扩展上下文
大日志文件:只读tail -50,不读全文
环境检查:输出摘要,不粘贴完整命令结果
产出:错误信息摘要
| 检测到的依赖 | 额外检查命令 |
|---|---|
| PyTorch / TensorFlow | nvidia-smi, GPU显存占用 |
| 华为 CANN / MindSpore | npu-smi info, NPU状态 |
| Docker / docker-compose | docker ps -a, docker stats --no-stream |
| 数据库连接配置 | 连通性测试、活跃连接数 |
| 场景 | 命令 |
|---|---|
| 进程 | ps aux | grep <app>, systemctl status <svc> |
| 资源 | df -h, free -m, top -bn1 | head -20 |
| 日志 | tail -100 <log>, journalctl -u <svc> --since "1h ago" |
| 网络 | ss -tlnp, curl -sv localhost:<port> |
| 容器 | docker logs <c> --tail 100, docker stats --no-stream |
| GPU | nvidia-smi, npu-smi info |
profile配置container字段时,ssh-exec.sh自动路由命令到容器内。注意:
cat, ls, env)What SKILL.md sets; muted values are Claude Code's defaults
/external-gitcode-ascend-skills:external-gitcode-ascend-debugfrom external-gitcode-ascend-skills
npx claudepluginhub ascend-ai-coding/awesome-ascend-skills --plugin external-gitcode-ascend-skills91 skills in this plugin
/external-gitcode-ascend-analyse-coverage分析测试覆盖率盲区,生成覆盖率分析报告/external-gitcode-ascend-arxiv-recommendation-npu自动化推荐系统论文发现流水线。抓取 arxiv 推荐论文,检测源码,生成待迁移任务清单,由 npu-model-migration skill 完成 NPU 适配。/external-gitcode-ascend-ascendc-operator-code-gen根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 op_host/op_kernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、op_host、op_kernel、tiling、kernel、框架适配、算子注册。Other plugins' skills for the same job