首页/AI 后端工程/api-connector-builder
A

api-connector-builder

by @affaan-mv
4.4(15)

为代码库添加原生API集成,遵循项目的连接器布局、配置架构、认证模型和错误处理模式

backendapi-integrationapi-developmenttypescriptautomationGitHub
安装方式
npx skills add https://github.com/affaan-m/everything-claude-code --skill api-connector-builder
compare_arrows

Before / After 效果对比

1 组
使用前

手动研究现有项目的API集成模式,反复试错配置格式和认证流程,与项目风格不一致,需要多次重构才能合并

使用后

自动分析项目的连接器模式,生成符合项目风格的API集成代码,包括配置schema、认证处理和错误响应,一次通过率大幅提升

SKILL.md

api-connector-builder

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

Weekly Installs495Repositoryaffaan-m/everyt…ude-codeGitHub Stars156.2KFirst Seen9 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex466opencode450gemini-cli447cursor447antigravity446kimi-cli446

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量4.3K
评分4.4 / 5.0
版本
更新日期2026年8月5日
对比案例1 组

用户评分

4.4(15)
5
40%
4
33%
3
13%
2
7%
1
7%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年4月16日
最后更新2026年8月5日
🎁 Agent 知识卡片
调研问卷