Skip to content
Back to skills

Use Error Info

ASecurity

When handling errors locally instead of propagating them, include the error data in logs or messages. Never discard caught errors with `_`. Use when writing try/catch, Result handling, or error case branches.

  • 3 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added May 27, 2026
data-ai

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ncaq/konoka --skill use-error-info --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Use Error Info?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Use Error Info
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ncaq-use-error-info/badge)](https://www.skillsdirectory.com/skills/ncaq-use-error-info)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: use-error-info
description: When handling errors locally instead of propagating them, include the error data in logs or messages. Never discard caught errors with `_`. Use when writing try/catch, Result handling, or error case branches.
user-invocable: false
---

# エラー処理時にエラーデータを使う

エラーのようなものをcatchやcaseで受け取って、
そのまま上流にエラーを伝播させるのではなく、
その場所でエラーを処理するときは、
エラーデータを適切に使ってください。

例えば出現する原因を修正するのは困難だけど、
エラーによって致命的な問題にならない場合は、
普通は警告ログなどを出力してそのまま続行します。
その時警告ログにはエラーデータの内容を含めて、
開発者や利用者が問題を把握しやすいようにしてください。

エラーデータを`_`とかに代入してそのまま捨ててしまうことは禁止です。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.