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

secret-drop

它能做什么

让助手通过安全表单向你索取新的凭据,并将其保存到你的钥匙串中。适合需要连接某项服务、又不想在聊天中分享密钥的人。

适用场景

  • ✓当任务需要的 API 密钥或密码尚未有人保存时。
  • ✓当你可能会想把密钥粘贴到聊天中时。
  • ✓当服务需要用户名和密码,或单个令牌时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 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-access skill 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"}]}'
  • service names the credential; purpose is one plain sentence the person sees on the form.
  • fields declares the form inputs (1–8). Keys are env var names; secret:false shows the input in clear text (usernames, emails). For a single token, omit fields and 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: Bearer is 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.credentials to 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能