К основному содержанию
скилл CX Codex

integration-connectivity-generate — скилл для Claude Code

Настраивает интеграции Salesforce: учётные данные, REST/SOAP-вызовы, External Services, Platform Events и CDC. Нужен при проектировании обмена с внешними системами.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate -a claude-code
Открыть на GitHub

Что делает integration-connectivity-generate

Скилл помогает выбрать паттерн интеграции Salesforce для исходящих API-вызовов, событий и потока изменений. Он работает с Named Credentials, External Credentials, External Services, REST/SOAP, Platform Events, CDC и файлами .namedCredential-meta.xml.

Внутри есть шаблоны для учётных данных, вызовов, событий, CDC и SOAP, а также справочные материалы по безопасности, архитектуре событий и CLI. Скилл запрашивает способ аутентификации, синхронный или асинхронный режим, адрес или спецификацию системы, лимиты и стратегию повторных попыток. Для работы с исходными из триггеров вызовами он предусматривает асинхронный паттерн.

Он запрещает хранить секреты в коде и требует явно задавать тайм-ауты, повторы и журналирование. Для новых разработок советует External Credentials, когда они поддерживаются. Это повод отдельно проверить OAuth-настройку: её нужно передавать скиллу integration-connectivity-connected-app-configure, а не смешивать с проектированием runtime-интеграции. Указаны jq от 1.6.0, npm от 9.0.0, python3 от 3.10.0 и sf от 2.0.0; минимальная версия API — 61.0.

Какие задачи решает

  • настроить Named Credential для исходящего API-вызова
  • создать External Service по спецификации OpenAPI
  • выбрать асинхронный паттерн для вызова из триггера
  • спроектировать публикацию Platform Events
  • подключить Change Data Capture для потока изменений

Примеры запросов агенту

  • Настрой Named Credential для REST-вызовов к внешнему API и опиши тайм-ауты с повторами.
  • Создай External Service по OpenAPI-спецификации и подготовь нужные метаданные.
  • Спроектируй интеграцию через Platform Events вместо синхронного вызова из триггера.

Как установить integration-connectivity-generate

1Через Skills CLI (Vercel)

npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate -a claude-code

2Вручную: положить файлы

~/.claude/skills/integration-connectivity-generate/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/integration-connectivity-generate/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о integration-connectivity-generate

Как установить integration-connectivity-generate в Claude Code?

Выполните npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate -a claude-code, затем повторите npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate -a claude-code. Файл скилла расположен в ~/.claude/skills/integration-connectivity-generate/SKILL.md.

Что делает integration-connectivity-generate?

Скилл проектирует runtime-интеграции Salesforce: учётные данные, исходящие REST/SOAP-вызовы, External Services, Platform Events и CDC. Он также проверяет подход к тайм-аутам, повторам, асинхронности и журналированию.

Что требуется для работы скилла?

Указаны jq от 1.6.0, npm от 9.0.0, python3 от 3.10.0 и Salesforce CLI sf от 2.0.0. Минимальная версия API Salesforce — 61.0.

Исходный текст

SKILL.md · Apache-2.0
---
name: integration-connectivity-generate
description: "Salesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use integration-connectivity-connected-app-configure), Apex-only logic (use platform-apex-generate), data import/export (use platform-data-manage), or CDC channel-membership metadata such as PlatformEventChannel, PlatformEventChannelMember, or EnrichedField (use integration-eventing-cdc-configure)."
metadata:
  version: "1.1"
  domains: ["Integration"]
  minApiVersion: "61.0"
  relatedSkills:
    - "agentforce-generate"
    - "automation-flow-generate"
    - "integration-connectivity-connected-app-configure"
    - "integration-eventing-cdc-configure"
    - "platform-apex-generate"
    - "platform-data-manage"
    - "platform-metadata-deploy"
  cliTools:
    - tool: ["jq"]
      semver: ">=1.6.0"
    - tool: ["npm"]
      semver: ">=9.0.0"
    - tool: ["python3"]
      semver: ">=3.10.0"
    - tool: ["sf"]
      semver: ">=2.0.0"
---

# integration-connectivity-generate: Salesforce Integration Patterns Expert

Use this skill when the user needs **integration architecture and runtime plumbing**: Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, CDC, and event-driven integration design.

## When This Skill Owns the Task

Use `integration-connectivity-generate` when the work involves:
- `.namedCredential-meta.xml` or External Credential metadata
- outbound REST/SOAP callouts
- External Service registration from OpenAPI specs
- Platform Events, CDC, and event-driven architecture
- choosing sync vs async integration patterns

