Home / Market / api connector builder

api connector builder

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.

skill★ 3153770 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: api-connector-builder description: 通过匹配目标仓库现有的集成模式,构建一个新的API连接器或提供者。适用于在不发明第二种架构的情况下添加一个集成。 origin: ECC direct-port adaptation version: "1.0.0"

---

API 连接器构建器

当任务需要添加仓库原生的集成接口,而非仅通用 HTTP 客户端时使用此工具。

关键在于匹配宿主仓库的模式:

使用时机

约束条件

工作流程

1. 学习内部风格

检查至少 2 个现有连接器/提供商,并映射:

2. 缩小目标集成范围

仅定义仓库实际需要的接口:

3. 按仓库原生层次构建

典型分层:

4. 对照源模式验证

新连接器应在代码库中显得自然,而非从不同生态导入。

参考模板

提供商风格

providers/
  existing_provider/
    __init__.py
    provider.py
    config.py

连接器风格

integrations/
  existing/
    client.py
    models.py
    connector.py

TypeScript 插件风格

src/integrations/
  existing/
    index.ts
    client.ts
    types.ts
    test.ts

质量检查清单

相关技能