원클릭으로
go-modern
Apply modern Go idioms that match the repo's Go version before writing or reviewing Go code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Apply modern Go idioms that match the repo's Go version before writing or reviewing Go code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Quality bug fixes (P1/P2). Full TDD cycle, branch from master via feature/, no production deploy.
Execute ONE executable leaf workstream with TDD, guard enforcement, and ws-verdict output
Deployment orchestration. Creates PR to master (after @oneshot) or merges for release.
System design with progressive disclosure, produces workstream files
Feature planning orchestrator (discovery -> idea -> ux -> design -> workstream tree)
Emergency P0 fixes. Fast-track production deployment with minimal changes. Branch from master, immediate deploy.
| name | go-modern |
| description | Apply modern Go idioms that match the repo's Go version before writing or reviewing Go code. |
Use this skill when editing or reviewing Go in sdp.
The repo targets modern Go. Prefer standard-library idioms that are already available in the checked-in Go version.
Before changing Go code:
go.mod or sdp-plugin/go.mod.slices.SortFunc over sort.Sliceslices.Contains over manual membership loopsmaps.Copy or maps.Clone over manual copy loopsstrings.Cut over strings.SplitN(..., 2) or strings.Index plus slicingstrings.CutPrefix and strings.CutSuffix over HasPrefix or HasSuffix plus trimmin(...) and max(...) over trivial compare-and-assign blocksany over interface{} for parameters, locals, and variadics when behavior does not changeUse these freely in polish PRs when tests stay green:
Cut, CutPrefix, SortFunc, Contains, Copy, Clone)interface{} to any updatesgolintDo not batch risky modernizations into a style PR:
exec.Command with exec.CommandContextomitempty to omitzerowg.Go, atomics, cancellation semantics) unless the feature already needs theminterface{} churn across public structs or serialized payloadsWhen reviewing Go changes, ask:
After modernization changes:
go build ./..., go test ./..., and go vet ./...golangci-lint run ./... where configuredgolangci-lint run --enable-only modernize --issues-exit-code 0 ./... for audit snapshots@build - implementation workflow@review - multi-agent reviewCONTRIBUTING.md - repository code styleDEVELOPMENT.md - local verification flow