Google Golang Style

🌐Community
by meysam81 · vlatest · Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add google-golang-style npx -- -y @trustedskills/google-golang-style
2

Or manually add to ~/.claude/settings.json

~/.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 gofmt to 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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
meysam81
Installs
6

🌐 Community

Passed automated security scans.