Agent skill

Error Handling Gate

by DanielPodolsky in DanielPodolsky/ownyourcode

Verifies error handling including empty catch detection, user-friendly messages, and logging.

MITAuto-check passedDevelopment

Install Error Handling Gate

skills CLI
$ npx skills add DanielPodolsky/ownyourcode --skill error-handling-gate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DanielPodolsky/ownyourcode error-handling-gate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DanielPodolsky/ownyourcode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/gates/error .claude/skills/error-handling-gate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
error-handling-gate
GitHub stars
290
Used in
1 other repo
Token cost
~1.4k tokens
SKILL.md length
462 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Verifies error handling including empty catch detection, user-friendly messages, and logging.

  • Works in 4 steps: Empty Catch Blocks → Missing Finally for Cleanup → Technical Errors Exposed → …
  • Tasks that involve Error handling
  • SKILL.md covers Purpose, Gate Status, Gate Questions and Error Handling Checklist, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Error Handling Gate is an agent skill from DanielPodolsky/ownyourcode. Verifies error handling including empty catch detection, user-friendly messages, and logging. WARNING gate triggered during /own:done flow.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Error handling. The repository describes itself as: Claude Code workflow for AI-mentored development. Work efficiently with Spec-Driven Development and the 6 Gates. Built to fight cognitive offloading — for developers using AI to… The licence is MIT.

When your agent uses it

  • Tasks that involve Error handling

Example prompts

  • “Use the error-handling-gate skill to verify error handling including empty catch detection, user-friendly messages, and logging”
  • “/error-handling-gate”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Empty Catch Blocks
  2. Missing Finally for Cleanup
  3. Technical Errors Exposed
  4. No Error Differentiation

What it can do on your machine

Read from SKILL.md and the folder at commit bd1f17c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Error Handling Gate loads about 1.4k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 462 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DanielPodolsky/ownyourcode at commit bd1f17c, republished under its MIT licence (© DanielPodolsky). 462 words, ~1,432 tokens.

