Skip to content
Agentmart
Submit a tool

go-errors

Go error handling patterns.

Skill by JamesPrial

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jamesprial-go-errors

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Go error handling patterns. Routes to specific patterns.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/go-errors

What's inside

Skill name
go-errors
Description
Go error handling patterns. Routes to specific patterns.
License
MIT
Instructions
34 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: "go-errors" does not match folder "errors"

Files (4)

  • SKILL.md
  • SKILL.md · checking/
  • SKILL.md · sentinel/
  • SKILL.md · wrapping/

SKILL.md (first lines)

# Go Error Handling

## Route by Need
- Wrapping errors with context → see [wrapping/](wrapping/)
- Defining sentinel errors → see [sentinel/](sentinel/)
- Checking error types → see [checking/](checking/)

## Quick Check
- [ ] Never ignore errors (_ = fn())
- [ ] Wrap with context at boundaries
- [ ] Use errors.Is/As, not ==

## Common Pattern
```go
func ProcessFile(path string) error {
    f, err := os.Open(path)
    if err != nil {
        return fmt.Errorf("open %s: %w", path, err)
    }
    defer f.Close()

    if err := parse(f); err != nil {
        return fmt.Errorf("parse %s: %w", path, err)
    }
    return nil
}
```

## Resources
- [wrapping/](wrapping/) - Add context with fmt.Errorf %w
- [sentinel/](sentinel/) - Define package-level errors
- [checking/](checking/) - Type-safe error inspection

From JamesPrial/claudefiles, MIT.

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
Dec 18, 2025 (10 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from JamesPrial

Cite this page

go-errors skill. Agent Mart. https://agentmart.dev/skills/jamesprial-go-errors (last updated 2026-10-24)