Claude Code Plugins

Community-maintained marketplace

Feedback

Go error handling patterns. Routes to specific patterns.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name go-errors
description Go error handling patterns. Routes to specific patterns.

Go Error Handling

Route by Need

Quick Check

  • Never ignore errors (_ = fn())
  • Wrap with context at boundaries
  • Use errors.Is/As, not ==

Common Pattern

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