1password
Skill này làm gì
Skill này thiết lập và sử dụng công cụ dòng lệnh chính thức của 1Password. Nó giữ mật khẩu và khóa ngoài chat, nhật ký và các file được commit. Dành cho lập trình viên cần bí mật cho công cụ của mình.
Khi nào nên dùng
- ✓Khi một lệnh hoặc file cấu hình cần mật khẩu, khóa API hoặc bí mật khác được lưu trong 1Password.
- ✓Khi bạn muốn kiểm tra 1Password CLI đã được cài và đăng nhập chưa.
- ✓Khi bạn cần điền mẫu cấu hình bằng bí mật mà không ghi chúng vào file.
Liên kết skill
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/1password/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập cấu hình ứng dụng của tôi để lấy mật khẩu cơ sở dữ liệu từ 1Password mà tôi không cần dán nó ở đâu cả.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra công cụ 1Password đã được cài và đăng nhập chưa. Sau đó nó dùng các lệnh an toàn đưa bí mật vào lúc chạy, nên bí mật không bao giờ xuất hiện trong cuộc trò chuyện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
1Password CLI
Use the official op CLI for secrets consumed by commands or configuration. Prefer workflows in which the secret never appears in model context, terminal output, logs, chat, shell history, or a committed file.
References
- Read
references/get-started.mdfor prerequisites, authentication modes, and platform notes. - Read
references/cli-examples.mdfor safe command patterns.
Workflow
- Check the operating system and shell.
- Verify the CLI without installing anything:
op --version. - Identify the configured authentication mode:
OP_SERVICE_ACCOUNT_TOKENis present: service account, usually for CI or headless use.- 1Password desktop integration is enabled: use the running, unlocked desktop app.
- Neither applies: standalone interactive sign-in is required.
- Verify access with
op whoamibefore a secret-consuming operation. - If more than one account exists, use
--accountor the already-configuredOP_ACCOUNTvalue. - Prefer
op runorop inject; useop readonly when its output can be consumed without being exposed.
If op is absent or authentication is not configured, explain the exact prerequisite and point to the official 1Password CLI documentation. Do not silently install the CLI, ask the user to paste a password or token into chat, invent credentials, or place a secret in tool arguments.
Authentication modes
Service account
The user must configure OP_SERVICE_ACCOUNT_TOKEN outside the conversation and agent command history. Do not print or inspect its value.
op whoami
op vault list
Service-account access is limited to its allowed vaults and does not require the desktop app.
Desktop app integration
Run op directly so it can reach the per-user desktop integration channel:
op vault list
op whoami
The first call may request Touch ID, Windows Hello, or system authentication. If the CLI cannot connect, ask the user to open and unlock 1Password and confirm CLI integration is enabled. Do not move this mode into tmux as a workaround.
Standalone interactive sign-in
An interactive sign-in creates a session environment variable that must stay in the same shell. On macOS or Linux, use a private tmux session only when desktop integration and service-account authentication are unavailable. Read the bundled tmux Skill first.
SOCKET_DIR="${EKKO_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/ekko-tmux-sockets}"
mkdir -p "$SOCKET_DIR"
chmod 700 "$SOCKET_DIR"
SOCKET="$SOCKET_DIR/ekko-op.sock"
SESSION="op-auth-$(date +%Y%m%d-%H%M%S)"
tmux -S "$SOCKET" new -d -s "$SESSION" -n shell /bin/sh
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'eval "$(op signin --account my.1password.com)"' Enter
tmux -S "$SOCKET" capture-pane -t "$SESSION":0.0 -p -S - | tail -40
Do not queue later commands while sign-in is prompting. If a password, MFA challenge, or account choice is required, pause and ask the user to complete it locally by attaching to the named socket and session. Never request the password or one-time code in chat. After the prompt returns, send op whoami into that same pane and reuse the same SOCKET and SESSION for subsequent commands.
On Windows, prefer desktop integration or a service account. Do not translate the POSIX tmux flow into PowerShell without an explicitly provided persistent-session mechanism.
Guardrails
- Never relay secret values through chat or include them in a summary.
- Never use a command whose purpose is to print a secret merely to prove access; use
op whoamiand metadata-only listing commands. - Prefer
op runfor process environment variables andop injectfor templates. - Writing an injected file or
op read --out-filepersists secret material. Do it only when explicitly requested, restrict permissions, keep it out of version control, and explain cleanup. - Do not pass
--no-maskingunless the user explicitly requires unmasked output and the destination is known to be safe. - If authentication expires, fix the active mode rather than switching modes without the user's knowledge.
Câu hỏi thường gặp
Tôi có phải dán mật khẩu vào chat không?
Không. Skill yêu cầu không hỏi mật khẩu hoặc token trong chat và dùng các phương thức đăng nhập của chính 1Password.
Nó hỗ trợ những phương thức đăng nhập nào?
Token tài khoản dịch vụ cho thiết lập tự động, ứng dụng 1Password trên máy tính khi đã mở khóa, hoặc đăng nhập tương tác độc lập.
Điều gì xảy ra nếu CLI chưa được cài?
Agent giải thích thiếu gì và chỉ bạn đến tài liệu chính thức của 1Password, không tự cài đặt một cách âm thầm.
Chi tiết
Mô tả gốc của tác giả
Set up and use 1Password CLI for authentication, secret references, command injection, and safe configuration templating.
repo: EKKOLearnAI/ekko-studio
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11560
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
apple-notes
12kGiúp agent của bạn tạo, tìm, đọc, sửa, di chuyển hoặc xóa Apple Notes trên Mac, bằng công cụ dòng lệnh memo.
apple-reminders
12kGiúp agent của bạn liệt kê, tạo, sửa, đánh dấu hoàn thành hoặc xóa Apple Reminders và danh sách nhắc việc trên Mac, bằng công cụ remindctl.
document-to-action-items
12kGiúp agent của bạn biến tài liệu, bản ghi cuộc họp hoặc các ghi chú thành bảng việc cần làm rõ ràng gồm người phụ trách, thời hạn và quyết định.
docx
12kGiúp agent của bạn tạo, đọc, sửa, kiểm tra và xem trước trực quan các file Word .docx, gồm mẫu, bình luận, thay đổi được theo dõi và bảng.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.