ワンクリックで
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 職業分類に基づく
Execute 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.
| 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 flow