api-connector-builder
できること
このツールは、既存のプロジェクトにある連携機能と同じスタイルで、新しい連携機能を作る手助けをします。新しい部分が既存の仕組みにぴったり合い、新しい書き方を持ち込まないようにします。
使う場面
- ✓既存のプロジェクトに、サービス(例:Jira)との新しい接続を追加するとき。
- ✓確立されたパターンに沿って、別のAPIと通信する新機能を作るとき。
- ✓アーキテクチャを変えずに、連携の種類をもう1つ増やすとき。
スキルのリンク
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/api-connector-builder/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトにある既存のコネクタと同じパターンに従って、メールサービス用のコネクタを作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールはまず、既存の連携機能がどのように作られているか(構成、設定、認証の方法など)を分析します。次に、そのスタイルを再現して新しい連携機能を組み立て、プロジェクトの中で問題なく動くように整えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
API Connector Builder
Use this when the job is to add a repo-native integration surface, not just a generic HTTP client.
The point is to match the host repository's pattern:
- connector layout
- config schema
- auth model
- error handling
- test style
- registration/discovery wiring
When to Use
- "Build a Jira connector for this project"
- "Add a Slack provider following the existing pattern"
- "Create a new integration for this API"
- "Build a plugin that matches the repo's connector style"
Guardrails
- do not invent a new integration architecture when the repo already has one
- do not start from vendor docs alone; start from existing in-repo connectors first
- do not stop at transport code if the repo expects registry wiring, tests, and docs
- do not cargo-cult old connectors if the repo has a newer current pattern
Workflow
1. Learn the house style
Inspect at least 2 existing connectors/providers and map:
- file layout
- abstraction boundaries
- config model
- retry / pagination conventions
- registry hooks
- test fixtures and naming
2. Narrow the target integration
Define only the surface the repo actually needs:
- auth flow
- key entities
- core read/write operations
- pagination and rate limits
- webhook or polling model
3. Build in repo-native layers
Typical slices:
- config/schema
- client/transport
- mapping layer
- connector/provider entrypoint
- registration
- tests
4. Validate against the source pattern
The new connector should look obvious in the codebase, not imported from a different ecosystem.
Reference Shapes
Provider-style
providers/
existing_provider/
__init__.py
provider.py
config.py
Connector-style
integrations/
existing/
client.py
models.py
connector.py
TypeScript plugin-style
src/integrations/
existing/
index.ts
client.ts
types.ts
test.ts
Quality Checklist
- matches an existing in-repo integration pattern
- config validation exists
- auth and error handling are explicit
- pagination/retry behavior follows repo norms
- registry/discovery wiring is complete
- tests mirror the host repo's style
- docs/examples are updated if expected by the repo
Related Skills
backend-patternsmcp-server-patternsgithub-ops
よくある質問
「コネクタ」や「プロバイダー」とは何ですか?
あるソフトウェアが別のサービスやAPIと通信して利用できるようにするコードのことです。橋渡し役のような役割を果たします。
既存のパターンに従うことがなぜ重要なのですか?
コードを整理された状態に保ち、理解しやすく、保守しやすくするためです。似た機能に対して異なる書き方が混在するのを防ぎます。
このツールで、まったく新しい連携機能を作ることはできますか?
いいえ。このツールの主な目的は、プロジェクト内の既存のパターンを再現することです。プロジェクトにパターンがない場合、このツールは適していないかもしれません。
詳細
作者による元の説明
Build a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integration without inventing a second architecture.
repo: affaan-m/ECC
人気
- GitHubのスター
- 280k
- ランキング
- #137
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
accessibility
280kエージェントが誰にとっても使いやすいインターフェースを作れるように手助けします。目が見えない方や身体の動きに制限のある方など、障害のある人にとってもWebサイトやアプリが正しく動くようにします。
agent-architecture-audit
280kエージェントがすべて正しく動いているかを確認できるようにします。AIシステムの問題を見つけて修正し、期待どおりに動くようにします。
agent-eval
280kエージェントが異なるAIコーディングツールを比較できるようにします。特定のタスクにおいて、どれがより速く、安く、信頼性が高いかを測定します。
agent-harness-construction
280kエージェントがタスクの進め方をよりよく理解できるようにします。エージェントが使うツールや指示を最適化し、成功する可能性を高めます。
似ているスキル
shopify
260kShopify GraphQL APIを使い、商品、在庫、注文、顧客などのShopifyストアのデータを読み取り、更新するのをエージェントが支援します。
rest-graphql-debug
260k接続、ログイン、リクエストの形式、レスポンスを一層ずつ確認して、RESTまたはGraphQLのAPI呼び出しが失敗する理由を、エージェントが見つけるのを支援します。
har-derived-api-client
260kウェブサイトのネットワークトラフィックを一度記録し、直接のAPIクライアントを作ることで、毎回ページをクリックして操作しなくて済むようにエージェントを助けます。