Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

apideck-migration顶层迁移

Agent Skill

apideck-migration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

2

下载量

94
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:apideck-migration(顶层迁移)
来源仓库:https://github.com/apideck-libraries/api-skills
仓库路径:skills/apideck-migration
安装命令:
npx skills add https://github.com/apideck-libraries/api-skills --skill apideck-migration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/apideck-libraries/api-skills --skill apideck-migration

简介

协助将原有直连第三方 API 迁移至 Apideck 统一层。

  • 可将多个独立集成合并为单一 Apideck 接入点。
  • 支持 200+ 连接器但需验证操作覆盖范围。
  • 对不支持字段可使用 pass_through 透传原始数据。
  • 迁移过程应保持业务逻辑透明无感知中断。apideck-migration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Apideck Migration Guide Skill

Overview

This skill helps migrate existing direct third-party API integrations (Salesforce, HubSpot, QuickBooks, Xero, etc.) to Apideck's unified API layer. The benefit is replacing N separate integrations with a single Apideck integration that supports 200+ connectors.

IMPORTANT RULES

  • ALWAYS check connector coverage before migrating. Not all operations may be supported through the unified API.
  • ALWAYS preserve existing data flows and business logic. Migration should be transparent to end-users.
  • USE pass_through for connector-specific fields that don't map to the unified model.
  • USE custom field mapping in Vault for recurring connector-specific fields.
  • NEVER delete the existing integration code until the Apideck migration is verified in production.
  • RECOMMEND a phased migration: start with read operations, then writes, then webhooks.

Migration Strategy

Phase 1: Assessment

  1. Inventory existing integrations — List all third-party APIs currently in use
  2. Map operations — For each integration, list the CRUD operations and fields used
  3. Check coverage — Verify each operation is supported via the Apideck Connector API
  4. Identify gaps — Note operations that need pass_through or Proxy API
  5. Plan consumer mapping — Decide how your users/tenants map to Apideck consumer IDs

Phase 2: Connection Setup

  1. Create Apideck account — Get API key and App ID from the dashboard
  2. Enable connectors — Enable the connectors you need in the Apideck dashboard
  3. Integrate Vault — Add Vault JS to your frontend for user-managed connections
  4. Create consumers — Map your existing users to Apideck consumer IDs
  5. Authorize connections — Have users re-authorize via Vault (OAuth is handled automatically)

Phase 3: Read Migration (Low Risk)

Replace read operations first since they're non-destructive:

// BEFORE: Direct Salesforce API
const contacts = await salesforce.sobjects.Contact.find({
  Email: "john@example.com",
});

// AFTER: Apideck Unified API
const { data } = await apideck.crm.contacts.list({
  serviceId: "salesforce",
  filter: { email: "john@example.com" },
});

Phase 4: Write Migration

Replace create/update/delete operations:

// BEFORE: Direct HubSpot API
const contact = await hubspot.crm.contacts.basicApi.create({
  properties: {
    firstname: "John",
    lastname: "Doe",
    email: "john@example.com",
    company: "Acme Corp",
  },
});

// AFTER: Apideck Unified API
const { data } = await apideck.crm.contacts.create({
  serviceId: "hubspot",
  contact: {
    first_name: "John",
    last_name: "Doe",
    emails: [{ email: "john@example.com", type: "primary" }],
    company_name: "Acme Corp",
  },
});

Phase 5: Webhook Migration

Replace direct webhook handlers with Apideck's unified webhooks:

// BEFORE: Salesforce-specific webhook handler
app.post("/webhooks/salesforce", (req, res) => {
  const event = req.body;
  if (event.type === "ContactChangeEvent") {
    handleContactChange(event);
  }
});

// AFTER: Apideck unified webhook handler
app.post("/webhooks/apideck", (req, res) => {
  const signature = req.headers["x-apideck-signature"];
  if (!verifySignature(req.body, signature, secret)) {
    return res.status(401).send("Invalid signature");
  }

  const { event_type, entity_id, service_id } = req.body.payload;
  // Works for ALL connectors, not just Salesforce
  if (event_type === "crm.contact.updated") {
    handleContactChange(entity_id, service_id);
  }
  res.status(200).send("OK");
});

Common Migration Patterns

CRM: Salesforce to Apideck

Salesforce APIApideck Unified API
sobjects.Contact.create()crm.contacts.create({serviceId: "salesforce"})
sobjects.Account.find()crm.companies.list({serviceId: "salesforce"})
sobjects.Opportunity.update()crm.opportunities.update({serviceId: "salesforce"})
sobjects.Lead.create()crm.leads.create({serviceId: "salesforce"})
sobjects.Task.create()crm.activities.create({serviceId: "salesforce"})
Custom fields via custom_sf_field__cpass_through: [{service_id: "salesforce", extend_object: {custom_sf_field__c: "value"}}]

CRM: HubSpot to Apideck

