Api connector builder

From aaione/everything-claude-code-zh · View interactive version

Api connector builder is an AI agent skill from the GitHub repository aaione/everything-claude-code-zh. 通过完全匹配目标存储库的现有集成模式来构建新的 API 连接器或提供商。当在不发明第二种架构的情况下添加另一个集成时使用。

How to use this skill

Skill file

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

质量检查清单

相关技能

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.