secret-drop
它能做什么
让助手通过安全表单向你索取新的凭据,并将其保存到你的钥匙串中。适合需要连接某项服务、又不想在聊天中分享密钥的人。
适用场景
- ✓当任务需要的 API 密钥或密码尚未有人保存时。
- ✓当你可能会想把密钥粘贴到聊天中时。
- ✓当服务需要用户名和密码,或单个令牌时。
技能链接
https://github.com/yc-software/qm/blob/main/skills-seed/secret-drop/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我需要连接我们的 Acme 仪表板。请发给我一个安全链接,用来保存 API 密钥。”
每周 5 个新技能,1 分钟读完。
工作原理
助手会创建一个一次性链接,附带一个简短表单。你填写各个字段,这些值会被保存到你的钥匙串中。该链接只能使用一次,之后即失效。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Secret drop: request a new credential by link
Use this when a task needs a credential nobody has saved yet. Never ask for a secret in chat, and never tell the person to add it on the keychain page by hand.
- A teammate's credential that is already saved: use the
request-accessskill instead. - A CLI with a device-code or browser login (gh, aws sso, gcloud): use
interactive-login.
Mint the link
Only on a turn a person sent. Scheduled and trigger-fired turns are refused.
curl -fsS -X POST "$AGENT_API_URL/v1/keychain/drops" \
-H "x-agent-capability: $AGENT_API_TOKEN" -H 'content-type: application/json' \
-d '{"service":"acme","purpose":"sign in to the Acme dashboard","fields":[{"key":"ACME_EMAIL","label":"Email","secret":false},{"key":"ACME_PASSWORD","label":"Password"}]}'
servicenames the credential;purposeis one plain sentence the person sees on the form.fieldsdeclares the form inputs (1–8). Keys are env var names;secret:falseshows the input in clear text (usernames, emails). For a single token, omitfieldsand pass"envKey":"ACME_API_KEY"instead.- The link belongs to the person whose turn this is. If a different teammate in this
conversation will fill it, add
"onBehalfOf":"<their id>". - Send the header exactly as shown.
Authorization: Beareris not accepted.
The response is {dropId, url}. Give the person url exactly as returned. It carries a
link-bound token, so a rebuilt URL will not work.
Then
- Tell them in one line what the link is for. It works once and expires.
- Stop. Don't poll.
- When they submit, the value is saved encrypted to their keychain (and, in a channel or group,
granted to this conversation) and this conversation wakes with the new credential's handle.
Select that handle in
execute.credentialsto get the declared env vars. - If the link expires or they used the wrong account, mint a fresh one.
常见问题
助手能看到我输入的密钥吗?
密钥会进入表单并保存到你的钥匙串中,而不是输入到聊天中。
定时任务可以用这种方式索取密钥吗?
不可以。只为人发送的消息创建链接,而不为定时或自动运行创建链接。
可以让同事填写表单吗?
可以。助手可以指定另一位同事代为填写链接。
详情
作者的原始描述
Request a credential nobody has saved yet (an API key, a site login) with a one-time, expiring link that saves it to the person's keychain. Use instead of asking for secrets in chat or sending people to the keychain page.
repo: yc-software/qm
热度
- GitHub 星标
- 16k
- 排名
- #10904
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
deploy-qm
16k按照完整的部署清单,将 QM 软件包部署到 Fly.io、AWS 或 Render,然后设置管理员、连接器,并可选择连接 Slack。
onboarding
16k在一段简短的对话中,引导新用户连接账户、说明自己的工作方式、选择语音,并设置最初的帮助内容。
admin
16k让经过验证的组织管理员在聊天中查看或更改全组织范围的设置及其他范围,并在每项更改前进行确认。
browse
16k从你的 shell 驱动真实的隐身浏览器,在网站上执行操作,例如登录或填写表单,并按人保存登录状态。仅用于操作,不用于阅读。