HubSpot APIApideck Unified API
crm.contacts.basicApi.create()crm.contacts.create({serviceId: "hubspot"})
crm.companies.basicApi.getAll()crm.companies.list({serviceId: "hubspot"})
crm.deals.basicApi.create()crm.opportunities.create({serviceId: "hubspot"})
crm.contacts.searchApi.doSearch()crm.contacts.list({serviceId: "hubspot", filter: {...}})

Accounting: QuickBooks to Apideck

QuickBooks APIApideck Unified API
Invoice.create()accounting.invoices.create({serviceId: "quickbooks"})
Customer.findAll()accounting.customers.list({serviceId: "quickbooks"})
Bill.create()accounting.bills.create({serviceId: "quickbooks"})
Payment.create()accounting.payments.create({serviceId: "quickbooks"})
JournalEntry.create()accounting.journalEntries.create({serviceId: "quickbooks"})
CompanyInfo.get()accounting.companyInfo.get({serviceId: "quickbooks"})

Accounting: Xero to Apideck

Xero APIApideck Unified API
xero.accountingApi.createInvoices()accounting.invoices.create({serviceId: "xero"})
xero.accountingApi.getContacts()accounting.customers.list({serviceId: "xero"})
xero.accountingApi.createBankTransactions()accounting.payments.create({serviceId: "xero"})
xero.accountingApi.getReportBalanceSheet()accounting.balanceSheet.get({serviceId: "xero"})

HRIS: BambooHR to Apideck

BambooHR APIApideck Unified API
GET /employees/directoryhris.employees.list({serviceId: "bamboohr"})
POST /employeeshris.employees.create({serviceId: "bamboohr"})
GET /employees/{id}hris.employees.get({serviceId: "bamboohr", id})
PUT /employees/{id}/time_off/requesthris.timeOffRequests.create({serviceId: "bamboohr"})

File Storage: Google Drive to Apideck

Google Drive APIApideck Unified API
drive.files.list()fileStorage.files.list({serviceId: "google-drive"})
drive.files.create()fileStorage.files.create({serviceId: "google-drive"})
drive.files.get()fileStorage.files.get({serviceId: "google-drive"})
drive.files.export()fileStorage.files.download({serviceId: "google-drive"})
drive.permissions.create()fileStorage.sharedLinks.create({serviceId: "google-drive"})

Handling Connector-Specific Fields

Option 1: Pass-Through (inline)

For one-off connector-specific fields in request bodies:

const { data } = await apideck.crm.contacts.create({
  serviceId: "salesforce",
  contact: {
    first_name: "John",
    last_name: "Doe",
    pass_through: [
      {
        service_id: "salesforce",
        operation_id: "contactsAdd",
        extend_object: {
          RecordTypeId: "012000000000001",
          Custom_Score__c: 85,
        },
      },
    ],
  },
});

Option 2: Custom Field Mapping (reusable)

For fields that are used repeatedly, configure custom mapping in Vault so they appear as part of the unified model:

// Set up custom mapping via Vault API
await apideck.vault.customMappings.update({
  unifiedApi: "crm",
  serviceId: "salesforce",
  id: "mapping_123",
  customMapping: {
    value: "$.Custom_Score__c",
  },
});

// Now the field appears in custom_fields on every response
const { data } = await apideck.crm.contacts.get({
  id: "contact_123",
  serviceId: "salesforce",
});
// data.custom_fields includes { id: "mapping_123", value: 85 }

Option 3: Proxy API (full control)

For operations not supported by the unified API, use the Proxy to make direct downstream calls while still using Apideck's managed authentication:

const response = await fetch("https://unify.apideck.com/proxy", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "x-apideck-app-id": appId,
    "x-apideck-consumer-id": consumerId,
    "x-apideck-service-id": "salesforce",
    "x-apideck-downstream-url": "/services/data/v59.0/sobjects/CustomObject__c",
    "x-apideck-downstream-method": "GET",
    "Content-Type": "application/json",
  },
});

Testing the Migration

  1. Run both integrations in parallel — Shadow mode: make Apideck calls alongside existing calls and compare responses
  2. Use raw mode — Add raw=true to Apideck calls to compare with the original API response
  3. Contract test with Portman — Generate tests from OpenAPI specs and run against your staging environment
  4. Test with the API Explorer — Use the Apideck API Explorer to verify endpoints interactively
  5. Gradual rollout — Migrate one connector at a time, starting with the lowest-traffic integration

Post-Migration Benefits

Once migrated to Apideck:

  • Add new connectors instantly — Enable a new connector in the dashboard, no code changes needed
  • User self-service — End-users manage their own connections via Vault
  • Unified webhooks — One handler for all connectors instead of N separate handlers
  • Unified error handling — One error format instead of learning each API's error structure
  • Automatic maintenance — Apideck handles API version changes, deprecations, and auth token refresh

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.82%
按下载量换算33

Claude

29.17%
按下载量换算27

Cursor

19.06%
按下载量换算18

Gemini CLI

10.24%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills