agentsclimarketplace

Add error handling

Skill emaraschio/cursor-commands/plugin/.cursor/skill-contracts/add-error-handling

Production-grade Cursor slash commands with paired skill contracts, behavioral evals, and ship-gate CI. Install as a user plugin.

Install
npx -y skills add emaraschio/cursor-commands --skill add-error-handling

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Add consistent error handling to the targeted code

SKILL.md

2.1 KB, as published. Nobody here has run it

Overview

Implement comprehensive error handling for the current code to make it robust and resilient to failures while maintaining good user experience.

Steps

  1. Error Detection
    • Identify potential failure points and edge cases
    • Find unhandled exceptions and error conditions
    • Detect missing validation and boundary checks
    • Analyze async operations and network calls
  2. Error Handling Strategy
    • Implement try-catch blocks where appropriate
    • Add input validation and sanitization
    • Create meaningful error messages and logging
    • Design graceful degradation for non-critical failures
  3. Recovery Mechanisms
    • Implement retry logic for transient failures
    • Add fallback options for service unavailability
    • Create circuit breakers for external dependencies
    • Design proper error propagation and handling
  4. User Experience
    • Provide clear error messages to users
    • Implement proper error status codes for APIs
    • Add loading states and error boundaries for UI
    • Include helpful suggestions for error resolution

Add Error Handling Checklist

  • Identified all potential failure points and edge cases
  • Implemented try-catch blocks where appropriate
  • Added input validation and sanitization
  • Created meaningful error messages and logging
  • Implemented retry logic for transient failures
  • Added fallback options and circuit breakers
  • Provided clear error messages to users
  • Implemented proper error status codes for APIs
  • Added loading states and error boundaries for UI

Guardrails

  • Never swallow errors silently; handle them meaningfully, or log and rethrow.
  • Handle errors at meaningful boundaries instead of wrapping every call in try/catch.
  • Do not commit, push, merge, or run destructive commands without explicit user consent.
  • Never include secrets or credentials in error messages or logs; flag any exposure instead of printing or committing it.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.