Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)280k · #137

api-connector-builder

Skill này làm gì

Công cụ này giúp tạo tích hợp mới cho một dự án phần mềm bằng cách bám sát chính xác phong cách của các tích hợp đã có. Nó đảm bảo phần mới khớp hoàn toàn mà không đưa vào cách làm khác.

Khi nào nên dùng

  • ✓Thêm kết nối cho một dịch vụ (ví dụ Jira) vào một dự án đang có.
  • ✓Tạo một tính năng cần giao tiếp với một API khác, theo mẫu đã thiết lập.
  • ✓Mở rộng hệ thống để hỗ trợ thêm một loại tích hợp mà không thay đổi kiến trúc.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/api-connector-builder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một connector cho dịch vụ email, theo mẫu của các connector đã có trong dự án này.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ trước hết phân tích cách các tích hợp hiện tại được xây dựng (cấu trúc, cấu hình, xác thực). Sau đó nó tạo tích hợp mới bằng cách sao chép phong cách đó, đảm bảo mọi thứ khớp và hoạt động trong dự án.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

“Connector” hoặc “provider” là gì?

Đó là đoạn code cho phép một phần mềm giao tiếp và dùng một dịch vụ hoặc API khác, đóng vai trò như cầu nối.

Tại sao cần theo mẫu đã có?

Để giữ code có tổ chức, dễ hiểu và dễ bảo trì. Điều này tránh việc dự án có nhiều phong cách code khác nhau cho các chức năng tương tự.

Tôi có thể dùng công cụ này để tạo một tích hợp hoàn toàn mới không?

Không, mục tiêu chính là sao chép một mẫu có sẵn trong dự án. Nếu dự án chưa có mẫu, công cụ này có thể không phù hợp.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#137
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự