go-conventions
Skill by hashicorp
Go Conventions is an agent skill for the Terraform AWS provider. It tells an AI assistant to follow the repository's Go conventions before writing or editing Go code in internal/**/*.go.
Install go-conventions
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hashicorp/terraform-provider-aws /tmp/terraform-provider-aws && mkdir -p ~/.claude/skills && cp -r /tmp/terraform-provider-aws/.agents/skills/go-conventions ~/.claude/skills/go-conventionsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/hashicorp/terraform-provider-aws /tmp/terraform-provider-aws && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/terraform-provider-aws/.agents/skills/go-conventions ~/.gemini/antigravity-cli/skills/go-conventionsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Go Conventions is an agent skill for the Terraform AWS provider repository. It tells an AI assistant how to follow the provider's Go conventions when writing or editing Go code in internal/**/*.go. The scope covers resources, data sources, ephemeral resources, actions, tests and helpers. The skill sets rules on naming, comments, package and file organization, abstraction, control flow, error handling, context use and commit messages.
The skill says that existing code which violates these conventions is not precedent. It warns against importing habits from other languages, such as generics used to remove duplication, dependency injection frameworks, wrapper types and tiny single-use helpers. It links to docs/go-for-contributors.md for rationale and evidence. It is written for contributors to the provider and the AI assistants that help them.
Written from the project's SKILL.md and checked against it.
What it can do
- Naming rulesKeeps initialisms in one case, uses MixedCaps and drops Get from getters.
- Comment guidanceSays which comments to keep or delete and requires docs on exported declarations.
- Organization guidanceExplains when to add a function, file or package and when to avoid splitting.
- Abstraction guidanceFavors concrete code and small interfaces defined where they are consumed.
- Error and control flow rulesAsks for early returns, lowercase error strings and no discarded errors.
- Context rulesRequires ctx as the first parameter and forbids storing it in struct fields.
- Commit message rulesAsks for a concise subject and a body only for intent or non-obvious constraints.
Try asking
- Review this Go change in internal/ against the provider's naming rules
- Refactor this resource file without adding unnecessary helper packages
- Check my error handling in this Go code against the provider conventions
Good to know
- Rationale and evidence are in a separate document, docs/go-for-contributors.md.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/go-conventions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to go-conventions
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
go-conventions: common questions
Does the skill apply to all Go files in the provider?
It applies whenever writing or editing Go in internal/**/*.go, including resources, data sources, ephemeral resources, actions, tests and helpers.
What if existing code breaks these conventions?
The skill says existing code that violates these conventions is not precedent. Other provider practice is followed only where it does not contradict the skill.
Does the skill tell the assistant to avoid generics?
It says to resist generics used to remove duplication and to use them only when the problem itself is generic.
How do I install go-conventions?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is go-conventions free?
The code is published under the MPL-2.0 licence. The service it connects to may have its own pricing.
Is go-conventions safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to go-conventions?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