Download SKILL.mdSave it as .claude/skills/error-handling-gate/SKILL.md (or your agent's skills folder).
name
error-handling-gate
description
Verifies error handling including empty catch detection, user-friendly messages, and logging. WARNING gate triggered during /own:done flow.

Gate 3: Error Handling Review

"Happy path code is easy. Error handling is where senior engineers shine."

Purpose

This gate ensures the code handles failures gracefully, provides meaningful feedback to users, and doesn't silently swallow errors.

Gate Status

  • PASS — Error handling is appropriate
  • WARNING — Issues found that should be addressed

Gate Questions

Question 1: Failure Scenario

"What happens if [main operation] fails? Walk me through the user experience."

Looking for:

  • Awareness of failure modes
  • User-friendly error messages
  • Recovery options (retry, fallback)
  • No silent failures

Example scenarios:

  • Network request fails
  • Database is down
  • Validation fails
  • Third-party API errors
Question 2: User Feedback

"What does the user see when an error occurs? Would they understand what to do next?"

Looking for:

  • Helpful, non-technical messages
  • Actionable guidance ("Try again", "Check your connection")
  • Appropriate error placement in UI
Question 3: Error Visibility

"How would you debug this in production if something went wrong?"

Looking for:

  • Errors are logged
  • Sufficient context in logs
  • No sensitive data in logs
  • Error tracking awareness (Sentry, etc.)

Error Handling Checklist

Async Operations
  • All async calls wrapped in try/catch or .catch()
  • No empty catch blocks
  • Errors include context (what operation, what data)
  • finally blocks for cleanup (loading states, etc.)
User Experience
  • User-friendly error messages (no technical jargon)
  • Errors are actionable (what can user do?)
  • Loading states cleared on error
  • Retry options where appropriate
Logging & Debugging
  • Errors logged with context
  • No sensitive data in error logs
  • Error types/codes for categorization
  • Stack traces available in development
Edge Cases
  • Empty states handled
  • Timeout handling
  • Partial failure handling (some items succeed, some fail)
  • Concurrent request handling

Response Templates

If PASS
✅ ERROR HANDLING GATE: PASSED

Error handling looks solid:
- Async operations properly wrapped
- User-friendly error messages
- Errors logged for debugging

Moving to the next gate...
If WARNING
⚠️ ERROR HANDLING GATE: WARNING

Found [X] error handling concerns:

**Issue 1: [Empty catch block / Missing error handling]**
Location: `file.ts:42`
Question: "What happens when this fails silently?"

**Issue 2: [Technical error shown to user]**
Location: `file.ts:88`
Question: "Will users understand 'TypeError: Cannot read property...'?"

**Issue 3: [No loading state cleanup]**
Location: `file.ts:100`
Question: "What happens to the loading spinner if this fails?"

These should be addressed to ensure a good user experience.

Common Issues to Check

1. Empty Catch Blocks
❌ try {
     await submitForm();
   } catch (error) {
     // Silent failure - user has no idea
   }

✅ try {
     await submitForm();
   } catch (error) {
     console.error('Form submission failed:', error);
     setError('Could not submit. Please try again.');
   }
Show full SKILL.md (186 more words)Show less
2. Missing Finally for Cleanup
❌ try {
     setLoading(true);
     await fetchData();
     setLoading(false);
   } catch (error) {
     handleError(error);
     // Loading stays true forever!
   }

✅ try {
     setLoading(true);
     await fetchData();
   } catch (error) {
     handleError(error);
   } finally {
     setLoading(false);
   }
3. Technical Errors Exposed
❌ catch (error) {
     setError(error.message);
     // User sees: "TypeError: Cannot read property 'map' of undefined"
   }

✅ catch (error) {
     console.error('Load failed:', error);
     setError('Something went wrong. Please try again.');
   }
4. No Error Differentiation
❌ catch (error) {
     setError('Error');
   }

✅ catch (error) {
     if (error.status === 401) {
       setError('Please log in to continue.');
       redirectToLogin();
     } else if (error.status === 404) {
       setError('Item not found.');
     } else if (error.name === 'NetworkError') {
       setError('Check your internet connection.');
     } else {
       setError('Something went wrong. Please try again.');
     }
   }

Socratic Error Questions

Instead of pointing out the fix, ask:

  1. "What happens if the network is down when the user clicks this?"
  2. "If this catch block runs, what will the user see?"
  3. "How will you know this failed in production?"
  4. "What if only some of the items fail to save?"
  5. "Is the loading spinner stuck if an error happens?"

Error Message Quality Check

Bad MessageBetter Message
"Error""Could not save. Please try again."
"An error occurred""Unable to load your profile. Check your connection."
"TypeError: undefined""Something went wrong. Please refresh and try again."
"500 Internal Server Error""Our servers are having trouble. Please try again in a moment."
"Failed""Could not complete your request. Need help? Contact support."

Severity Guide

IssueSeverityImpact
Empty catch blockHIGHSilent failures, hard to debug
No loading state cleanupMEDIUMStuck UI, poor UX
Technical error shownMEDIUMConfusing UX, potential info leak
No retry optionLOWMinor UX friction
Generic error messageLOWLess helpful but not broken

© DanielPodolsky, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/gates/error of DanielPodolsky/ownyourcode.

Open the folder on GitHubat commit bd1f17c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in DanielPodolsky/ownyourcode, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Error Handling Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Error Handling Gate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Error Handling Gate this skillDanielPodolsky/ownyourcode2901 repos~1.4kAutomated safety check: PassMIT
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
R Function Input Validationtidyverse/dplyr5.1k1 repos~2.3kAutomated safety check: PassCustom licence
Next Best Practicesvercel-labs/openreview1.7k18 repos~1kAutomated safety check: PassNone

Similar skills

  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Validates arguments of exported R functions with the standalone check_* type checkers from rlang, in tidyverse style with clear error messages.

    5.1k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Next Best Practices

    vercel-labs/openreview

    Official

    Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

    1.7k GitHub starsUsed in 18 repos~1k tokens
    DevelopmentAuto-check passed
  • Error Handling

    microsoft/data-formulator

    Official

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用. An agent skill from microsoft/data-formulator.

    18k GitHub stars~3.8k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from DanielPodolsky/ownyourcode

All 19 skills in this repo
  • Accessibility Fundamentals

    DanielPodolsky/ownyourcode

    Reviews accessibility including WCAG, ARIA, keyboard navigation.

    290 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Backend Fundamentals

    DanielPodolsky/ownyourcode

    Reviews API design, REST conventions, and backend architecture.

    290 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Database Fundamentals

    DanielPodolsky/ownyourcode

    Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Documentation Fundamentals

    DanielPodolsky/ownyourcode

    Guides documentation standards including READMEs, JSDoc, and code comments.

    290 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Error Handling Fundamentals

    DanielPodolsky/ownyourcode

    Guides error handling for async operations and API calls. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Frontend Fundamentals

    DanielPodolsky/ownyourcode

    Reviews React/Vue component architecture, state, and hooks. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~874 tokens
    Auto-check passed

Categories

Questions about Error Handling Gate

What does Error Handling Gate do?

Verifies error handling including empty catch detection, user-friendly messages, and logging. Error Handling Gate is an agent skill from DanielPodolsky/ownyourcode. Verifies error handling including empty catch detection, user-friendly messages, and logging.

When should I use Error Handling Gate?

Error Handling Gate fits situations like: tasks that involve Error handling.

How do I install Error Handling Gate in Claude Code?

Run `npx skills add DanielPodolsky/ownyourcode --skill error-handling-gate -a claude-code`. Or copy the skill folder (.claude/skills/gates/error in DanielPodolsky/ownyourcode) into .claude/skills/error-handling-gate in your project. Claude Code loads it when a task matches its description.

How do I install Error Handling Gate in Codex?

Run `npx skills add DanielPodolsky/ownyourcode --skill error-handling-gate -a codex`. Or copy the skill folder (.claude/skills/gates/error in DanielPodolsky/ownyourcode) into .agents/skills/error-handling-gate in your project. Codex loads it when a task matches its description.

Can I use Error Handling Gate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DanielPodolsky/ownyourcode --skill error-handling-gate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/error-handling-gate, .gemini/skills/error-handling-gate, .github/skills/error-handling-gate and .opencode/skills/error-handling-gate in your project.

What does Error Handling Gate need to run?

SKILL.md names no scripts, command-line tools or credentials: Error Handling Gate is instructions for the agent only.

Does Error Handling Gate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Error Handling Gate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Error Handling Gate use?

Error Handling Gate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Error Handling Gate use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Error Handling Gate?

Skills that share tags, products or a category with Error Handling Gate: Mole Bug Patterns (tw93/Mole, 70k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Rust Best Practices (farm-fe/farm, 5.6k stars) and R Function Input Validation (tidyverse/dplyr, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Error Handling Gate?

DanielPodolsky (a GitHub user) maintains it in DanielPodolsky/ownyourcode, which has 290 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 27, 2026.

Source: DanielPodolsky/ownyourcode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.