Synaptic SkillsSynapticSkills
MarketplaceSkill GraphCriar SkillMCP ServerPlataformaEnterprise
v0.1.0-beta
Voltar ao Marketplace
DevelopmentMédio

Go Error Handling Best Practices

porsamber·samber· v1.0.0 · atualizado em 2026-04-10
80
Score

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code.

goerror-handlingloggingobservabilityreliabilitycode-quality
0Stars
0Forks
0Usos
Fork

Documento do Skill

SKILL.mdgolang-error-handling/workflow
Identify the error handling mode (coding, review, or audit).
Apply the relevant best practices for the chosen mode.
Create or modify error handling code using `errors.New`, `fmt.Errorf`, and `errors.Join`.
Wrap errors with context using `%w`.
Inspect error chains using `errors.Is` and `errors.As`.
Log errors using `slog` with appropriate levels and structured attributes.
Review the code for violations of the single handling rule (log OR return).
Use parallel sub-agents for auditing large codebases.

Telemetria de Agentes

Execuções
0
total
Taxa de Sucesso
0%
últimos 30d
Latência Média
0.0s
p50
Alucinação
0.0%
detecção
Tokens Entrada
0
avg 0/exec
Tokens Saída
0
avg 0/exec

Uso por Plataforma

Skills Relacionados

Compõe com ←Go Database Best Practices
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
83
Compõe com ←Go Troubleshooting Guide
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
86
Compõe com ←Go Safety: Correctness & Defensive Coding
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
82
Compõe com ←Go Observability Best Practices
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
80
Compõe com ←Go gRPC Best Practices
70%
Hebbian Synapse
Composite0.700
w = 0.3·α + 0.5·β + 0.2·γ
84
Similar aSolana Development Skill (framework-kit-first)
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
85
Similar aCoder
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
81
Similar aElysiaJS Development Skill
60%
Hebbian Synapse
Composite0.600
w = 0.3·α + 0.5·β + 0.2·γ
84

Árvore do Skill

Go Error Handling Best Practices
golang-error-handling
Fases Cognitivas5
1.SENSE
2.CONTEXTUALIZE
3.HYPOTHESIZE
4.ACT
5.REFLECT
Triggers8
implement error handling in Gowrap errors with context in Golog errors using slog in Goaudit error handling in Go codeuse errors.Is and errors.As in Gohandle panics and recovers in Goimprove error logging in Gocreate custom error types in Go

Avaliar este Skill

Score Breakdown

⭐Avaliação Humana0%
🤖Sucesso de Agentes0%
🕐Atualidade100%
🔗Saúde de Dependências100%
🕸️Centralidade no Grafo0%
🛡️Segurança50%
CompositeScore = α·Humano + β·Agente + γ·Recência + δ·Deps + ε·Centralidade + ζ·Segurança

Instalação

$ synaptic mcp download golang-error-handling
$ synaptic skills detail golang-error-handling
$ synaptic skills live golang-error-handling

Dependências

fmterrorslog/slogsamber/oopslmittmann/tintsamber/slog-multisamber/slog-samplingsamber/slog-formattersamber/slog-httpsamber/slog-sentry

Links

GitHub Repository