スキル一覧に戻る
oalkabouss

backend-error-handling

by oalkabouss

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: backend-error-handling description: Backend typed error handling and boundary mapping compatibility: opencode license: MIT metadata: stack: node-react-next style: solid-clean-code

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.

スコア

総合スコア

45/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です