cl-condition-system

Community

エラーハンドリングを条件システムで強化

Authorcxxxr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Common Lisp の条件システムを活用して、エラー処理を「通知」と「回復」に分離します。条件の定義・ハンドラ・リスタートを組み合わせることで、堅牢で再利用可能なエラーハンドリングを実装できます。

Core Features & Use Cases

  • define-condition の定義: カスタムエラー/警告の階層を作成
  • restart-case の提供: 回復手段を明示的に提供
  • handler-bind / handler-case の使い分け: ロギング、再試行、デフォルト動作の分離
  • 実践パターン: 再試行機構や検証フローの実装

Quick Start

基本的な parse 関数でエラーを発生させ、restart-case を用いて回復オプションを追加します。handler-bind/handler-case を組み合わせて、エラー時の挙動を分岐させます。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cl-condition-system
Download link: https://github.com/cxxxr/.claude/archive/main.zip#cl-condition-system

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository