common-error-handling
Cross-cutting standards for error design, response shapes, error codes, and boundary placement.
Skill by wildbitca
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wildbitca-common-error-handling
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/common-error-handling
What's inside
- Skill name
common-error-handling- Description
- Cross-cutting standards for error design, response shapes, error codes, and boundary placement. (triggers: **/*.service.ts, **/*.handler.ts, **/*.controller.ts, **/*.go, **/*.java, **/*.kt, **/*.py, error handling, exception, try catch, error boundary, error response, error code, throw)
- License
- Apache-2.0
- Instructions
- 28 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- api-error-contract.md · references/
- example.md · references/
SKILL.md (first lines)
# Error Handling Standards
## **Priority: P1 (OPERATIONAL)**
## 🏗 Error Architecture
- **API Layer**: Map domain errors to HTTP responses globally.
- **Domain Layer**: Throw pure business errors. NO HTTP status codes here.
- **Infra Layer**: Wrap 3rd-party exceptions. Do NOT leak raw DB errors to API.
- **Standard Shape**: APIs must return a standardized JSON envelope (`code`, `message`, `traceId`).
## 📦 Error Mechanics
- **Wrap**: Add context (`fmt.Errorf("process: %w", err)`, `new Error('msg', { cause })`).
- **Replace**: Only when original error leaks sensitive details.
- **Error Codes**: Use `SCREAMING_SNAKE_CASE` IDs (`ORDER_PAYMENT_FAILED`).
## 🚫 Anti-Patterns
- **Swallowing Errors**: Never `catch(e) {}` without logging or re-throwing.
- **Stack Traces**: Never expose stack traces in API responses.
- **Generic 500s**: Use `400` with specific details for validation instead of 500.
## References
- [API Error Contract](references/api-error-contract.md)From wildbitca/ai-resources, Apache-2.0.
More from wildbitca/ai-resources
- 0.592score
code-cleanup
wildbitca
Applies generic code cleanup (comments, unused code, empty dirs, linters, config, duplicates) for any language (Dart, Bash, Python, Java, Kotlin, Swift…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-debugging
wildbitca
Systematic troubleshooting using the Scientific Method.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-documentation
wildbitca
Essential rules for code comments, READMEs, and technical docs.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-feedback-reporter
wildbitca
Pre-write skill violation audit.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-git-collaboration
wildbitca
Universal standards for version control, branching, and team collaboration.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-llm-security
wildbitca
OWASP LLM Top 10 (2025) audit checklist for AI applications, agent tools, RAG pipelines, and prompt construction.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
changelog-best-practices
wildbitca
Write, maintain, and migrate CHANGELOG.md files using Keep a Changelog format and best practices.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-api-design
wildbitca
REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-code-review
wildbitca
Standards for high-quality, persona-driven code reviews.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-mobile-ux-core
wildbitca
Universal mobile UX principles for touch-first interfaces.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-accessibility
wildbitca
WCAG 2.2, ARIA, semantic HTML, keyboard navigation, and color contrast standards for web UIs.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-architecture-audit
wildbitca
Protocol for auditing structural debt, logic leakage, and fragmentation across Web, Mobile, and Backend.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Oct 23, 2026 (6 days ago)
- Last release
- Oct 24, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/wildbitca/ai-resources
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wildbitca
- 0.592score
common-code-review
wildbitca
Standards for high-quality, persona-driven code reviews.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-debugging
wildbitca
Systematic troubleshooting using the Scientific Method.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
changelog-best-practices
wildbitca
Write, maintain, and migrate CHANGELOG.md files using Keep a Changelog format and best practices.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-api-design
wildbitca
REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
code-cleanup
wildbitca
Applies generic code cleanup (comments, unused code, empty dirs, linters, config, duplicates) for any language (Dart, Bash, Python, Java, Kotlin, Swift…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-documentation
wildbitca
Essential rules for code comments, READMEs, and technical docs.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
common-error-handling skill. Agent Mart. https://agentmart.dev/skills/wildbitca-common-error-handling (last updated 2026-10-24)