request-access
它能做什么
当命令需要使用某人已保存的登录信息或密钥时,让助手请求使用权限。适用于必须由所有者批准访问的共享工作。
适用场景
- ✓当某个命令需要同事保存的、尚未在此获得批准的凭据时。
- ✓当该聊天尚未获得任务所需凭据的授权时。
- ✓当你需要在所有者批准之前,清楚地告诉对方该命令将会做什么时。
技能链接
https://github.com/yc-software/qm/blob/main/skills-seed/request-access/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请向 Maya 请求使用她的 GitHub 密钥,以便你运行部署命令。”
每周 5 个新技能,1 分钟读完。
工作原理
助手会发送一条请求,写明所有者和服务,并附上一句说明用途的话。对话中会出现一张批准卡片,只有所有者可以批准。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Request access to someone's credential
Use this when a command needs someone's credential and the Credentials section shows no handle for it here. Your own credentials in your own personal conversation never need this.
Request
One call, from this session or any sub-agent. The approval belongs to the whole conversation, so every session in it sees the same grant.
curl -sS -X POST "$AGENT_API_URL/v1/keychain/asks" \
-H "x-agent-capability: $AGENT_API_TOKEN" -H 'content-type: application/json' \
-d '{"owner":"<their name or principal id>","service":"<service, e.g. github>","purpose":"<what the command will do>"}'
- The server finds the credential from
ownerandservice. If it can't tell which one you mean, it answers 404 or 409 withcandidates; pick one and send{"credential":"<its credential id>", ...}instead. purposeis one plain sentence about the command, not the whole task.- If a request for that credential is already pending, the same one comes back. Don't ask twice.
Where the card shows up
You don't choose. The card appears where this conversation is: the Slack thread or channel, inline in the web session (and in its parent when you are a sub-agent), or the scheduled job's destination. Only the credential's owner can click it; nothing said in chat is approval.
Then
- Tell the person in one short line that you asked the owner for access. No request ids, no request text, no "paused".
- Stop. Don't retry, poll, or work around the missing credential.
- When the owner approves, this conversation re-runs the blocked command on its own. Continue with one short line.
- If they deny or it expires, say so in one line and offer another way.
常见问题
助手可以在未经批准的情况下使用凭据吗?
不可以。只有凭据的所有者可以批准,聊天消息不算批准。
批准卡片会出现在哪里?
它会出现在对话所在的位置,例如 Slack 话题或网页聊天中。
如果请求已经在等待,它会再次询问吗?
不会。如果相同的请求仍在等待,它会返回同一个请求,而不会重复询问。
详情
作者的原始描述
Ask a person for access to one of their keychain credentials when a command needs it and this conversation has no grant yet. The platform posts an approval card where this conversation is happening; the owner clicks it, and the blocked command re-runs.
repo: yc-software/qm
热度
- GitHub 星标
- 16k
- 排名
- #10903
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
deploy-qm
16k按照完整的部署清单,将 QM 软件包部署到 Fly.io、AWS 或 Render,然后设置管理员、连接器,并可选择连接 Slack。
onboarding
16k在一段简短的对话中,引导新用户连接账户、说明自己的工作方式、选择语音,并设置最初的帮助内容。
admin
16k让经过验证的组织管理员在聊天中查看或更改全组织范围的设置及其他范围,并在每项更改前进行确认。
browse
16k从你的 shell 驱动真实的隐身浏览器,在网站上执行操作,例如登录或填写表单,并按人保存登录状态。仅用于操作,不用于阅读。