Delegate elsewhere when the user is:
- configuring the OAuth app itself → [integration-connectivity-connected-app-configure](../integration-connectivity-connected-app-configure/SKILL.md)
- writing Apex-only business logic → the `platform-apex-generate` skill
- deploying metadata → the `platform-metadata-deploy` skill
- importing/exporting data → the `platform-data-manage` skill

---

## Required Context to Gather First

Ask for or infer:
- integration style: outbound callout, inbound event, External Service, CDC, platform event
- auth method
- sync vs async requirement
- system endpoint / spec details
- rate limits, retry expectations, and failure tolerance
- whether this is net-new design or repair of an existing integration

---

## Recommended Workflow

### 1. Choose the integration pattern
| Need | Default pattern |
|---|---|
| authenticated outbound API call | Named Credential / External Credential + Apex or Flow |
| spec-driven API client | External Service |
| trigger-originated callout | async callout pattern |
| decoupled event publishing | Platform Events |
| change-stream consumption | CDC |

### 2. Choose the auth model
Prefer secure runtime-managed auth:
- Named Credentials / External Credentials
- OAuth or JWT via the right credential model
- no hardcoded secrets in code

### 3. Generate from the right templates
Use the provided assets under:
- `assets/named-credentials/`
- `assets/external-credentials/`
- `assets/external-services/`
- `assets/callouts/`
- `assets/platform-events/`
- `assets/cdc/`
- `assets/soap/`

### 4. Validate operational safety
Check:
- timeout and retry handling
- async strategy for trigger-originated work
- logging / observability
- event retention and subscriber implications

### 5. Hand off deployment or implementation details
Use:
- the `platform-metadata-deploy` skill for deployment
- the `platform-apex-generate` skill for deeper service / retry code
- the `automation-flow-generate` skill for declarative HTTP callout orchestration

---

## High-Signal Rules

- never hardcode credentials
- do not do synchronous callouts from triggers
- define timeout behavior explicitly
- plan retries for transient failures
- use middleware / event-driven patterns when outbound volume is high
- prefer External Credentials architecture for new development when supported

Common anti-patterns:
- sync trigger callouts
- no retry or dead-letter strategy
- no request/response logging
- mixing auth setup responsibilities with runtime integration design

---

## Output Format

When finishing, report in this order:
1. **Integration pattern chosen**
2. **Auth model chosen**
3. **Files created or updated**
4. **Operational safeguards**
5. **Deployment / testing next step**

Suggested shape:

```text
Integration: <summary>
Pattern: <named credential / external service / event / cdc / callout>
Files: <paths>
Safety: <timeouts, retries, async, logging>
Next step: <deploy, register, test, or implement>
```

---

## Cross-Skill Integration

| Need | Delegate to | Reason |
|---|---|---|
| OAuth app setup | [integration-connectivity-connected-app-configure](../integration-connectivity-connected-app-configure/SKILL.md) | consumer key / cert / app config |
| advanced callout service code | `platform-apex-generate` skill | Apex implementation |
| declarative HTTP callout / Flow wrapper | `automation-flow-generate` skill | Flow orchestration |
| deploy integration metadata | `platform-metadata-deploy` skill | validation and rollout |
| use integration from Agentforce | `agentforce-generate` skill | agent action composition |

---

## Reference Map

### Start here
- [references/named-credentials-guide.md](references/named-credentials-guide.md)
- [references/external-services-guide.md](references/external-services-guide.md)
- [references/callout-patterns.md](references/callout-patterns.md)
- [references/rest-callout-patterns.md](references/rest-callout-patterns.md)
- [references/security-best-practices.md](references/security-best-practices.md)

### Event-driven / platform patterns
- [references/event-patterns.md](references/event-patterns.md)
- [references/platform-events-guide.md](references/platform-events-guide.md)
- [references/cdc-guide.md](references/cdc-guide.md)
- [references/event-driven-architecture-guide.md](references/event-driven-architecture-guide.md)
- [references/messaging-api-v2.md](references/messaging-api-v2.md)

### CLI / automation / scoring
- [references/cli-reference.md](references/cli-reference.md)
- [references/named-credentials-automation.md](references/named-credentials-automation.md)
- [references/scoring-rubric.md](references/scoring-rubric.md)
- [scripts/README.md](scripts/README.md) — automation scripts overview (configure-named-credential.sh, set-api-credential.sh)

### Asset templates
- `assets/named-credentials/` — Named Credential XML templates (OAuth, JWT, Certificate, Custom auth)
- `assets/external-credentials/` — External Credential XML templates (OAuth, JWT)
- `assets/external-services/` — External Service registration template and operations guide
- `assets/callouts/` — REST sync, Queueable, retry handler, and HTTP response handler Apex templates
- `assets/platform-events/` — Platform Event definition, publisher, and subscriber templates
- `assets/cdc/` — CDC handler and subscriber trigger templates
- `assets/soap/` — SOAP callout service template and wsdl2apex guide
- `assets/endpoint-security/` — Remote Site Setting and CSP Trusted Site XML templates

