Agent skill

Error Handling

by alchemyplatform in alchemyplatform/aa-sdk

A skill your agent uses when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.

MITAuto-check passedDevelopment

Install Error Handling

skills CLI
$ npx skills add alchemyplatform/aa-sdk --skill error-handling -a claude-code

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

GitHub CLI
$ gh skill install alchemyplatform/aa-sdk error-handling --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/alchemyplatform/aa-sdk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/error-handling .claude/skills/error-handling && 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
GitHub stars
321
Token cost
~299 tokens
SKILL.md length
79 words
Files
4
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.

  • Testing runtime errors in aa-sdk packages
  • SKILL.md covers Rules and Evidence
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Error handling

What it does

Error Handling is an agent skill from alchemyplatform/aa-sdk. Use when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `rules/base-error.md`, `rules/no-plain-error.md` and `rules/raise-footgun.md`).

It sits in Development, covering Error handling. It works with viem and wagmi. The licence is MIT.

When your agent uses it

  • Testing runtime errors in aa-sdk packages
  • Tasks that involve Error handling

Example prompts

  • “/error-handling”

What it can do on your machine

Read from SKILL.md and the folder at commit 2d60342. 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 loads about 299 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 79 words of instructions outside code blocks.

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

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 alchemyplatform/aa-sdk at commit 2d60342, republished under its MIT licence (© alchemyplatform). 79 words, ~299 tokens.

Download SKILL.mdSave it as .claude/skills/error-handling/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
error-handling
description
Use when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.
last_verified
2026-05-06

Error Handling

Runtime package errors should use the SDK error hierarchy rooted at @alchemy/common BaseError.

Rules

RuleWhen to read
BaseErrorBefore adding package runtime errors.
No plain ErrorBefore writing throw statements in packages/.
Raise footgunBefore using or modifying raise.

Evidence

  • packages/common/src/errors/BaseError.ts extends viem's BaseError.
  • .eslintrc forbids throw new Error(...) in packages/**/* except tests.
  • .eslintrc forbids import { BaseError } from "viem" to prevent accidentally using viem's BaseError instead of @alchemy/common's.
  • packages/wallet-apis/src/utils/schema.ts wraps Zod validation failures in @alchemy/common BaseError.

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

Files

SKILL.md and 3 other files in .agents/skills/error-handling of alchemyplatform/aa-sdk.

  • SKILL.md
  • rules/base-error.md
  • rules/no-plain-error.md
  • rules/raise-footgun.md

Open the folder on GitHubat commit 2d60342

Compare with similar skills

Error Handling 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Error Handling this skillalchemyplatform/aa-sdk321—~299Automated safety check: PassMIT
Mole Bug Patternstw93/Mole69k—~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
Wagmi Feature Developmentwevm/wagmi6.8k—~3.8kAutomated safety check: PassMIT

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.

    69k GitHub stars~2k tokensUpdated yesterday
    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
  • Walks through adding a Wagmi feature across its layers: a Viem-based core action, TanStack Query options, and React and Vue bindings.

    6.8k GitHub stars~3.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Error Handling

    microsoft/data-formulator

    Official

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

    18k GitHub stars~3.8k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from alchemyplatform/aa-sdk

All 8 skills in this repo
  • Documentation

    alchemyplatform/aa-sdk

    A skill your agent uses when editing docs//.mdx, generated reference docs, TypeDoc comments, typedoc.json, docs/docs.yml, or documentation review instructions.

    321 GitHub stars~339 tokensUpdated 2 days ago
    Auto-check passed
  • Package Exports

    alchemyplatform/aa-sdk

    A skill your agent uses when changing package entry points, exports maps, public API barrels, import paths, or subpath exports in aa-sdk packages.

    321 GitHub stars~364 tokensUpdated 2 days ago
    Auto-check passed
  • Release Workflows

    alchemyplatform/aa-sdk

    A skill your agent uses when changing GitHub workflows, Lerna versioning, package publish, or post-merge docs hooks (revalidate + SDK indexer).

    321 GitHub stars~417 tokensUpdated 2 days ago
    Auto-check passed
  • Smart Accounts

    alchemyplatform/aa-sdk

    A skill your agent uses when changing packages/smart-accounts, account implementations, modules, permissions, nonces, deferred actions, or account address helpers.

    321 GitHub stars~346 tokensUpdated 2 days ago
    Auto-check passed
  • Testing

    alchemyplatform/aa-sdk

    A skill your agent uses when writing or modifying Vitest tests, .vitest setup, Anvil/Foundry or Rundler fixtures, per-package test config, or CI affected-test behavior.

    321 GitHub stars~305 tokensUpdated 2 days ago
    Auto-check passed
  • Tooling

    alchemyplatform/aa-sdk

    A skill your agent uses when changing package management, workspace config, build scripts, generated outputs, Turborepo/Lerna config, or local validation in aa-sdk.

    321 GitHub stars~374 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Error Handling

What does Error Handling do?

A skill your agent uses when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages. Error Handling is an agent skill from alchemyplatform/aa-sdk. Use when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.

When should I use Error Handling?

Error Handling fits situations like: testing runtime errors in aa-sdk packages; tasks that involve Error handling.

How do I install Error Handling in Claude Code?

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

How do I install Error Handling in Codex?

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

Can I use Error Handling 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 alchemyplatform/aa-sdk --skill error-handling -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, .gemini/skills/error-handling, .github/skills/error-handling and .opencode/skills/error-handling in your project.

What does Error Handling need to run?

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

Does Error Handling 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 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 use?

Error Handling 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 use?

About 299 tokens (SKILL.md is roughly 1.2k 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?

Skills that share tags, products or a category with Error Handling: Mole Bug Patterns (tw93/Mole, 69k 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?

alchemyplatform (a GitHub organization) maintains it in alchemyplatform/aa-sdk, which has 321 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 5, 2026.

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