Agent skill · security · iamzhihuix
1password
使用 1Password CLI (op) 管理密码和 API credentials。保存、查询、读取 API key/token,注入环境变量到脚本。当用户提到保存密码、保存 API key、查询密码、1password、op CLI、secret 管理时使用此 skill。
Why this skill is useful
Adds specific commands and workflows for managing API credentials with 1Password CLI that the AI wouldn't reliably generate on its own.
What it needs
Requires 1password-cli installed locally. About 1k tokens when loaded. Last updated 2026-04-20. 303 stars on the source repository.
What this skill does
1Password CLI 使用 op CLI 管理 1Password vault 中的密码和 API credentials。 前置检查 使用前确认 op 已安装并已集成桌面 App: 未安装则引导安装: 安装后需在 1Password 桌面 App 中开启集成:Settings → Developer → Integrate with 1Password CLI。 --- 保存 API Credential 用户提供 API Key 信息时,使用以下命令保存。字段按实际提供情况填写,未提供的字段省略。 标题命名规范: {服务商} API Key - {用途标识}(如 OpenAI API Key - agent) 最小必填字段: credential(API Key 本身)。其余字段按用户提供情况填入。 --- 查询/搜索条目 按标题或 URL 关键词模糊查找: --- 读取 Credential --- 注入环境变量(开发工作流) 在 .env 文件中使用 Secret References 代替明文,可以安全提交到 git: 运行脚本时注入真实值: --- Vault 管理 --- 工作流示例 用户说「帮我保存 OpenAI 的 API Key:sk-xxx」时: 1. 确认 op 已安装可用 2. 收集信息:服务商名、API Key、网站 URL、用途、关联项目(按用户提供情况) 3. 执行 op item create 保存 4. 输出保存结果(ID、标题、字段列表),不显示 credential 明文
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills iamzhihuix/1password