error-handling-audit

Installation
SKILL.md

Go Error Handling Audit Skill

Purpose

Audit Go code for error handling best practices based on RMS Go coding standards. This skill ensures errors are properly wrapped, context is preserved, and error handling follows idiomatic Go patterns.

What This Skill Checks

1. Error Wrapping with %w (Priority: CRITICAL)

Golden Rule: Always wrap errors with fmt.Errorf(..., %w, err) to preserve error chain for errors.Is() and errors.As().

Good Pattern:

func FetchTask(ctx rms.Ctx, id string) (*Task, error) {
    task, err := db.GetTask(ctx, id)
    if err != nil {
        return nil, fmt.Errorf("failed to fetch task %s: %w", id, err)
Related skills
Installs
3
GitHub Stars
3
First Seen
Mar 29, 2026