Skill / SKILL.md

Go Error Handling

cxuu/golang-skills

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).
2 views 197 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about error strategy. Does not cover panic/recover patterns (see go-defensive).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/cxuu/golang-skills' skill-source

Use the complete skill-source/skills/go-error-handling directory with your client’s skill installer.

  • skills/go-error-handling

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/go-error-handling

Compatibility & requirements

Declared tools

Bash(bash:*)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
38c8f76e882af99bc80dee867a15d29cd685aead0face89ec7c05578d18168d2
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills