Skip to content

让 Claude 直接操作 Gmail、Slack、GitHub:connect-apps 快速配置指南

connect-apps 是 connect 技能的 Claude 版快速入门:3 步安装 Composio CLI,OAuth 连接你要用的服务,然后让 Claude 直接从终端发邮件、创建 GitHub Issue、推 Slack 消息——不再只是生成草稿文本。

这个技能解决什么问题

Claude 很善于帮你起草内容,但从"起草"到"真正执行"还有一步:你得手动复制、打开应用、粘贴、发送。

connect-apps 通过 Composio CLI 消除这一步。你一次配置好 OAuth 连接,之后 Claude 就可以直接调用 Gmail、Slack、GitHub、Notion 等服务的 API 执行真实操作。

什么时候用

  • 想让 Claude 真正发送邮件而不只是起草
  • 想让 Claude 直接创建 GitHub Issue
  • 想让 Claude 推 Slack 消息通知团队
  • 需要把 AI 接入真实操作链路,而不只是文字输出

如果你用 Codex 而非 Claude,请看功能更完整的 connect 版本

5 分钟配置完成

安装 Composio CLI

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

登录

bash
composio login
composio whoami

连接你要用的服务

bash
composio link gmail
composio link slack
composio link github

每个服务只需走一次 OAuth,之后连接持久化。

验证配置

bash
composio execute GMAIL_SEND_EMAIL -d '{
  "recipient_email": "your@email.com",
  "subject": "配置测试",
  "body": "connect-apps 配置成功"
}'

邮件到达即可。

Claude 能做什么

你说...Claude 执行
"发邮件给 sarah 说发布的事"composio execute GMAIL_SEND_EMAIL
"创建 Issue:修复登录 Bug"composio execute GITHUB_CREATE_ISSUE
"发到 Slack #general:部署完成"composio execute SLACK_SEND_MESSAGE
"把这份会议纪要加到 Notion"composio execute NOTION_CREATE_PAGE

核心命令速查

bash
# 发现可用工具
composio search "create a github issue"
composio tools list gmail

# 执行前查参数结构
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": 5}' \
  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);
'

支持 1000+ 服务

Gmail、Outlook、Slack、Discord、Teams、GitHub、GitLab、Jira、Linear、Notion、Google Docs、Confluence、Sheets、Airtable、PostgreSQL、HubSpot、Salesforce、Drive、Dropbox、S3……

下载和安装

下载 connect-apps 中文版 Skill ZIP

解压后将 connect-apps/ 目录放入你的 Claude 技能目录(~/.claude/skills/),然后在对话中提及"连接外部应用"即可触发。

你可能还需要

完整版本

同类自动化技能