← スキル一覧に戻る

patternschain-of-responsibility
by mgreenly
An AI Coding Agent
⭐ 1🍴 0📅 2026年1月24日
SKILL.md
name: patterns/chain-of-responsibility description: Chain of Responsibility Pattern pattern for C development
Chain of Responsibility Pattern
Pass request along a chain of handlers until one handles it. Each handler decides to process or pass to next. In C, linked list of handler functions.
ikigai Application
Input processing: Bytes flow through: escape sequence detector → UTF-8 assembler → action mapper → REPL handler.
Command dispatch: Try slash command handlers in order until one matches.
Future uses:
- Middleware for tool execution (auth, logging, rate limiting)
- Message preprocessing pipeline
- Error recovery chain
Implementation:
typedef res_t (*handler_fn)(void *ctx, request_t *req, handler_fn next);
Benefit: Add/remove processing steps without modifying existing handlers.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です