跳到正文
Skillpedia
安全8.3k · #12479

yao-secret

它能做什么

这项技能让智能体获取你为它保存的密钥,例如 API 密钥和令牌。适合希望智能体使用凭证、又不想把凭证写入文件的人。

适用场景

  • ✓当某个任务需要你已配置好的 API 密钥或令牌时。
  • ✓当你想在开始任务前检查有哪些密钥可用时。
  • ✓当缺少必需的密钥,需要告诉你如何添加时。

技能链接

https://github.com/YaoApp/yao/blob/main/tools/skills/yao-secret/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请检查这个项目已设置了哪些密钥,然后使用 GitHub 令牌打开代码仓库。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先列出可用密钥的名称,然后只在需要时读取某个值。密钥的值绝不会在可见的输出中打印或记录。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Secret Tools

Two tools for accessing user-configured secrets, called via bash.

secret_list

List available secret names and descriptions. Does not return secret values — use secret_read for that.

tai tool secret_list '{}'

No parameters required. Returns secrets configured for the current assistant.

secret_read

Read a secret value by name. Returns the decrypted value for use in scripts.

tai tool secret_read '{"name": "GITHUB_TOKEN"}'
tai tool secret_read '{"name": "AWS_SECRET_KEY"}'
Parameter Type Required Description
name string yes Secret key name (e.g. GITHUB_TOKEN, AWS_SECRET_KEY)

Security: Never log, print, or expose the returned secret value in output visible to users.

Typical Workflow

  1. secret_list — discover what secrets are available
  2. secret_read — retrieve a specific secret by name
  3. Use the value in API calls, git auth, etc.

Guidelines

  • Always call secret_list first to check if a required secret exists before reading
  • Never hardcode API keys or tokens — always use secret_read
  • Secret values are decrypted at read time; treat them as sensitive
  • If a secret is not found, prompt the user to configure it in their settings
  • All output is JSON
常见问题

智能体会在聊天中显示我的令牌吗?

不会。这项技能规定智能体绝不记录或显示密钥的值。

列出密钥时会显示值吗?

不会。列表只返回名称和描述。

如果缺少密钥怎么办?

智能体会请你在设置中添加它。

详情

作者的原始描述

Secret management expert. ALWAYS invoke this skill when you need to read API keys, tokens, or other secrets configured by the user. Never hardcode credentials — use this skill to retrieve them securely.

repo: YaoApp/yao

热度

GitHub 星标
8.3k
排名
#12479
许可证
—
更新时间
2026/10/19

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能