api-connector-builder
ما الذي تفعله
تساعد هذه المهارة على إنشاء تكاملات جديدة لمشروع برمجي بمطابقة الأسلوب الموجود تمامًا. فيتناسب الجزء الجديد مع المشروع دون إدخال طريقة عمل جديدة.
متى تستخدمها
- ✓عندما تضيف اتصالًا بخدمة مثل Jira إلى مشروع قائم.
- ✓عندما تنشئ ميزة تحتاج إلى التواصل مع API آخر باستعمال النمط المعتمد.
- ✓عندما تضيف نوع تكامل آخر دون تغيير البنية.
رابط المهارة
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/api-connector-builder/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ موصّلًا لخدمة البريد الإلكتروني، واتبع نمط الموصلات الموجودة في هذا المشروع.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحلل المهارة أولًا طريقة بناء التكاملات الحالية، كالتخطيط والإعداد والمصادقة. ثم تبني التكامل الجديد بتكرار ذلك الأسلوب، حتى يتناسب كل شيء ويعمل داخل المشروع.
المحتوى التقني (ملف 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
الأسئلة الشائعة
ما «الموصّل» أو «المزوّد» (connector / provider)؟
هو جزء من الشيفرة يسمح لبرنامج بالتواصل مع خدمة أو 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
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
accessibility
280kيساعد وكيلك على بناء واجهات يستطيع الجميع استعمالها، ويضمن عمل المواقع والتطبيقات جيدًا لذوي الإعاقة، كالمكفوفين وذوي الحركة المحدودة.
agent-architecture-audit
280kيتأكد وكيلك من أن كل شيء يعمل بشكل صحيح، ويجد مشكلات أنظمة الذكاء الاصطناعي ويصلحها، ليؤدي كما هو متوقع.
agent-eval
280kيساعد وكيلك على مقارنة أدوات البرمجة بالذكاء الاصطناعي المختلفة، ويقيس أيها أسرع وأرخص وأكثر موثوقية لمهام محددة.
agent-harness-construction
280kيساعد وكيلك على فهم طريقة إنجاز المهام بشكل أفضل، عبر تحسين الأدوات والتعليمات التي يستعملها لزيادة فرص نجاحه.
مهارات مشابهة
shopify
260kيتيح لوكيلك قراءة بيانات متجر Shopify وتحديثها، مثل المنتجات والمخزون والطلبات والعملاء، عبر واجهة Shopify GraphQL API.
rest-graphql-debug
260kيساعد وكيلك على معرفة سبب فشل استدعاء API من نوع REST أو GraphQL، بفحص الاتصال وتسجيل الدخول وصيغة الطلب والرد طبقة بعد طبقة.
har-derived-api-client
260kيساعد وكيلك على تسجيل حركة الشبكة لموقع إلكتروني مرة واحدة، ثم بناء عميل API مباشر له، فلا يعود إلى النقر في الصفحة في كل مرة.