go-modern
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Modern Go
Detected Go version
!grep -rh "^go " --include="go.mod" . 2>/dev/null | cut -d' ' -f2 | sort | uniq -c | sort -nr | head -1 | xargs | cut -d' ' -f2 | grep . || echo unknown
The line above is a skill directive — the shell command is run when this skill loads, and its output replaces the ! line. Use whatever version appears there. Searching for go.mod yourself is wasted work because the detection has already happened.
How to use this skill
Version detected:
Briefly tell the user the target version once, in your own words, and offer to change it if they prefer. Don't list features. Don't ask for confirmation. Then write code to that target.
Version is unknown:
Tell the user no version was detected and ask which to target using AskUserQuestion with 1.23 / 1.24 / 1.25 / 1.26 as options.
When writing Go code: