Claude Cursor Skill

error-handling

Language-idiomatic error handling: wrap errors with the failed operation's context, never swallow silently, `Result<T, E>` in Rust, `fmt.Errorf("doing X: %w", err)` in Go, typed exceptions in Python/Java, fail fast on unrecoverable errors. Load when writing or reviewing an error

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download goldziher-ai-rulez-internal_builtins_universal_code-quality_skills_error-handling-ca967ad.zip · 0 KB
Part of goldziher/ai-rulez — 151 skills

Install

skills CLI npx skills add https://github.com/Goldziher/ai-rulez/tree/main/internal/builtins/universal/code-quality/skills/error-handling
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install goldziher-ai-rulez@llmmart
Git git clone https://github.com/Goldziher/ai-rulez.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole goldziher/ai-rulez collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

  • Always wrap errors with context describing what operation failed.
  • Never swallow errors silently — either handle, propagate, or log them.
  • Use language-idiomatic patterns: Result<T, E> in Rust, if err != nil with fmt.Errorf("doing X: %w", err) in Go, typed exceptions in Python/Java.
  • Fail fast on unrecoverable errors.
Files (ai-rulez)
  • SKILL.md 754 B
    ---
    name: error-handling
    description: "Language-idiomatic error handling: wrap errors with the failed operation's context, never swallow silently, `Result<T, E>` in Rust, `fmt.Errorf(\"doing X: %w\", err)` in Go, typed exceptions in Python/Java, fail fast on unrecoverable errors. Load when writing or reviewing an error path, a catch/except block, a custom error type, or code that returns or propagates failures."
    ---
    
    - Always wrap errors with context describing what operation failed.
    - Never swallow errors silently — either handle, propagate, or log them.
    - Use language-idiomatic patterns: `Result<T, E>` in Rust, `if err != nil` with `fmt.Errorf("doing X: %w", err)` in Go, typed exceptions in Python/Java.
    - Fail fast on unrecoverable errors.
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related