AgentSkillsCN

integration-preflight

在与外部平台、API 或服务构建集成之前,此技能为必用项。当涉及到对接第三方服务、搭建隧道或代理、实现身份验证流程、部署至云平台、配置 Webhook,或任何需将本地代码与外部系统相连接的工作时,该技能均会触发。关键失误模式:假设各平台之间的功能完全一致(桌面端 ≠ 网页端 ≠ 移动端 ≠ API),或在未确认最终目标能否达成的情况下便开始多步骤的实施流程。请在实施前,先通过 Context7 查询官方文档,切勿等到耗费数小时的搭建工作后再去查阅。

SKILL.md
--- frontmatter
name: integration-preflight
description: >
  MANDATORY before building integrations with external platforms, APIs, or services.
  Triggers on: connecting to third-party services, setting up tunnels/proxies,
  implementing auth flows, deploying to cloud platforms, configuring webhooks,
  any work that bridges local code to external systems. CRITICAL FAILURE MODE:
  Assuming feature parity across platforms (desktop ≠ web ≠ mobile ≠ API), or
  starting multi-step implementation without verifying the end goal is achievable.
  Use Context7 to query official docs BEFORE implementation, not after hours of setup.

Integration Preflight Check

Core Rule

Verify requirements before implementation.

If integration work takes >10 minutes, confirm the destination platform actually supports what you're building BEFORE starting.

Triggers

Run this check when:

  • Connecting to third-party APIs or services
  • Setting up tunnels, proxies, or public endpoints
  • Implementing authentication flows (OAuth, API keys, tokens)
  • Deploying to cloud platforms
  • Building for a specific client (web, mobile, desktop, CLI)
  • Configuring webhooks or callbacks
  • Any bridge between local code and external systems

The Check (Do This First)

1. Identify the Target Platform

What specific platform/client will consume this integration?

  • Claude.ai web ≠ Claude Desktop ≠ Claude Code ≠ Claude API
  • GitHub.com ≠ GitHub Desktop ≠ GitHub CLI
  • Be specific. "Claude" is not specific enough.

2. Query Official Docs via Context7

Use Context7 to get authoritative answers. Don't rely on training data.

code
mcp__context7__query-docs with:
- libraryId: [appropriate ID from table below]
- query: "[platform] [feature] authentication requirements"

Context7 Library IDs - Quick Reference

PlatformLibrary IDSnippetsUse For
Claude Platform/websites/platform_claude_en32414API, MCP, integrations
Claude Help/websites/support_claude1486Plans, features, limitations
Anthropic Cookbook/anthropics/anthropic-cookbook1226Code examples
Cloudflare Docs/cloudflare/cloudflare-docs20980Tunnels, Workers, Access
Cloudflare Agents/websites/developers_cloudflare_agents1061AI agents, SDK
Home Assistant/home-assistant/home-assistant.io7101User docs, integrations
HA Developers/home-assistant/developers.home-assistant2045API, custom components
MCP Spec/modelcontextprotocol.io/llmstxt1254Protocol, auth, transport
Frigate/blakeblackshear/frigate1310NVR, object detection, config
Frigate Docs/websites/frigate_video533Configuration, cameras
Proxmox/proxmox/pve-docs1954API, VMs, containers
Proxmox (alt)/websites/pve_proxmox_pve-docs1272Web UI, admin
AdGuard Home/adguardteam/adguardhome278DNS, filtering, API
Docker/docker/docs11763Containers, compose, API
Docker (large)/websites/docker131291Comprehensive docs

Example Queries

Before building MCP integration for Claude.ai web:

code
libraryId: /websites/platform_claude_en
query: "MCP server authentication requirements Claude web OAuth"

Before setting up Cloudflare tunnel:

code
libraryId: /cloudflare/cloudflare-docs
query: "Cloudflare tunnel authentication access control"

Before building Home Assistant integration:

code
libraryId: /home-assistant/developers.home-assistant
query: "Home Assistant API authentication long-lived access token"

3. Verify Feature Parity (Don't Assume)

AssumptionReality
"Works on desktop, will work on web"Often false. Different auth, different capabilities.
"API supports it, web UI will too"Web may have restrictions API doesn't.
"Mobile app same as desktop"Feature sets often differ.
"Free tier has this"May require paid plan.

4. Confirm Before Proceeding

State findings to user:

  • "Claude.ai web requires OAuth 2.1 for MCP servers. Authless only works with Claude Desktop."
  • "This API requires Enterprise plan for webhook support."
  • "Web interface doesn't support custom integrations, only the CLI does."

If requirements aren't met, STOP and discuss alternatives before building.

Anti-Patterns (What Went Wrong)

The Tunnel Disaster (2026-01-30)

Task: Expose MCP server to internet for Claude.ai web access Mistake: Built entire Cloudflare tunnel infrastructure without checking Claude.ai web requirements Discovery: Claude.ai web requires OAuth 2.1; authless servers only work with Claude Desktop Wasted: ~2 hours of setup, configuration, testing, then rollback Fix: 5-minute Context7 query would have revealed OAuth requirement before any implementation

Pattern: Assumed Feature Parity

"Claude Desktop supports authless MCP, so Claude.ai web must too."

Wrong. Different clients have different security models.

Decision Point

After the preflight check:

  • Requirements met? → Proceed with implementation
  • Requirements unclear? → Query Context7 again with more specific terms, or ask user
  • Requirements NOT met? → STOP. Discuss alternatives. Don't build something that won't work.

The 10-Minute Rule

If the integration will take more than 10 minutes to build:

  1. Spend 5 minutes on preflight check (Context7 query)
  2. Confirm requirements with user
  3. Then build

Never invert this. Building first and checking later = wasted work.