Community写作与编辑github.com

ComposioHQ/connect

通过 Composio CLI 将 Codex 连接到任何应用。直接从终端发送邮件、创建工单、发布消息、更新数据库——在 Gmail、Slack、GitHub、Notion 等 1000+ 服务中执行真实操作。

connect 是什么?

该技能使 AI 代理(如 Codex)能够通过 Composio CLI 直接与 1000 多个第三方应用程序进行交互,从而超越单纯的文本生成,执行真正的操作。它支持 Gmail、Slack、GitHub、Notion 和 PostgreSQL 等热门服务,代理可借此完成发送邮件、创建工单、发布消息或更新数据库等任务。其工作流程包括:代理使用 `composio search` 发现工具,使用 `composio execute` 调用行动,并可选择使用 `composio run` 编排多步骤工作流。该技能通过 OAuth 处理身份验证,并包含连接持久化、并行执行和原始 API 访问(通过 `composio proxy`)等功能。设置只需安装 CLI、登录并链接所需的工具包即可,对开发者和 AI 代理用户来说十分高效。

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

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

预览

来自技能 README

connect preview

文档

connect 是做什么的?

使用 Composio CLI 将 Codex 连接到任何应用。别再生成关于你能做什么的文字——直接从 Shell 中实际执行操作。

何时使用此技能

当您需要 Codex 执行以下操作时,请使用此技能:

  • 发送那封邮件,而不是起草它
  • 创建那个工单,而不是描述它
  • 发布那条消息,而不是建议它
  • 更新那个数据库,而不是解释如何操作

变化对比

没有 Connect使用 Connect
“这是一封邮件草稿……”发送邮件
“您应该创建一个工单……”创建工单
“把这个发到 Slack……”发布它
“把这个添加到 Notion……”添加它

支持的应用

1000+ 集成,包括:

  • 邮件: Gmail, Outlook, SendGrid
  • 聊天: Slack, Discord, Teams, Telegram
  • 开发: GitHub, GitLab, Jira, Linear
  • 文档: Notion, Google Docs, Confluence
  • 数据: Sheets, Airtable, PostgreSQL
  • CRM: HubSpot, Salesforce, Pipedrive
  • 存储: Drive, Dropbox, S3
  • 社交: Twitter, LinkedIn, Reddit

设置

1. 安装 Composio CLI

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

2. 登录

composio login
composio whoami

这会打开浏览器进行身份验证,并让您选择默认组织和项目。在自动化流程中使用 -y 跳过提示。

3. 链接所需的工具包

composio link github
composio link gmail
composio link slack

每个命令执行一次 OAuth 授权,之后连接将持续存在。

完成。Codex 现在可以从 Shell 驱动任何已连接的应用。

核心工作流程

  1. 知道工具 slug? → composio execute
  2. 不知道 slug? → composio search
  3. 需要输入参数说明? → composio execute --get-schema 或 --dry-run
  4. 工具包未连接? → composio link <toolkit> 然后重试
  5. 需要多个步骤? → 使用 composio run 处理工作流,使用 composio proxy 处理原始 API 调用

示例

发现工具

composio search "create a github issue"
composio search "send an email" --toolkits 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 GMAIL_SEND_EMAIL -d '{
  "recipient_email": "[email protected]",
  "subject": "已发布!",
  "body": "v2.0 已上线,如有问题请告知"
}'

创建 GitHub 工单

composio execute GITHUB_CREATE_ISSUE -d '{
  "owner": "my-org",
  "repo": "repo",
  "title": "移动端超时 bug",
  "labels": ["bug"]
}'

发布到 Slack

composio execute SLACK_SEND_MESSAGE -d '{
  "channel": "engineering",
  "text": "部署完成 - v2.4.0 已上线"
}'

并行执行调用

composio execute --parallel \
  GMAIL_FETCH_EMAILS -d '{"max_results": 2}' \
  GITHUB_GET_THE_AUTHENTICATED_USER -d '{}'

使用 composio run 链式操作

composio run '
  const issues = await search("github issues labeled bug this week");
  const summary = issues.map(i => `- ${i.title}`).join("\n");
  await execute("SLACK_SEND_MESSAGE", {
    channel: "bugs",
    text: `本周的 bug:\n${summary}`
  });
'

从文件加载可重用工作流:

composio run --file ./workflow.ts -- --repo composiohq/composio

原始 API 访问(proxy)

当没有专用工具时,直接通过已验证的 API 发起请求:

composio proxy https://gmail.googleapis.com/gmail/v1/users/me/profile \
  --toolkit gmail

composio proxy https://gmail.googleapis.com/gmail/v1/users/me/drafts \
  --toolkit gmail -X POST -H 'content-type: application/json' \
  -d '{"message":{"raw":"..."}}'

工作原理

  1. 您向 Codex 请求执行某个操作
  2. Codex 通过 composio search 或已有知识选择 slug
  3. CLI 检查连接,若缺少则提示 composio link
  4. 执行操作,针对真实 API 发起请求,并将结果以 JSON 形式返回至标准输出

配置

全局标志:

  • --log-level <all|trace|debug|info|warning|error|fatal|none>
  • --help 查看每个命令的文档

环境变量:

  • COMPOSIO_API_KEY - 身份验证凭据(为非交互式使用设置)
  • COMPOSIO_BASE_URL - 自定义 API 端点
  • COMPOSIO_SESSION_DIR - 覆盖产物存储位置
  • COMPOSIO_DISABLE_TELEMETRY=true - 选择退出遥测

类型安全 SDK(可选)

当您希望从应用程序而非 Shell 调用工具时,生成类型化客户端代码:

composio generate ts    # TypeScript 类型
composio generate py    # Python 类型

标志:-o <dir>、--toolkits <list>、--compact、--transpiled、--type-tools。

故障排除

  • 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.

相关技能