go-conventions — for Claude Code go-conventions, mcpkit, community, for Claude Code, ide skills, ai-agents, golang, mcp-toolkit, middleware, model-context-protocol

v1.0.0

Über diesen Skill

Geeigneter Einsatz: Ideal for AI agents that need go conventions -- hairglasses-studio. Lokalisierte Zusammenfassung: Error Handling MCP tools communicate errors through results, not Go errors: Error codes: ErrClientInit, ErrInvalidParam, ErrTimeout, ErrNotFound, ErrAPIError, ErrPermission (defined in handler/result.go). It covers ai, ai-agents, go workflows. This AI agent skill

Funktionen

Go Conventions -- hairglasses-studio
Standards enforced across mcpkit, hg-mcp, mesmer, cobb, claudekit, and
MCP tools communicate errors through results, not Go errors:
// CORRECT -- always return ( CallToolResult, nil)
return handler.CodedErrorResult(handler.ErrInvalidParam, err), nil

# Core Topics

hairglasses-studio hairglasses-studio
[0]
[2]
Updated: 4/9/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
52
Canonical Locale
en
Detected Body Locale
en

Geeigneter Einsatz: Ideal for AI agents that need go conventions -- hairglasses-studio. Lokalisierte Zusammenfassung: Error Handling MCP tools communicate errors through results, not Go errors: Error codes: ErrClientInit, ErrInvalidParam, ErrTimeout, ErrNotFound, ErrAPIError, ErrPermission (defined in handler/result.go). It covers ai, ai-agents, go workflows. This AI agent skill

Warum diese Fähigkeit verwenden

Empfehlung: go-conventions helps agents go conventions -- hairglasses-studio. Error Handling MCP tools communicate errors through results, not Go errors: Error codes: ErrClientInit, ErrInvalidParam, ErrTimeout

Am besten geeignet für

Geeigneter Einsatz: Ideal for AI agents that need go conventions -- hairglasses-studio.

Handlungsfähige Anwendungsfälle for go-conventions

Anwendungsfall: Applying Go Conventions -- hairglasses-studio
Anwendungsfall: Applying Standards enforced across mcpkit, hg-mcp, mesmer, cobb, claudekit, and
Anwendungsfall: Applying MCP tools communicate errors through results, not Go errors:

! Sicherheit & Einschränkungen

  • Einschraenkung: Each package must pass in isolation
  • Einschraenkung: One agent per package to avoid import cycles
  • Einschraenkung: Write-mode tools must have confirm write parameter for destructive

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is go-conventions?

Geeigneter Einsatz: Ideal for AI agents that need go conventions -- hairglasses-studio. Lokalisierte Zusammenfassung: Error Handling MCP tools communicate errors through results, not Go errors: Error codes: ErrClientInit, ErrInvalidParam, ErrTimeout, ErrNotFound, ErrAPIError, ErrPermission (defined in handler/result.go). It covers ai, ai-agents, go workflows. This AI agent skill

How do I install go-conventions?

Run the command: npx killer-skills add hairglasses-studio/mcpkit/go-conventions. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for go-conventions?

Key use cases include: Anwendungsfall: Applying Go Conventions -- hairglasses-studio, Anwendungsfall: Applying Standards enforced across mcpkit, hg-mcp, mesmer, cobb, claudekit, and, Anwendungsfall: Applying MCP tools communicate errors through results, not Go errors:.

Which IDEs are compatible with go-conventions?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for go-conventions?

Einschraenkung: Each package must pass in isolation. Einschraenkung: One agent per package to avoid import cycles. Einschraenkung: Write-mode tools must have confirm write parameter for destructive.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add hairglasses-studio/mcpkit/go-conventions. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use go-conventions immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

go-conventions

Install go-conventions, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Go Conventions -- hairglasses-studio

Standards enforced across mcpkit, hg-mcp, mesmer, cobb, claudekit, and ralphglasses.

Error Handling

MCP tools communicate errors through results, not Go errors:

go
1// CORRECT -- always return (*CallToolResult, nil) 2return handler.CodedErrorResult(handler.ErrInvalidParam, err), nil 3 4// WRONG -- breaks MCP protocol 5return nil, err

Error codes: ErrClientInit, ErrInvalidParam, ErrTimeout, ErrNotFound, ErrAPIError, ErrPermission (defined in handler/result.go).

For non-MCP Go code, use standard fmt.Errorf("context: %w", err) wrapping.

Testing

bash
1go test ./pkg -count=1 2go test ./... -count=1 -race
  • Integration: mcptest.NewServer() + mcptest.NewClient()
  • Unit: stdlib testing, table-driven, t.Parallel() where safe
  • File naming: foo_test.go tests foo.go
  • Each package must pass in isolation
  • Coverage target: 90%+ per package
  • Assertions: mcptest.Assert* helpers or stdlib t.Errorf/t.Fatalf

Middleware

Signature:

go
1func(name string, td registry.ToolDefinition, next registry.ToolHandlerFunc) registry.ToolHandlerFunc

Thread Safety

  • All registries: sync.RWMutex -- RLock for reads, Lock for writes
  • Never hold a write lock while calling user-provided callbacks
  • Lazy client init: sync.Once or LazyClient[T] pattern

Import Rules

  • Lower dependency layers never import upper layers (Layer 1 < 2 < 3 < 4)
  • One agent per package to avoid import cycles
  • Import MCP types through registry/compat.go aliases for SDK portability

Dual-SDK Build Tags

go
1//go:build !official_sdk 2//go:build official_sdk

Use adapter functions: registry.MakeTextContent(), registry.MakeErrorResult(), registry.ExtractArguments() -- never SDK-specific constructors directly.

Parameter Extraction

go
1name := handler.GetStringParam(req, "name") 2count := handler.GetIntParam(req, "count", 10) 3flag := handler.GetBoolParam(req, "verbose", false)

Never access request.Params map directly.

Result Builders

FunctionWhen
handler.TextResult(s)Plain text
handler.JSONResult(v)Structured data
handler.CodedErrorResult(code, err)Errors with classification
handler.StructuredResult(content...)Multi-content

Resilience

Every external service call should use:

  1. CircuitBreaker
  2. RateLimiter
  3. Timeout
go
1resilience.NewCircuitBreaker(resilience.CBConfig{ 2 MaxFailures: 5, 3 ResetTimeout: 30 * time.Second, 4})

RBAC And Audit

  • Write-mode tools must have confirm_write parameter for destructive operations
  • Audit middleware logs all tool invocations to JSONL
  • Roles: admin, platform, support, readonly

Build Commands

bash
1go build ./... 2go vet ./... 3make check 4make build-official 5make check-dual

Code Organization

  • init() for auto-registration -- no central tool lists
  • Clients lazy-initialized via LazyClient[T] or sync.Once
  • Config from env: centralized in client/config init, not scattered in handlers
  • Atomic writes for config files: mktemp + mv pattern

Verwandte Fähigkeiten

Looking for an alternative to go-conventions or another community skill for your workflow? Explore these related open-source skills.

Alle anzeigen

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
Künstliche Intelligenz

widget-generator

Logo of f
f

Erzeugen Sie anpassbare Widget-Plugins für das Prompts.Chat-Feed-System

149.6k
0
Künstliche Intelligenz

flags

Logo of vercel
vercel

Das React-Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensor und dynamische neuronale Netze in Python mit starker GPU-Beschleunigung

98.6k
0
Entwickler