跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/oliver-kriska/claude-elixir-phoenix/narrow-bare-rescue

Claude Code narrow-bare-rescue skill: Review Elixir exception handling

Trace the calls inside a broad rescue and identify which exceptions represent expected failures. The skill helps preserve the fallback for those cases while exposing unexpected programming errors.

中文

Install in Claude Code

Use a practice Elixir and Mix project. Keep the bundled exception taxonomy and patterns with the skill.

  1. Download the repository snapshot at the linked commit. Copy the entire plugins/elixir-phoenix/skills/narrow-bare-rescue/ directory into .claude/skills/narrow-bare-rescue/ in your practice project.
  2. Check that SKILL.md is directly inside .claude/skills/narrow-bare-rescue/. Open Claude Code from the project root.
  3. Enter /narrow-bare-rescue to start the example below.

Example task

Write a sample function that calls String.to_integer and returns :invalid from a broad rescue. Run /narrow-bare-rescue for the file and ask which exception to handle and which inputs to test.

What to check

Look for a proposal to handle ArgumentError and tests for a valid number and a malformed string. Compile and run the relevant tests after applying a change.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

How can I keep expected failures working after narrowing rescue?

List the expected failure paths, confirm the exception type for each, and test the expected success and failure inputs.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