smithery/oalkabouss

backend-error-handling

Backend typed error handling and boundary mapping

Installation

$ npx skills add smithery/oalkabouss --skill backend-error-handling

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/oalkabouss.

npx skills add smithery/oalkabouss

Browse all from smithery/oalkabouss

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Declared

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT
Compatibilityopencode
Declared agents opencode
More metadata
stack
node-react-next
style
solid-clean-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 808 B
  • docs SUMMARY.md 79 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

What I do

Je standardise une gestion d'erreurs typée et composable côté backend.

Rules

  • Domain errors : invariants.
  • Application errors : orchestration/policies.
  • Presentation : mapping vers HTTP.

Template

export class NotFoundError extends Error {
  readonly code = 'NOT_FOUND';
}

export function toHttp(err: unknown) {
  if (err instanceof NotFoundError) return { status: 404, body: { message: err.message } };
  return { status: 500, body: { message: 'Internal error' } };
}

When to use

  • Chaque fois qu'un contrôleur commence à contenir des if/else d'erreurs.