missing-error-handling

Code handles only the happy path — external calls, I/O, and parsing have no failure handling and crash on anything unexpected.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "missing-error-handling" with this command: npx skills add mvogt99/missing-error-handling

missing-error-handling

Every external interaction is a source of failure: network, disk, subprocess, parsing, third-party API. If the code assumes they always succeed, a production run will hit the first unexpected condition and crash unhelpfully.

Symptoms

  • HTTP calls without status-code checks and without timeout.
  • File I/O with no handling for missing files, permission denied, or partial reads.
  • Subprocess calls that ignore non-zero exit codes.
  • JSON.parse / yaml.load with no handling of malformed input.
  • Broad except: / catch (e) {} that swallows everything without logging.

What to do

  • For each external call, list the failure modes explicitly: timeout, non-2xx status, missing resource, malformed payload, permissions. Handle each with specific recovery or a loud failure.
  • Add a timeout to every network call. No exceptions.
  • When catching, catch the specific exception types you can actually recover from. Let unknown errors propagate with context.
  • When swallowing is unavoidable, log the full error with context — at minimum, the operation that failed and the arguments.
  • Distinguish "user-visible error" (explain, ask them to retry or adjust) from "internal error" (log with stack, fail fast). Don't leak internal errors to users.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Spicy Ai Video

Turn a 60-second talking head clip into 1080p high-energy edited videos just by typing what you need. Whether it's turning bland footage into visually intens...

Registry SourceRecently Updated
Coding

Video Maker Fast

Get polished MP4 videos ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim...

Registry SourceRecently Updated
Coding

Generation Generator

generate text prompts or clips into AI generated videos with this skill. Works with MP4, MOV, PNG, JPG files up to 500MB. marketers, content creators, social...

Registry SourceRecently Updated
Coding

Editor On Android

Get edited MP4 clips ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "trim th...

Registry SourceRecently Updated