跳到正文
Skillpedia
智能体16k · #10903

request-access

它能做什么

当命令需要使用某人已保存的登录信息或密钥时,让助手请求使用权限。适用于必须由所有者批准访问的共享工作。

适用场景

  • ✓当某个命令需要同事保存的、尚未在此获得批准的凭据时。
  • ✓当该聊天尚未获得任务所需凭据的授权时。
  • ✓当你需要在所有者批准之前,清楚地告诉对方该命令将会做什么时。

技能链接

https://github.com/yc-software/qm/blob/main/skills-seed/request-access/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/yc-software/qm/blob/main/skills-seed/request-access/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 owner and service. If it can't tell which one you mean, it answers 404 or 409 with candidates; pick one and send {"credential":"<its credential id>", ...} instead.
  • purpose is 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能