Community写作与编辑github.com

ComposioHQ/connect-apps

通过 Composio CLI 将 Claude 连接到外部应用。当用户想要从终端发送邮件、创建 Issue、发布消息或在 Gmail、Slack、GitHub、Notion 及 1000+ 服务中执行操作时使用此技能。

connect-apps 是什么?

此技能使 AI 代理(例如 Claude Code、Cursor、Codex)能够直接通过 Composio CLI 与 1000 多个外部应用交互。它允许代理执行真实操作,如发送邮件、创建 GitHub Issue、发布 Slack 消息以及管理 Notion 页面,而不仅仅是生成关于这些操作的文本。该技能支持 Gmail、Slack、GitHub、GitLab、Jira、Notion、Google Docs、Sheets 等平台。工作流程包括通过 OAuth 链接应用、使用 `composio execute` 执行操作以及使用 `composio search` 发现可用工具。它还支持多步骤工作流、并行执行和用于调试的干运行模式。

兼容平台✓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+ 个应用。实际发送邮件、创建 Issue、发布消息——不仅仅是生成相关文本。

快速开始

步骤 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 test",
  "body": "Hello from the CLI"
}'

如果邮件到达,说明连接成功。

你能做什么

让 Claude 做...Claude 运行
“发送邮件给 [email protected] 关于发布事宜”composio execute GMAIL_SEND_EMAIL -d '{...}'
“创建 GitHub Issue:修复登录 bug”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 "create a github issue"
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":"Bug"}'

# 并行执行
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: "Bug", 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。

故障排除

  • Not logged in → 运行 composio login
  • Connection required for <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.

相关技能