kavo: Skill for Claude Code

.claude/skills/add-exception/SKILL.md

add-exception is a skill for Claude Code from kavo-labs/kavo. It costs 51 tokens per session (950 once invoked), scanned A, original, MIT.

A guide for adding a new typed application error to the Kavo project. It explains where the exception, error-code entry, and RFC 9457 problem-details response belong.

In plain words
What is it for?
Adding a distinct failure mode, assigning its HTTP response details, and mapping it through the project's adapters.
Why use it?
It prevents new failures from being represented inconsistently or bypassing the project's error-handling rules.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is kavo-labs/kavo's own configuration. It tells Claude Code how to work on kavo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kavo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kavo-labs/kavo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kavo-labs/kavo/main/.claude/skills/add-exception/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/kavo-labs/kavo

Made for: Claude Code.

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 add-exception

README.md
[![agentmods](https://agentmods.dev/badge/skills/kavo-labs/kavo/add-exception/github.svg)](https://agentmods.dev/skills/kavo-labs/kavo/add-exception)
Your own site
<a href="https://agentmods.dev/skills/kavo-labs/kavo/add-exception"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/add-exception/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 add-exception

Your own site · 80×15
<a href="https://agentmods.dev/skills/kavo-labs/kavo/add-exception"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/add-exception.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 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.
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.00051 $0.00950
Opus 5.5 $0.00020 $0.00380
Sonnet 5.5 $0.00010 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 1mo ago against content hash 0311a0c85d7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-exception 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 1mo 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.

.claude/skills/add-exception/SKILL.md · 74 lines

How it starts

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

Adding an exception

Kavo has one exception hierarchy, one error-code catalog, and one wire shape (RFC 9457 problem details, ADR-0009) — docs/internals/architecture/06-error-handling.md. A new failure mode is a new catalog entry, never a raw Error, a bare string code, or a second serialization path.

Decide it's actually new

Check ERROR_CATALOG (packages/core/src/errors/error-catalog.ts) and the hierarchy first — a new failure mode for an existing code (e.g. another reason a request is malformed) is usually a QueryValidationException issue, not a new class. Only add a leaf when the failure needs its own HTTP status, its own payload shape, or callers need to instanceof/catch it distinctly.

Where it goes

  1. The class — a new leaf under KavoException (packages/core/src/errors/), named *Exception. It implements the KavoExceptionShape contract; downstream layers (including @kavo/nest's filter and @kavo/next's toErrorResponse) program against that shape, never the concrete class, so don't add fields the base contract can't express without extending the contract itself.
  2. The catalog entry — ERROR_CATALOG gets one row: a stable KAVO_SNAKE_CASE code, HTTP status, title, and an English message template with {param} placeholders. Codes are public API surface — once shipped, renaming one is a breaking change. Pick the name you're willing to keep.
  3. Payload extensions, if any — follow the existing pattern rather than inventing a shape: issue-level detail lives in errors[] (query validation), per-item detail in items[] (bulk), a typed flag alongside the message (retryable on TransactionException). A new top-level wire field needs a reason errors[]/items[] can't already carry it.
  4. ErrorContext — the throw site doesn't need to fill entityName/operation/correlationId itself; DefaultErrorHandler backfills whatever's missing. Don't hand-roll that at the throw site.
  5. Adapter mapping, if it originates from @kavo/typeorm — add the translation in the adapter's own table (mapDriverError, doc 09 §5) inside the adapter package. Core never gains ORM-specific knowledge to recognize a driver error; whatever the adapter doesn't recognize already falls through to PersistenceException with the original as cause.
  6. exposeInternals — if the new exception can carry adapter/driver detail, gate it behind errors.exposeInternals (default false) the same way PersistenceException.cause is gated — never leak it unconditionally.

Read the full file on GitHub · 74 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. 1mo ago Changed · +1 lines 0311a0c85d7a
  2. 1mo ago First seen · 73 lines · 51 tokens per session scan A 68a771e20da3

Subscribe to this mod's changes

add-exception is a skill published in the GitHub repository kavo-labs/kavo (17 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 950 once invoked, about $0.0002 per session on Opus 5.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-02.

Related

Other skills, from other repositories

nestjs-expert

Expert knowledge in NestJS framework, modular architecture, dependency injection, TypeORM/Prisma persistence, microservices transports, and enterprise-grade Node.js backend development. Use when the user mentions NestJS, Nest CLI, decorators, dependency injection, guards, interceptors, or backend microservices, or…

personamanagmentlayer/pcl · 81 tokens

prisma-8

Use when working in a project that depends on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo (Prisma 8, formerly Prisma Next): editing contract.prisma or a contract.ts builder, running prisma contract emit, planning or applying migrations, editing migration.ts, writing db.orm / db.sql / db.query…

prisma/orm · 220 tokens

nestjs

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…

ericrisco/rsc-harness · 81 tokens

webiny-api-cms-content-models

Creating Headless CMS content models via code using the ModelFactory pattern. Use this skill when the developer wants to create, modify, or understand content model definitions, define fields and validators, set up reference fields between models, configure field layouts (including nested layouts inside object or…

webiny/webiny-js · 313 tokens

webiny-form-model

Building forms with the FormModel system — field types, renderers, layout, validation, conditional rules, computed fields, and dynamic zones. Use this skill when the developer needs to define form fields with the builder API, choose renderers, build layouts with tabs/rows/separators, add validation (Zod or…

webiny/webiny-js · 93 tokens

webiny-api-architect

The hub skill for all API/backend architecture in Webiny. Covers architecture overview, Services vs UseCases, feature naming and organization, feature structure templates, DI decision tree, anti-patterns, createFeature, createAbstraction, container registration, domain errors, entity patterns, naming conventions…

webiny/webiny-js · 90 tokens