composio
它能做什么
让助手通过安全的登录步骤,查找并连接你允许的应用,例如工作工具。适合希望助手使用外部应用的人。
适用场景
- ✓当你要求助手连接它尚未拥有的应用时。
- ✓当任务需要一个未关联到你账户的应用时。
- ✓当你想查看可连接应用的列表时。
技能链接
https://github.com/yc-software/qm/blob/main/skills-seed/composio/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能告诉我哪些应用可以连接,以便你为我的任务使用它们吗?”
每周 5 个新技能,1 分钟读完。
工作原理
助手会检查哪些应用可用,并显示选择器。你选择一个应用,并在服务商自己的登录页面上批准访问。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Composio
Use this skill for app discovery, consent, and execution through QM's authenticated backend. Check availability with GET /v1/composio/toolkits; an absent sandbox API key is expected. Never ask regular users to provision a Composio project key.
Show setup in web chat
When the user asks to connect apps, browse integrations, or show setup again in web chat, include the following directive as its own paragraph in your reply, with blank lines around it:
::connect-apps{}
Write the directive directly, without a code fence or quotation. The web UI renders only the searchable app picker in place. To display the separate Add to Slack action, use ::add-to-slack{} as its own paragraph instead. Include both directives in separate paragraphs when the user asks for full setup. The Slack action is available to administrators; other users should ask their administrator to install QM. Do not repeat the welcome or celebration. Rendering the widget does not authorize any service or require an SDK call; the user chooses an app and completes provider consent. Do not claim accounts are connected without verified status. For Slack conversations, use ordinary authorization links instead of this web-only directive.
When a task needs an app that isn't connected
Check connections before work that depends on an app. If the app is in the catalog but not connected, ask for it in your first reply: do any part that doesn't need the app, show the connect option, and stop. Don't finish a long partial answer first.
- Slack uses its dedicated connection flow even though
toolkitslists it. In web chat, use::link-slack-account{}as its own paragraph for personal Slack access or its connection status. Use::add-to-slack{}for the separate administrator step of installing the workspace bot, which must be completed first. In Slack conversations, direct the user to QM web Settings (/?view=settings) and Link your Slack account, signed into their existing web account. Never use::connect-apps{toolkit="slack"}or a generic Slack authorization link. These dedicated widgets do not automatically resume the task; ask the user to reply after connecting. - For other apps in web chat, put
::connect-apps{toolkit="notion"}on its own paragraph, using the exactidfromtoolkits. It shows a single connect button for that app. After consent the user returns to this conversation, the account is verified, and a message is sent so you can continue the task. - For other apps in Slack conversations, mint a link with
authorize(step 3 below) and say you'll pick the task back up when they reply. - If the app isn't in the catalog, say so in one sentence and don't show the picker. Look for the provider's official API or MCP server yourself. If it uses API keys, send a secure keychain drop link instead of asking for the key in chat.
Reconnect or disconnect an app
Each account in connections lists missingScopes: permissions the app's configuration now requests that this connection never got. Providers like X can't upgrade a token in place, so only a fresh consent fixes it.
- When a tool fails with 403 or an insufficient-scope error and that account's
missingScopesis non-empty, say so in one sentence and offer to reconnect instead of retrying. - In web chat, show
::connect-apps{toolkit="twitter"}. For a connected app it offers Reconnect and Disconnect, and removes the replaced account itself after a verified reconnect. - Elsewhere,
authorizea new link (step 3 below). Once the new account ID is listed inconnections, remove the old one withapps("disconnect", {accountId}), never before. - When asked to remove or reset a connection, call
apps("disconnect", {accountId})on a turn the user started. It only removes their own connections and can't be undone.
Backend API
Use the authenticated QM API from the computer through execute with an explicit sandbox_id. The Composio project key stays in QM's backend. Do not request it from the keychain, install the Composio SDK, use old SDK scripts, or call Composio directly. Existing execute approval and command policies still apply.
const base = process.env.AGENT_API_URL;
const token = process.env.AGENT_API_TOKEN;
async function apps(path, body) {
const response = await fetch(`${base}/v1/composio/${path}`, {
method: body === undefined ? "GET" : "POST",
headers: { "X-Agent-Capability": token, "Content-Type": "application/json" },
..
常见问题
助手能看到我的应用密码吗?
不能。你在应用服务商自己的登录页面上批准访问,因此助手不需要你的密码。
我需要是管理员才能连接应用吗?
有些应用(例如 Slack)只能由管理员安装,因此你可能需要先询问管理员。
如果某个应用没有连接会怎样?
助手会先检查你的连接。如果缺少该应用,它会在执行任务前提出为你连接。
详情
作者的原始描述
Show the app connection picker or setup widget when users ask to connect apps, reopen setup, or need an app that isn't connected yet. Use QM’s authenticated backend for app discovery, consent, and execution without exposing project keys.
repo: yc-software/qm
热度
- GitHub 星标
- 16k
- 排名
- #10886
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
deploy-qm
16k按照完整的部署清单,将 QM 软件包部署到 Fly.io、AWS 或 Render,然后设置管理员、连接器,并可选择连接 Slack。
onboarding
16k在一段简短的对话中,引导新用户连接账户、说明自己的工作方式、选择语音,并设置最初的帮助内容。
admin
16k让经过验证的组织管理员在聊天中查看或更改全组织范围的设置及其他范围,并在每项更改前进行确认。
browse
16k从你的 shell 驱动真实的隐身浏览器,在网站上执行操作,例如登录或填写表单,并按人保存登录状态。仅用于操作,不用于阅读。