### Automation hooks
- `scripts/suggest_credential_setup.py` — auto-suggests credential configuration steps when integration files are detected
- `scripts/validate_integration.py` — validates integration patterns before agent responses

---

## Output Expectations

When this skill completes an integration task, it produces:

1. **Credential metadata** — one or more files in `assets/named-credentials/` or `assets/external-credentials/` filled with org-specific values
2. **Callout Apex class** — a `.cls` file using the Named Credential pattern, with async/sync pattern chosen based on context
3. **Event/CDC artifacts** — Platform Event `.object-meta.xml`, subscriber trigger, or CDC config (when event-driven pattern is chosen)
4. **Endpoint security metadata** — Remote Site Setting and/or CSP Trusted Site XML files
5. **Scoring report** — 120-point score across 6 categories (Security, Error Handling, Bulkification, Architecture, Best Practices, Documentation)
6. **Next step** — a deployment or testing instruction for the generated artifacts

---

## Score Guide

| Score | Meaning |
|---|---|
| 108+ | strong production-ready integration design |
| 90–107 | good design with some hardening left |
| 72–89 | workable but needs architectural review |
| < 72 | unsafe / incomplete for deployment |

---

## Pre-Delivery Checklist

- [ ] Never hardcode credentials — all secrets stored in Named Credentials or External Credentials

© forcedotcom · Apache-2.0 · forcedotcom/sf-skills

Похожие скиллы

Всё по теме «Бэкенд и API» →
integration-listing-optimization Samuel Berthe Оптимизирует карточки B2B SaaS в каталогах AppExchange, Shopify, Atlassian, HubSpot и Slack. Помогает поднять конверсию просмотров в установки и легально собирать отзывы. CX Codex +1 7 700установок sap-btp-master-data-integration secondsky Помогает настроить тенант SAP Master Data Integration, подключить приложения и разобраться с репликацией мастер-данных. CX Codex +1 659установок writing-mappings celigo Помогает писать маппинги полей и трансформации в интеграциях Celigo: Mapper 2.0, Transformation 2.0, лукапы и response mapping. CX Codex +1 3 000установок crm-automation claude-office-skills Скилл для автоматизации продаж: захват и скоринг лидов, движение сделок по стадиям, синхронизация HubSpot, Salesforce и Pipedrive. CX Codex +1 5 500установок salesforce-dx Mindrally Скилл задаёт агенту правила разработки на Salesforce DX: Apex, триггеры, LWC, scratch orgs и выкладка через SFDX CLI. CX Codex +1 688установок api-integration-surface-strategy Samuel Berthe Помогает решить, какие поверхности интеграции платформа отдаёт наружу — REST, GraphQL, gRPC, вебхуки, SDK, MCP — и в каком порядке их строить. CX Codex +1 8 000установок

Из того же набора167

dx-org-switch Переключает активную org Salesforce через sf config set target-org. Пригодится, когда команды CLI бьют не в ту org, чем вы ожидали. CX Codex +1 5 700установок platform-lightning-app-coordinate Создаёт развёртываемые приложения Salesforce Lightning Experience из текстового описания. Нужен, когда требуется связать несколько типов метаданных в одном приложении. CX Codex +1 5 600установок design-systems-slds2-migrate Прогоняет линтер SLDS по компонентам и помогает починить нарушения при переезде Lightning Web Components с SLDS 1 на SLDS 2. CX Codex +1 5 600установок external-diagram-mermaid-generate Строит диаграммы Mermaid по архитектуре Salesforce: потоки OAuth, ERD, интеграции, структуру Agentforce. Резервный вариант в ASCII, если рендерер недоступен. CX Codex +1 5 500установок integration-connectivity-connected-app-configure Скилл для настройки OAuth в Salesforce: Connected Apps, External Client Apps, JWT bearer и PKCE. Пригодится, когда правите .connectedApp-meta.xml или .eca-meta.xml. CX Codex +1 5 400установок experience-ui-bundle-frontend-generate Скилл для правок интерфейса в уже собранном UI-бандле Salesforce: страницы, компоненты, вёрстка, навигация, брендинг. CX Codex +1 5 300установок agentforce-d360-analyze Скилл восстанавливает сессии Agentforce из Data Cloud по UUID или идентификатору MessagingSession. Помогает разбирать ход диалогов, когда нужно найти причину сбоя или эскалации. CX Codex +1 5 300установок experience-ui-bundle-file-upload-generate Настраивает загрузку файлов в React-компонентах Salesforce UI bundle. Помогает связать файлы с ContentVersion и отслеживать прогресс передачи. CX Codex +1 5 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой