plan-error-handling

plan-error-handling is a skill for Claude Code, Codex from kensaurus/cursor-kenji. It costs 57 tokens per session (2,204 once invoked), scanned A, original, MIT.

A planning guide for finding errors that disappear without a useful record, including gaps in Sentry and Langfuse monitoring. It produces a phased repair plan without changing code.

In plain words
What is it for?
Use it to review empty catch blocks, missing error reports, and incomplete application monitoring, then plan fixes in stages.
Why use it?
Silent failures make production problems hard to notice and diagnose. It shows where errors are swallowed, where monitoring is missing, and where sensitive data might be exposed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review empty catch blocks, missing error reports, and incomplete application monitoring, then plan fixes in stages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kensaurus/cursor-kenji/plan-error-handling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kensaurus/cursor-kenji --skill plan-error-handling
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-error-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/plan-error-handling/github.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/plan-error-handling)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/plan-error-handling"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/plan-error-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-error-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/plan-error-handling"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/plan-error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,204 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.02204
Opus 5 $0.00028 $0.01102
Sonnet 5 $0.00011 $0.00441
Haiku 4.5 $0.00006 $0.00220

Measured 6d ago against content hash 12ff4a4650d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

plan-error-handling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/plan-error-handling/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Error-Handling & Observability Audit + Fix Plan

Degree of freedom: HIGH — map silent paths, score, plan. Stay plan-only. No code or SDK edits until each phase is approved.

This skill vs neighbors

Skill Owns
plan-error-handling (this) Silent-failure + Sentry/Langfuse plan
debug-sentry-monitor Live Sentry triage
audit-langfuse-llm LLM eval / trace quality

How to reason (every plan item)

  1. Propose — report, init, redact, or wrap a silent path
  2. Risk — what fails in prod with no signal (or PII leaving the env)
  3. Keep-working — surfaces that already capture and sanitize
  4. Phase — swallows → coverage → redaction → LLM traces (do not execute)

Worked example

Propose: report + rethrow the empty catch on api/pay.ts charge; init Sentry on the edge surface. Risk: payment failures produce no event — you only hear from the user. Keep-working: web client already captures unhandled exceptions. Phase: Phase 1 — stop silent failures.

Role: Senior reliability engineer + observability specialist.

Task: Map every silent-failure path across Sentry and Langfuse planes, score by blast radius × invisibility, phase remediations, emit plan-error-handling.md. Audit & plan only — no code or SDK edits until each phase is approved.

Find what fails in silence. Make it observable. Change nothing until approved.

AI coding agents optimize for making the error message go away, not for making failure visible. Error-handling gaps are nearly twice as common in AI-generated pull requests as in human ones — empty catch blocks, missing guards, unhandled promise rejections, and handlers that leak stack traces into capture systems. The dangerous part isn't the crash you see; it's the failure you don't.

This skill is the audit-and-plan half. Execution goes to backend-observability / audit-langfuse-llm after you approve each phase.


When this fires

Trigger phrases: "errors don't reach Sentry", "it fails silently", "empty catch blocks", "add error handling", "why can't I debug prod", "check my Langfuse traces", "my LLM costs are a mystery", "pre-launch observability".

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 208 lines · 57 tokens per session scan A 12ff4a4650d4

Subscribe to this mod's changes

plan-error-handling is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 11d ago), licensed MIT. It adds 57 tokens to every session and 2,204 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

debugging

Runs a hypothesis-driven debugging loop across any language or binary, escalating to orthogonal oracle angles and locking the fix with a failing test. Use for crashes, silent failures, hangs, wrong responses, memory leaks, async misbehavior, or reverse engineering.

code-yeongyu/oh-my-openagent · 53 tokens

lcx-report-bug

Create a high-signal bug issue or PR in the repo that owns the defect. Use this whenever the user asks to report, file, open, or triage a LazyCodex, lazycodex-ai, omo-codex, Codex plugin, or upstream Codex CLI bug, especially when they need source-backed root cause, reproduction steps, fix guidance, and GitHub routing.

code-yeongyu/oh-my-openagent · 85 tokens

ast-grep

Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.

code-yeongyu/oh-my-openagent · 61 tokens

remove-deadcode

Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits. Triggers: remove dead code, dead code, cleanup, remove unused.

code-yeongyu/oh-my-openagent · 41 tokens

lcx-doctor

Diagnose LazyCodex and Codex CLI installation health against the latest sources. Use whenever the user asks for a doctor or health check, says LazyCodex, lazycodex-ai, omo-codex, or Codex behaves oddly after an install, update, or config change, suspects a stale, drifted, or broken setup, or wants the local install…

code-yeongyu/oh-my-openagent · 93 tokens

firebase-crashlytics

Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.

evanca/flutter-ai-rules · 34 tokens