원클릭으로
gen-test
Generate table-driven Go tests for a package with httptest, context helpers, and config parsing patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate table-driven Go tests for a package with httptest, context helpers, and config parsing patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run govulncheck locally and check for outdated Go dependencies
Run gosec on a specific package and cross-reference findings against suppression list and TODO tracker
Validate a config.yaml file against the Config schema and constraint rules from config/config.go
Build and smoke-test the Docker image locally to validate Dockerfile and binary startup
Draft conventional commit messages from staged changes for release-please
| name | gen-test |
| description | Generate table-driven Go tests for a package with httptest, context helpers, and config parsing patterns |
| user_invocable | true |
Generate comprehensive _test.go files for the specified package.
/gen-test <package> — e.g., /gen-test config, /gen-test proxy, /gen-test oauth
.go files in the target package (skip any existing _test.go)t.Run with descriptive subtests[]struct{ name string; ... }t.Parallel() at test and subtest level where safet.Helper() on all test helpersnet/http/httptest for handler testshttptest.NewRequesthttptest.NewRecorderconfig.ServerMetadataProxyEnabled + DynamicClientRegistration constraintlogr.Discard() for test loggerslog.IntoContext(ctx, logger)if got != want { t.Errorf(...) }<package>/<filename>_test.gogo test ./<package>/... to verify compilationgo vet ./<package>/... for correctness