Community寫作與編輯github.com

ComposioHQ/connect-apps

透過 Composio CLI 將 Claude 連接到外部應用程式。當使用者想要從終端機發送電子郵件、建立問題、發布訊息或在 Gmail、Slack、GitHub、Notion 及超過 1000 個服務中執行操作時,請使用此技能。

connect-apps 是什麼?

此技能讓開發者能直接從 Claude 的對話中,透過 Composio CLI 觸發超過 1000 個外部應用程式的操作。它解決了 LLM 只能產生文字而無法實際執行動作的限制,讓使用者能夠真實地發送電子郵件(Gmail、Outlook)、建立 GitHub 議題、發布 Slack 訊息或新增 Notion 頁面。支援的平台包括任何可執行 CLI 命令的終端機環境,特別是與 Claude Code 等基於終端機的 AI 代理整合。運作方式是先透過 curl 安裝 Composio CLI,執行 OAuth 登入授權,再使用 `composio link` 連結特定應用程式(如 Gmail 或 GitHub)。之後,Claude 會執行 `composio execute <SLUG>` 命令並傳遞 JSON 參數來執行實際操作。CLI 也提供工具發現(`composio search`)、參數檢查(`--get-schema`)、乾執行(`--dry-run`)以及平行執行與多步驟工作流程(`composio run`)等功能,確保開發者能安全且有效率地整合外部服務。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/connect-apps

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

connect-apps preview

說明文件

連接應用程式

透過 Composio CLI 將 Claude 連接到超過 1000 個應用程式。不只是產生相關文字,而是實際發送電子郵件、建立議題、發布訊息。

快速開始

步驟 1:安裝 Composio CLI

curl -fsSL https://composio.dev/install | bash

步驟 2:登入

composio login
composio whoami

這會開啟瀏覽器進行驗證,然後提示你選擇預設組織與專案。在腳本中使用 -y 可略過提示。

步驟 3:連結你需要的應用程式

composio link gmail
composio link slack
composio link github

每個命令會執行一次 OAuth;連線之後就會持續存在。

步驟 4:試試看

composio execute GMAIL_SEND_EMAIL -d '{
  "recipient_email": "[email protected]",
  "subject": "Composio 測試",
  "body": "來自 CLI 的問候"
}'

如果電子郵件送達,代表你已成功連線。

你可以做的事

對 Claude 說...Claude 會執行
"發送電子郵件給 [email protected] 關於發布事宜"composio execute GMAIL_SEND_EMAIL -d '{...}'
"建立 GitHub 議題:修復登入錯誤"composio execute GITHUB_CREATE_ISSUE -d '{...}'
"在 Slack #general 發布:部署完成"composio execute SLACK_SEND_MESSAGE -d '{...}'
"在 Notion 新增會議記錄"composio execute NOTION_CREATE_PAGE -d '{...}'

核心工作流程

  1. 知道工具 slug? → composio execute <SLUG> -d '{...}'
  2. 不知道? → composio search "你想要的功能"
  3. 需要輸入參數? → composio execute <SLUG> --get-schema 或 --dry-run
  4. 尚未連線? → composio link <toolkit> 然後重試
  5. 多步驟流程? → 使用 composio run 執行 JS/TS 工作流程,使用 composio proxy 呼叫原始 API

支援的應用程式

電子郵件: Gmail, Outlook, SendGrid 即時通訊: Slack, Discord, Teams, Telegram 開發工具: GitHub, GitLab, Jira, Linear 文件: Notion, Google Docs, Confluence 資料: Sheets, Airtable, PostgreSQL 以及超過 1000 個其他應用程式...

實用命令

# 探索工具
composio search "建立一個 github 議題"
composio tools list gmail
composio tools info GITHUB_CREATE_ISSUE

# 執行前先檢查/乾執行
composio execute GITHUB_CREATE_ISSUE --get-schema
composio execute GITHUB_CREATE_ISSUE --dry-run -d '{"owner":"acme","repo":"app","title":"錯誤"}'

# 平行執行
composio execute --parallel \
  GMAIL_FETCH_EMAILS -d '{"max_results": 2}' \
  GITHUB_GET_THE_AUTHENTICATED_USER -d '{}'

# 多步驟工作流程
composio run '
  const issue = await execute("GITHUB_CREATE_ISSUE", {
    owner: "acme", repo: "app", title: "錯誤", body: "..."
  });
  console.log(issue);
'

# 當沒有專用工具時,直接呼叫原始 API
composio proxy https://gmail.googleapis.com/gmail/v1/users/me/profile --toolkit gmail

設定

環境變數:

  • COMPOSIO_API_KEY - 非互動模式的驗證憑證
  • COMPOSIO_BASE_URL - 自訂 API 端點
  • COMPOSIO_SESSION_DIR - 覆蓋工作階段儲存位置
  • COMPOSIO_DISABLE_TELEMETRY=true - 選擇退出遙測

全域旗標: --log-level <all|trace|debug|info|warning|error|fatal|none>, --help。

疑難排解

  • 未登入 → 執行 composio login
  • 需要 <toolkit> 的連線 → 執行 composio link <toolkit>
  • 未知的 slug → 執行 composio search "<目標>" 或 composio tools list <toolkit>
  • 錯誤的輸入 → 執行 composio execute <SLUG> --get-schema 然後 --dry-run
  • 動作失敗 → 在目標應用程式中檢查權限

完整參考資料: docs.composio.dev/docs/cli


Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能