ワンクリックで
go-test
Run Go tests with race detection and coverage. Use when asked to run tests, check test coverage, or verify Go code functionality.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run Go tests with race detection and coverage. Use when asked to run tests, check test coverage, or verify Go code functionality.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Systematic analysis and reasoning workflows. Use when performing audits, investigation, requirements analysis, risk analysis, scenario/edge-case enumeration, or design analysis that demands evidence-based, comprehensive coverage.
Code quality and safety standards. Activates when editing or reviewing code. Use for quality priorities, safety checks, and code correctness verification.
Use when performing coding tasks (implement features, fix bugs, refactor code). Orchestrates language detection, mode switching (normal/autopilot/full-auto), quality enforcement, and verification.
Break a problem into atomic, testable subproblems. Use when facing complex tasks, unclear requirements, or planning implementation strategy.
Start structured feature implementation workflow. Use when implementing new features, adding functionality, or building complete user-facing capabilities.
Use when starting work that needs isolated branches or parallel feature development using git worktrees.
| name | go-test |
| description | Run Go tests with race detection and coverage. Use when asked to run tests, check test coverage, or verify Go code functionality. |
| allowed-tools | ["shell"] |
| metadata | {"short-description":"Run Go tests with race detection"} |
Reference: ~/.config/agent/domain/coding/go/tooling.md for Go command details
Run Go tests with proper flags per AGENT.md guidelines:
go test -race -count 1 -coverprofile=cover.out ${ARGUMENTS}
Default to ./... if no package path is provided.
If user requests verbose output:
go test -v -race -count 1 -coverprofile=cover.out ${ARGUMENTS}
After tests pass, offer to show coverage:
# Text summary
go tool cover -func=cover.out
# HTML report (opens in browser)
go tool cover -html=cover.out
For single package:
go test -race -count 1 ./path/to/package
-race: Enable race detector-count 1: Disable test caching-coverprofile: Generate coverage profile-v: Verbose output (when requested)Target package(s): ${ARGUMENTS:-./...}