Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

op-helper

БесплатноБез исполняемых скриптовНе проверен

Helps with 1Password CLI (op) for secure secret retrieval and management When user mentions 1Password, secrets, op command, or asks about credential management

shepherdjerredот shepherdjerred★ 85 звёзд на GitHub

Об этом скилле

1Password Helper Agent

What's New in 2025 (v4+)

  • Concealed Output by Default: Sensitive fields now require --reveal flag to display
  • Performance: Item ID references are faster than name-based lookups
  • Caching: Enabled by default on macOS/Linux for faster responses
  • 1Password Environments: New integration for local .env file access
  • JSON Templates: Create items securely with op item template

Overview

This agent helps you work with the 1Password CLI (op) for secure secret retrieval, credential management, and secret injection into your applications and scripts.

Toolkit credential lookup in the monorepo

Use supported toolkit commands directly before retrieving tokens yourself. They resolve registered credentials from the environment, config locators, then the declared backend. Homelab platform tokens use a 1Password service account; Bugsink and Discord use macOS Keychain by default. A missing Keychain entry does not automatically fall through to 1Password. See packages/toolkit/README.md for enrollment, overrides, and the separate ci authentication path. Never print or persist credential values.

IMPORTANT: Minimize op Invocations

Desktop-authenticated op calls can prompt for biometric/password approval. Toolkit's enrolled service-account backend uses its token instead. Use as few direct desktop-authenticated op calls as possible:

  • Retrieve multiple fields in one call using --format json instead of separate calls per field
  • Combine lookups when possible (e.g. get the full item once, then extract fields from the JSON)
  • Never loop over items with individual op calls when a single op item list --format json can get everything

IMPORTANT: Do NOT gate work on op whoami or op signin

On a local machine, op typically uses the 1Password desktop-app integration with biometric unlock. Auth then happens per command (a Touch ID / system prompt on each call) — there is no long-lived CLI session token in the shell. Two behaviors routinely mislead agents into wrongly concluding 1Password is unavailable:

  • op whoami reports a false negative. It frequently prints [ERROR] account is not signed in and exits 1 even though the very next real operation (op vault list, op item get, op read) succeeds. whoami is looking for a shell session token that the desktop-app integration never populates — it is not a reliable readiness check in this setup.
  • op signin is effectively a no-op here. Non-interactively it prints nothing and establishes no session; and even if it emitted an export OP_SESSION_…, each Bash tool call is a fresh subprocess, so the variable cannot persist to the next call. Do not run it as a "make sure we're signed in" step, and do not chain op signin && op whoami.

Do this instead — probe with the real command you need:

# Readiness == a real read succeeds (triggers the biometric prompt if needed).
op vault list          # auto-approved; returns vaults when op is usable
# ...or just run the command you actually need and check its exit code:
op item get "<item>" --vault "<vault>" --format json
  • If any real op call returns data, op is working — regardless of what op whoami said. Proceed.
  • Only conclude 1Password is unavailable when the actual read you need fails (non-zero exit and no data). Never ask the user to sign in based on op whoami / op signin output alone.
  • op account list confirms an account is configured (handy for discovering vault/account names) but is not proof of an active session — it can succeed while whoami fails. Use it for discovery, not gating.
  • Exception — service accounts (OP_SERVICE_ACCOUNT_TOKEN, e.g. CI): there is a real token, so op whoami is meaningful there. This caveat is about the local desktop-app + biometric setup, not service-account contexts.

Cloudflare environment-token integration

Use toolkit cf to resolve CF_API_TOKEN automatically. The tracked ~/.local/bin/cf wrapper maps it to CLOUDFLARE_API_TOKEN for that process only. Never print, paste, or persist the value. The wrapper deliberately keeps CLOUDFLARE_API_TOKEN out of the ambient shell so a bare OpenTofu apply still fails closed.

cf auth list is not an authentication probe here. It lists named profiles stored by the cf CLI and may correctly return an empty list when the command is authenticated from the environment. Use cf auth whoami, which reports the environment-token source and validity, or the exact read-only operation needed:

toolkit cf auth whoami
toolkit cf accounts list
toolkit cf zones list

Treat a successful cf auth whoami or API read as proof that Cloudflare authentication works, regardless of op whoami. Treat a Cloudflare 403 on a write as an authorization/scope problem, not a 1Password session problem. For example, creating an API token requires the curre

Полный SKILL.md на GitHub

Установить op-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл op-helper?

Helps with 1Password CLI (op) for secure secret retrieval and management When user mentions 1Password, secrets, op command, or asks about credential management

Как установить скилл op-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл op-helper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить op-helper с