Google Golang Style
Generates Go code adhering to Google's style guide, ensuring readability and maintainability in backend projects.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add google-golang-style npx -- -y @trustedskills/google-golang-style
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"google-golang-style": {
"command": "npx",
"args": [
"-y",
"@trustedskills/google-golang-style"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enforces Google's Go style guidelines within a Go project. It automatically formats code to adhere to these conventions, ensuring consistency and readability across your codebase. This includes things like line length, indentation, and naming conventions.
When to use it
- New Go projects: To establish consistent formatting from the beginning.
- Existing Go projects: To standardize an existing codebase and improve maintainability.
- Team collaboration: To ensure all team members are following the same coding style.
- Automated code review: As part of a CI/CD pipeline to automatically check for and enforce style compliance.
Key capabilities
- Enforces Google Go formatting rules.
- Automatic code formatting.
- Consistency across codebase.
Example prompts
- "Format this Go file according to Google's style guide."
- "Run the gofmt tool on all .go files in this directory."
- “Ensure this project adheres to Google’s Go coding standards.”
Tips & gotchas
- Requires a Go environment and
gofmtto be available. - May require adjustments for projects with existing, non-standard formatting.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.