Go Development Guidelines
jumppad-labs/jumppad
Sets idiomatic Go conventions with a test-first workflow, using testify/require for assertions and mockery for mocks, for new features, packages and refactors.
Applies version-aware Go guidance when writing or reviewing Go code, loading only the reference files that match the task, from syntax and performance to concurrency and testing.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mhmtszr/go-guidelines go-guidelines --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/go-guidelines .claude/skills/go-guidelines && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .claude/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelinesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mhmtszr/go-guidelines go-guidelines --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/go-guidelines .agents/skills/go-guidelines && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .agents/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mhmtszr/go-guidelines go-guidelines --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/go-guidelines .cursor/skills/go-guidelines && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .cursor/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mhmtszr/go-guidelines.git --path skills/go-guidelines--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mhmtszr/go-guidelines go-guidelines --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/go-guidelines .gemini/skills/go-guidelines && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .gemini/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mhmtszr/go-guidelines go-guidelinesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/go-guidelines .github/skills/go-guidelines && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .github/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mhmtszr/go-guidelines --skill go-guidelines -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mhmtszr/go-guidelines go-guidelines --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mhmtszr/go-guidelines.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/go-guidelines .opencode/skills/go-guidelines && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "go-guidelines" agent skill from https://github.com/mhmtszr/go-guidelines/tree/master/skills/go-guidelines into .opencode/skills/go-guidelines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "go-guidelines", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
go-guidelinesApplies version-aware Go guidance when writing or reviewing Go code, loading only the reference files that match the task, from syntax and performance to concurrency and testing.
A shell command embedded in the SKILL.md reads the `go` line from `go.mod` files and reports the most common version, and the agent is told to use that result and not search for the version itself. When a version is found, it states that it will follow Go practices and modern syntax up to that version, offers to change the target, and neither lists features nor asks for confirmation. When the result is unknown, it says so and asks which version to target, offering 1.20 through 1.27.
References are loaded one topic at a time and never all at once, and the agent stops at the detected version boundary so newer features are ignored. Ten files cover modern syntax, performance and struct layout, concurrency, patterns such as HTTP servers, shutdown and middleware, testing with mocks, benchmarks and fuzzing, error handling, slices and maps, context, generics, and pitfalls like nil traps and shadowing. A task can need several, for instance a concurrent function with tests uses the syntax, concurrency and testing files. The excerpt stops before the section on what to do after making changes.
Read from SKILL.md and the folder at commit fbd5535. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
go.devFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Go Guidelines loads about 885 tokens when it runs, and up to ~25k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 369 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
- Do NOT list features, do NOT ask for confirmationAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mhmtszr/go-guidelines at commit fbd5535, republished under its MIT licence (© mhmtszr). 369 words, ~885 tokens.
.claude/skills/go-guidelines/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.!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
DO NOT search for go.mod files or try to detect the version yourself. Use ONLY the version shown above.
If version detected (not "unknown"):
If version is "unknown":
Read ONLY the reference file(s) relevant to your current task. Do NOT load all files at once.
When reading reference files, stop at the detected Go version boundary — ignore features from newer versions.
| When you are... | Read this reference |
|---|---|
| Using version-specific Go syntax or idioms | references/modern-syntax.md |
| Optimizing performance, struct layout, escape analysis | references/performance.md |
| Working with goroutines, channels, sync, select, false sharing | references/concurrency.md |
| Writing HTTP servers, shutdown, health checks, middleware, interfaces, io.Reader | references/patterns.md |
| Writing tests, mocks, benchmarks, fuzz tests | references/testing.md |
| Handling errors, wrapping, custom error types | references/error-handling.md |
| Working with slices, maps, append, memory leaks | references/slices-and-maps.md |
| Using context.Context, values, cancellation, timeouts | references/context-patterns.md |
| Using generics, type parameters, constraints | references/generics.md |
| Debugging subtle bugs, nil traps, shadowing, sync copying, defer, time | references/pitfalls.md |
Multiple topics may apply. For example, writing a concurrent function with tests: load modern-syntax.md + concurrency.md + testing.md.
After making Go code changes, run static analysis and tests on the changed packages:
which golangci-lint >/dev/null 2>&1 && golangci-lint run ./path/to/changed/package/... || go vet ./path/to/changed/package/...
go test ./path/to/changed/package/... -raceIf the detected Go version is 1.26 or newer, also run go fix on the changed packages (Using go fix to modernize Go code):
go fix ./path/to/changed/package/...golangci-lint when available, fall back to go vetgo fix after changes (use go fix -diff to preview; run twice if needed until a fixed point)© mhmtszr, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (references) in skills/go-guidelines of mhmtszr/go-guidelines.
Open the folder on GitHubat commit fbd5535
Go Guidelines next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Go Guidelines this skillmhmtszr/go-guidelines | 104 | — | ~885 | Automated safety check: Warn | MIT | |
| Go Development Guidelinesjumppad-labs/jumppad | 263 | — | ~1.5k | Automated safety check: Pass | MPL-2.0 | |
| Strict Programming Practicescode-yeongyu/oh-my-openagent | 70k | — | ~9.5k | Automated safety check: Pass | Custom licence | |
| R Function Input Validationtidyverse/dplyr | 5.1k | 1 repos | ~2.3k | Automated safety check: Pass | Custom licence | |
| Code Review Specialistluongnv89/claude-howto | 42k | — | ~764 | Automated safety check: Pass | MIT | |
| Cross-Language Coding Standardszereight/gitlab-mcp | 2k | 1 repos | ~1.4k | Automated safety check: Pass | MIT |
jumppad-labs/jumppad
Sets idiomatic Go conventions with a test-first workflow, using testify/require for assertions and mockery for mocks, for new features, packages and refactors.
code-yeongyu/oh-my-openagent
Applies strict, type-first coding rules for Python, Rust, TypeScript and Go, loading the matching language reference before the agent writes or edits any code.
tidyverse/dplyr
Validates arguments of exported R functions with the standalone check_* type checkers from rlang, in tidyverse style with clear error messages.
luongnv89/claude-howto
Reviews code for security, performance, quality and maintainability, using a checklist, a finding template and two metrics scripts.
zereight/gitlab-mcp
Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.
piomin/claude-ai-spring-boot
Comprehensive code review for Java - clean code principles, API contracts, null safety, exception handling, and performance.
Works with
Categories
Applies version-aware Go guidance when writing or reviewing Go code, loading only the reference files that match the task, from syntax and performance to concurrency and testing. mod` files and reports the most common version, and the agent is told to use that result and not search for the version itself. When a version is found, it states that it will follow Go practices and modern syntax up to that version, offers to change the target, and neither lists features nor asks for confirmation.
Go Guidelines fits situations like: writing new Go code that should match the project's Go version; reviewing Go code for concurrency, error handling or performance issues; adding tests, benchmarks or fuzz tests to a Go package; introducing generics or context cancellation into existing Go code.
Run `npx skills add mhmtszr/go-guidelines --skill go-guidelines -a claude-code`. Or copy the skill folder (skills/go-guidelines in mhmtszr/go-guidelines) into .claude/skills/go-guidelines in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mhmtszr/go-guidelines --skill go-guidelines -a codex`. Or copy the skill folder (skills/go-guidelines in mhmtszr/go-guidelines) into .agents/skills/go-guidelines in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mhmtszr/go-guidelines --skill go-guidelines -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-guidelines, .gemini/skills/go-guidelines, .github/skills/go-guidelines and .opencode/skills/go-guidelines in your project.
Going by SKILL.md and its folder, Go Guidelines needs the command-line tools its instructions call (go). Our summary lists: A Go project, ideally with a go.mod file so the version can be detected.
SKILL.md names 1 domain. As links in the text: go.dev. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.
Go Guidelines is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 885 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 24k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Go Guidelines: Go Development Guidelines (jumppad-labs/jumppad, 263 stars), Strict Programming Practices (code-yeongyu/oh-my-openagent, 70k stars), R Function Input Validation (tidyverse/dplyr, 5.1k stars) and Code Review Specialist (luongnv89/claude-howto, 42k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mhmtszr (a GitHub user) maintains it in mhmtszr/go-guidelines, which has 104 GitHub stars. The repository was last updated on August 28, 2026.
Source: mhmtszr/go-guidelines on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.