Golang Style

🌐Community
by fredrikaverpil · vlatest · Repository

Generates clean, idiomatic Go code adhering to common conventions and best practices for robust backends.

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 golang-style npx -- -y @trustedskills/golang-style
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "golang-style": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/golang-style"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The golang-style skill applies Go language conventions and idioms to code generation tasks. It ensures that AI agents produce clean, efficient, and standard-compliant Go code aligned with the project's specific style guidelines.

When to use it

  • Generating new backend services or microservices written in Go.
  • Refactoring existing Python or JavaScript codebases into Go for performance improvements.
  • Enforcing consistent formatting and naming conventions across a team of developers.
  • Creating unit tests that adhere to Go's testing best practices.

Key capabilities

  • Applies idiomatic Go patterns such as interfaces, structs, and error handling.
  • Enforces standard library usage over third-party dependencies where possible.
  • Generates code compatible with gofmt and other static analysis tools.
  • Aligns output with the specific repository rules defined in fredrikaverpil/dotfiles.

Example prompts

  • "Generate a REST API handler for user authentication using Go and the golang-style skill."
  • "Refactor this Python script into idiomatic Go code following the project's style guide."
  • "Create a database migration utility in Go that adheres to standard concurrency patterns."

Tips & gotchas

Ensure your AI agent has access to the project's go.mod or existing codebase to accurately infer specific import paths and struct definitions. This skill is most effective when paired with linting tools like golangci-lint to catch any remaining non-idiomatic patterns.

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
fredrikaverpil
Installs
29

🌐 Community

Passed automated security scans.