Thanks for helping make Beautiful Go better. Issues and pull requests are welcome. A few conventions keep the skills consistent and trustworthy.
The skills are a synthesis of published Go guidance, not a list of opinions. Each rule you add or change should trace back to one of the sources in the README, or to another source of similar weight, such as the Go spec, the standard library docs, the Go blog, the release notes, or an accepted proposal. Link it in your pull request. If the sources disagree, say which one you followed and why.
- A rule the skills get wrong or miss. Open a "Propose a rule" issue with the source, a short example of code the agent writes today, and what it should write instead.
- A review false positive. If
go-reviewflags something that's actually fine, open a "Review false positive" issue with the code and the finding. These become new eval cases. - A new eval case. A realistic prompt, the input files it needs, and one assertion per file. See Testing the skills for the layout.
- A new Go release. When Go ships, add what matters to the version table in
skills/go-best-practices/references/modules-and-modern-go.md.
-
Edit the skill. Each skill is
skills/<name>/SKILL.md. Keep it under 500 lines; longer material belongs inreferences/. Explain why a rule matters, not just what it is. Agents follow reasoning better than commands. -
Check your examples. Every Go code block in the skills and the README must parse and be gofmt-clean:
python3 scripts/check-examples.py. -
Check lint changes. If you touch
lints/, add a violation for any new linter or revive rule tolints/check/and runpython3 scripts/check-lints.py. It fails if a check never fires, or iflints/clean/stops being clean. -
Run the evals if you changed behavior. From the skill's directory:
claude plugin eval . --allow-tools Write,Edit,Bash --scaffold
These are real model runs and are billed. Say in the pull request whether you ran them.
-
Validate with
python3 scripts/check-skill.pyandclaude plugin validate .. -
Add a line to the Unreleased section of CHANGELOG.md.
- Write for an agent reading it mid-task: direct, imperative, one idea per bullet.
- Prefer a short code example to a paragraph of description.
- No agent-specific instructions in the skills. They are standard Agent Skills and should work in any agent.
By contributing, you agree your contribution is licensed under the MIT license in LICENSE.