go-errors

go-errors is a skill for Claude Code, Codex from CasLubbers/code-design-skills. It costs 101 tokens per session (995 once invoked), scanned A, original, no licence file.

A guide for handling errors in Go, where functions commonly return an error value that the caller must inspect.

In plain words
What is it for?
Use it when writing, reviewing, or debugging Go error paths, including wrapped errors, known error values, custom error types, and panics.
Why use it?
It helps preserve useful error context and distinguish different causes without relying on fragile type checks.

Skill for Claude CodeCodex

Part of the code-design-skills plugin — 28 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/caslubbers/code-design-skills/go-errors
Any agent
npx skills add CasLubbers/code-design-skills --skill go-errors
Clone the repo
git clone --depth 1 https://github.com/CasLubbers/code-design-skills

Made for: Claude Code, Codex.

Or install code-design-skills, the plugin that ships this one along with the rest of its 28 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/caslubbers/code-design-skills/go-errors.svg)](https://agentmods.dev/skills/caslubbers/code-design-skills/go-errors)
Your own site
<a href="https://agentmods.dev/skills/caslubbers/code-design-skills/go-errors"><img src="https://agentmods.dev/badge/skills/caslubbers/code-design-skills/go-errors.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 995 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00101 $0.00995
Opus 5 $0.00051 $0.00498
Sonnet 5 $0.00020 $0.00199
Haiku 4.5 $0.00010 $0.00100

Measured 4d ago against content hash 51a43a5214db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-errors scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/go-errors/SKILL.md · 129 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 129 lines · 101 tokens per session scan A 51a43a5214db

Subscribe to this mod's changes

go-errors is a skill published in the GitHub repository CasLubbers/code-design-skills (1 stars, last pushed 10d ago), with no licence file. It adds 101 tokens to every session and 995 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

others-skills

Use when needing Go language development, desktop RPA automation, self-hosted email marketing, Java Spring Cloud scaffolding, or SSL/TLS certificate automation. Index of 6 skills: Go, RobotGo, RobotGo-Flow, BillionMail, RuoYi-Cloud, acme.sh.

znlgis/opengis-skills · 64 tokens

universal-patterns

Use when implementing language-agnostic patterns like layered architecture, dependency injection, error handling, or code organization principles across any technology stack.

MadAppGang/claude-code · 32 tokens

refactoring-expert

Expert skill for Clean Code, Refactoring, and Design Patterns. Combines Refactoring Guru's deep patterns with Supercent's rigorous operational metrics and validation workflows.

kinhluan/rules-quarkus-skills · 37 tokens

refactoring

Improve code structure without changing behavior using proven refactoring patterns. Use when cleaning up code, reducing duplication, improving readability, or restructuring modules.

asgarovf/locusai · 31 tokens

code-architecture

Application architecture patterns and code organization — clean architecture, hexagonal architecture, feature-based structure, dependency inversion, module boundaries, SOLID principles at module scale. Activate on "clean architecture", "hexagonal architecture", "feature-based structure", "dependency inversion"…

curiositech/windags-skills · 104 tokens

delphi-rest-apis-horse

Desenvolvimento de microserviços e APIs REST com o framework minimalista Horse em Delphi. Rotas, controllers, middlewares, gerenciamento de memória e tratamento de parâmetros.

regyssilveira/AgentKit4D · 43 tokens