← スキル一覧に戻る

patternsobserver
by mgreenly
An AI Coding Agent
⭐ 1🍴 0📅 2026年1月24日
SKILL.md
name: patterns/observer description: Observer Pattern (Callbacks) pattern for C development
Observer Pattern (Callbacks)
Objects register interest in events and get notified when they occur. In C, implemented as callback function pointers with context.
ikigai Application
Streaming chunks: LLM client notifies REPL as response chunks arrive:
typedef void (*chunk_callback_t)(void *ctx, const char *chunk, size_t len);
res_t ik_llm_stream(client, messages, on_chunk, user_ctx);
Terminal resize: Signal handler notifies REPL of SIGWINCH.
Future uses:
- Database change notifications
- Tool execution progress
- Background task completion
Convention: Always pair callback function pointer with void *user_ctx parameter.
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です