
patternsadapter
by mgreenly
An AI Coding Agent
SKILL.md
name: patterns/adapter description: Adapter (Wrapper) Pattern pattern for C development
Adapter (Wrapper) Pattern
Convert interface of one module to interface expected by another. Enables integration of incompatible interfaces without modifying either.
ikigai Application
wrapper.h: Adapts system calls to mockable interface:
posix_read_()wrapsread()curl_easy_perform_()wraps libcurlyyjson_read_file_()wraps yyjson
Purpose: Real implementations in production, mock implementations in tests via weak symbol linking.
LLM providers: Adapt different API formats (OpenAI, Anthropic) to unified internal message format.
Benefit: External dependencies isolated behind stable internal interface. Swap implementations without changing callers.
Testing: Inject failures, control responses, verify calls.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です