一键导入
go-debugging
Diagnose Go build, vet, test, race, and module-resolution failures. Use when Go commands fail, hang, or report dependency and checksum drift.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose Go build, vet, test, race, and module-resolution failures. Use when Go commands fail, hang, or report dependency and checksum drift.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Diagnose Java compile, Maven, Gradle, dependency, JDK-version, and test failures. Use when JVM project builds fail, hang, or resolve incompatible artifacts.
Diagnose Python import, environment, type-check, lint, collection, and test failures. Use when pytest, mypy, ruff, or module loading fails or hangs.
Diagnose Ruby load, Bundler resolution, RuboCop, and RSpec failures. Use when gem installation, requires, linting, or Ruby tests fail or hang.
Diagnose Rust compile, borrow-checker, trait, Clippy, formatting, and test failures. Use when Cargo commands fail or report lifetime, bound, lint, or test errors.
Diagnose TypeScript and Next.js type, build, module, React Server Component, test, and hydration failures. Use when Next.js or pnpm gates fail or runtime boundaries break.
Diagnose TypeScript compile, module-resolution, declaration, isolated-module, build, and type-check failures. Use when npm or TypeScript gates fail in a Node project.
| name | go-debugging |
| description | Diagnose Go build, vet, test, race, and module-resolution failures. Use when Go commands fail, hang, or report dependency and checksum drift. |
| license | MIT |
| metadata | {"author":"donmai","version":"1.0.0"} |
Debugging Go build, vet, and test failures. Systematic diagnosis for the most common failure modes in Go modules.
Use this skill when:
go build ./... fails to compilego vet ./... reports issuesgo test ./... fails, hangs, or flakes under -racego.sum mismatch errors appeargo build ./... 2>&1 | head -40
Common root causes:
go mod tidy after adding an import (missing go.sum entry)go vet ./... 2>&1 | head -40
Common root causes:
Printf format/arg mismatchescopylocks)go test -race ./... 2>&1 | grep -E "FAIL|panic|DATA RACE|--- FAIL" | head -30
Common root causes:
-race detector points at both goroutines; guard with a
mutex or restructure ownership-p 1 but fail in parallel — shared global state-race for any code touching goroutines/channels; CI
exposes flakes a serial local run hides.