Langsung ke konten
Skillpedia
API & server (backend)280k · #137

api-connector-builder

Fungsinya

Alat ini membantu membuat integrasi baru untuk proyek perangkat lunak dengan mencocokkan gaya integrasi yang sudah ada. Alat ini memastikan bagian baru pas dengan proyek tanpa memperkenalkan cara kerja yang berbeda.

Kapan dipakai

  • ✓Menambahkan koneksi untuk layanan (misalnya Jira) ke proyek yang sudah ada.
  • ✓Membuat fitur baru yang perlu berkomunikasi dengan API lain, dengan mengikuti pola yang sudah berlaku.
  • ✓Memperluas sistem agar mendukung satu jenis integrasi lagi tanpa mengubah arsitekturnya.

Link skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/api-connector-builder/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/api-connector-builder/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Buatkan connector untuk layanan email, dengan mengikuti pola connector yang sudah ada di proyek ini.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini pertama-tama menganalisis bagaimana integrasi yang ada dibangun (tata letak, konfigurasi, autentikasi). Kemudian, alat ini membuat integrasi baru dengan meniru gaya tersebut, memastikan semuanya cocok dan berfungsi sebagaimana mestinya di dalam proyek.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-patterns
  • mcp-server-patterns
  • github-ops
Pertanyaan umum

Apa itu 'connector' atau 'provider'?

Ini adalah potongan kode yang memungkinkan satu perangkat lunak berkomunikasi dan menggunakan layanan atau API lain, bertindak seperti jembatan.

Mengapa penting untuk mengikuti pola yang sudah ada?

Agar kode tetap rapi, mudah dipahami, dan mudah dipelihara. Ini mencegah proyek memiliki gaya penulisan kode yang berbeda untuk fungsi yang serupa.

Bisakah saya memakai alat ini untuk membuat integrasi yang sama sekali baru?

Tidak. Tujuan utamanya adalah meniru pola yang sudah ada di dalam proyek. Jika proyek belum memiliki pola, alat ini mungkin kurang cocok.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
280k
Peringkat
#137
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa