Skip to main content
Run any Skill in Manus
with one click

go-modern

Stars4
Forks3
UpdatedJune 6, 2026 at 20:32

Write modern, idiomatic Go (1.21–1.26) using the standard library and current language features instead of legacy patterns. Covers slices/maps/cmp, the min/max/clear builtins, range-over-int and range-over-func iterators, errors.Is/As/Join and %w wrapping, generics, new(expr), omitzero, os.Root, slog, and the stdlib APIs that are now the recommended idiom. Use this skill BEFORE writing or editing any Go (.go) code, reviewing a Go diff, or picking a stdlib API — it replaces the legacy forms this project's lint rules ban (the old sort package, interface{}, manual index loops, append([]T(nil), …), ptr() helpers, hand-rolled min/max). Complements the `lo` skill, which owns functional transforms (Map/Filter/Reduce/GroupBy); reach here for everything stdlib- and language-level. Invoke whenever the task is "write some Go", "clean this Go up", "is there a stdlib way to do this", or CLAUDE.md says "Modern Go style".

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
7 files
SKILL.md
readonly