跳到正文
Skillpedia
安全11k · #11710

1password

它能做什么

这项技能帮助 AI 安装 1Password 命令行工具并登录。适合在 1Password 中保存密码和密钥,并希望智能体安全使用它们的人。

适用场景

  • ✓当你想安装或设置 1Password 命令行工具时。
  • ✓当你需要智能体读取保存在 1Password 中的密钥时。
  • ✓当你有多个 1Password 账户,需要选择使用哪一个的时候。

技能链接

https://github.com/spinabot/brigade/blob/main/skills/1password/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请在我的电脑上设置 1Password CLI,并检查我能否登录工作账户。”

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

工作原理

AI 会检查该工具是否已安装,确认桌面应用集成已开启,然后登录。在读取任何密钥之前,它会先验证访问权限;如果有多个账户,它会选择正确的一个。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

1Password CLI

Follow the official CLI get-started steps. Don't guess install commands.

References

  • references/get-started.md (install + app integration + sign-in flow)
  • references/cli-examples.md (real op examples)

Workflow

  1. Check OS + shell.
  2. Verify CLI present: op --version.
  3. Confirm desktop app integration is enabled (per get-started) and the app is unlocked.
  4. REQUIRED: create a fresh tmux session for all op commands (no direct op calls outside tmux).
  5. Sign in / authorize inside tmux: op signin (expect app prompt).
  6. Verify access inside tmux: op whoami (must succeed before any secret read).
  7. If multiple accounts: use --account or OP_ACCOUNT.

REQUIRED tmux session (T-Max)

The shell tool uses a fresh TTY per command. To avoid re-prompts and failures, always run op inside a dedicated tmux session with a fresh socket/session name.

Example (see tmux skill for socket conventions, do not reuse old session names):

SOCKET_DIR="${BRIGADE_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/brigade-tmux-sockets}"
mkdir -p "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/brigade-op.sock"
SESSION="op-auth-$(date +%Y%m%d-%H%M%S)"

tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- "op signin --account my.1password.com" Enter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- "op whoami" Enter
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- "op vault list" Enter
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200
tmux -S "$SOCKET" kill-session -t "$SESSION"

Guardrails

  • Never paste secrets into logs, chat, or code.
  • Prefer op run / op inject over writing secrets to disk.
  • If sign-in without app integration is needed, use op account add.
  • If a command returns "account is not signed in", re-run op signin inside tmux and authorize in the app.
  • Do not run op outside tmux; stop and ask if tmux is unavailable.
常见问题

智能体可以在未登录的情况下读取我的密钥吗?

不可以。该技能会在读取任何密钥之前确认访问权限可用,因此只有登录成功后才会读取。

我需要安装 1Password 桌面应用吗?

该技能要求桌面应用集成已开启,并且应用已解锁。

如果我有多个账户怎么办?

你可以通过设置选择账户,从而确保使用正确的那一个。

详情

作者的原始描述

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

repo: spinabot/brigade

热度

GitHub 星标
11k
排名
#11710
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能