ワンクリックで
write-go-tests
Unified conventions for writing Go unit/integration tests (TR-F022). Use when adding tests for any Go code change.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Unified conventions for writing Go unit/integration tests (TR-F022). Use when adding tests for any Go code change.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Review merged PRs since the last Git tag and decide whether a ToughRADIUS release is warranted. Use when Codex is asked to prepare a version release, audit unreleased changes, decide whether to publish, create a new release tag, or tag origin/main after PR review.
Global orchestrator / dispatcher role. Activated when the user issues an "auto-delegate development / continue the roadmap / auto-delegate" command (without naming a specific subtask); runs the full loop - select task, pick SOP, dispatch, quality gates, open PR, self-iterate the roadmap.
Independent review gate for auto-delegation PRs (TR-F022). Use after an orchestration round opens a PR, and as the first step of every new round to clear in-flight PRs - run an adversarial, CI-anchored review, request changes via labels + comments, and auto-merge only when the review passes and CI is green.
Standard-library-style Go API documentation and comment conventions (TR-F024). Use when adding or changing exported Go identifiers, writing package comments, or backfilling godoc on a package so it reads like the Go standard library.
Write CI-executable acceptance/integration tests for protocol or end-to-end changes (TR-F022). Use whenever a milestone subtask needs CI-backed acceptance, covering test/integration integration tests and unit tests.
Add a group of Admin REST endpoints in the management backend (TR-F012). Use when a feature needs management APIs such as create/read/update/delete.
| name | write-go-tests |
| description | Unified conventions for writing Go unit/integration tests (TR-F022). Use when adding tests for any Go code change. |
Feature ID:
TR-F022
Any Go code change must ship with tests. This skill unifies the test conventions.
file_search "internal/**/*_test.go" # find the closest template
view internal/adminapi/nodes_test.go # API test template
view internal/radiusd/*_test.go # protocol test template
view internal/app/*_test.go # app-layer test template
<file>_test.go.if testing.Short() { t.Skip(...) }; CI runs go test -short.CGO_ENABLED=0); schema changes must be compatible with both databases.AuthError / metrics tag.go test ./... # all
go test -short ./... # CI-equivalent (fast)
go test -run TestXxx ./internal/... # single test
go test -bench=. ./internal/radiusd/ # benchmark
golangci-lint run # lint (v2.12.2)
go test ./... and golangci-lint run pass