원클릭으로
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 직업 분류 기준
| 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| Symptom | Fix |
|---|---|
| Skill produces no output | Check working directory is project root with docs/workstreams/backlog/ |
| "checkpoint not found" | Run sdp-orchestrate --feature <ID> to create initial checkpoint |
| "workstream files missing" | Run sdp-orchestrate --index to verify, then @feature to regenerate |
| Skill hangs / no progress | Check .sdp/log/events.jsonl for last event; use sdp reset --feature <ID> if stuck |
| Review loop exceeds 3 rounds | Use @review --override "reason", @review --partial, or @review --escalate |
@build - implementation workflow@review - multi-agent reviewCONTRIBUTING.md - repository code styleDEVELOPMENT.md - local verification flowExecute ONE executable leaf workstream with TDD, guard enforcement, and ws-verdict output
Multi-agent quality review (QA + Security + DevOps + SRE + TechLead + Documentation + PromptOps)
Execute ONE executable leaf workstream with TDD, guard enforcement, and ws-verdict output
Multi-agent quality review (QA + Security + DevOps + SRE + TechLead + Documentation + PromptOps)
Software architect for system boundaries, design patterns, and integration tradeoffs.
Beads task tracker integration for SDP workflows.