Skip to main content
skill CX Codex

w-errors — Claude Code skill: error handling

w-errors — a Claude Code skill that adds error handling in line with a repository’s conventions. Invoke it explicitly while changing code.

MIT 647 installs ★ 1 updated 2026-10-02

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add blockmatic-icebox/basilic-skills --skill w-errors -a claude-code
Open on GitHub

What w-errors does

The skill finds failure points along the changed code path and adds handling that follows the repository’s conventions. It uses existing error types, logging packages, and user-facing error patterns; the relevant guidance comes from the error-handling page named in AGENTS.md.

A write can be retried only when replaying it is safe. If a retry is already required but replay safety does not hold, the skill keeps an explicit no-retry path with a bounded deadline. Cover the new path with a test or a named manual scenario, then run the smallest existing check.

The agent does not invoke the skill automatically because disable-model-invocation is enabled. If behavior or commands change, it also points to /w-docs for documentation updates.

What it helps with

  • find failure points in changed code
  • match error handling to repository types and logging
  • cover a new path with a test or manual scenario
  • run the smallest existing check

Example prompts for the agent

  • Add error handling to the changed code using this repository’s conventions.
  • Find failure points along this path and use the existing logger.
  • Test the new error path and run the smallest existing check.

How to install w-errors

1Skills CLI (Vercel)

npx skills add blockmatic-icebox/basilic-skills --skill w-errors -a claude-code

2Manually: put the files in place

~/.claude/skills/w-errors/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/w-errors/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about w-errors

How do I install w-errors in Claude Code?

Run npx skills add blockmatic-icebox/basilic-skills --skill w-errors -a claude-code. The skill file is at ~/.claude/skills/w-errors/SKILL.md.

What does w-errors do?

It adds failure handling to changed code using the repository’s existing error types, logger, and user-facing patterns. It also calls for a test or manual scenario and the smallest existing check.

When does w-errors allow a retry?

Only when replaying a write is safe. Otherwise, if a retry is already required, it keeps an explicit no-retry path with a bounded deadline.

Source text

SKILL.md · MIT
---
name: w-errors
description: Add error handling that matches existing repo error and logging packages.
disable-model-invocation: true
---

Harden the current code's failure paths. Follow the error-handling page named from `AGENTS.md` and existing error/logger packages. Do not hide the owning failure with retries.

1. Identify failure points on the changed path: validation, I/O, authz, empty/invalid input.
2. Use the repo error type and logger. Return or render existing user-facing error patterns.
3. Retry only when the write is replay-safe. Otherwise keep an explicit no-retry path with a bounded deadline if a retry is already required.
4. Cover the new path with a test or a named manual scenario. Run the smallest existing check.
5. Docs: `/w-docs` if behavior or commands changed.

© blockmatic-icebox · MIT · blockmatic-icebox/basilic-skills

Similar skills

All skills for Code review and refactoring →

From the same set45

The whole set →
w-review-plan The w-review-plan Claude Code skill checks a plan’s goals, assumptions, tasks, risks, and references. It compares the plan with project code and docs. CX Codex +1 649installs w-refactor The w-refactor Claude Code skill restructures selected code while preserving its behavior. It starts by recording a baseline with tests, type checks, or a manual scenario. CX Codex +1 647installs w-perf The w-perf Claude Code skill measures project performance and locates bottlenecks. It runs on requests to investigate slow code or improve performance. CX Codex +1 647installs w-a11y The w-a11y Claude Code skill checks UI accessibility against a repository’s docs and tests. It reports findings by default and changes code only when asked to fix issues. CX Codex +1 647installs w-form The w-form Claude Code skill guides form work in a Next.js app through the mutation path the project already uses. Invoke it to build a form. CX Codex +1 647installs w-v0 The w-v0 Claude Code skill drafts a v0.dev prompt from the current file, selection, and project stack. It opens the generated link only after OPEN. CX Codex +1 647installs w-shadcn The w-shadcn Claude Code skill adds shadcn primitives to a shared UI package or extends existing ones. It handles component-level work; screen redesigns go through /w-ui. CX Codex +1 647installs w-ui w-ui — a Claude Code skill for building or reshaping user-facing interfaces around a project’s existing tokens and accessible interactions. It checks rendered screens on desktop and mobile. CX Codex +1 647installs

Project sponsors

Companies that keep this analytics open