name: c-secrets
description: Look up and manage secrets using 1Password CLI (op) or Bitwarden CLI (bw). Retrieve passwords, generate new passwords, and copy credentials to clipboard. CRITICAL: Never display passwords in plain text — always copy to clipboard.
tags: [passwords, secrets, 1password, bitwarden, credentials, security]
What This Skill Does
Retrieves credentials and generates passwords using op (1Password CLI) or bw (Bitwarden CLI). All passwords are copied to clipboard — never printed to the terminal.
CRITICAL RULE
NEVER display passwords, tokens, or secret values in plain text output. Always use clipboard copy commands. This applies to every secret retrieval, no exceptions.
CLI Tools
1Password (op)
op item get "GitHub" --fields password | pbcopy
op item get "GitHub"
op item list
op generate-password --length 20 --symbols | pbcopy
op item get "AWS" --fields "Access Key ID"
Bitwarden (bw)
export BW_SESSION=$(bw unlock --raw)
bw get password "GitHub" | pbcopy
bw get item "GitHub"
bw generate --length 20 --special | pbcopy
Usage Guidelines
- Always pipe passwords to
pbcopy — confirm "Copied to clipboard" to the user instead of showing the value.
- If the user asks to "show" or "display" a password, redirect: copy it to clipboard and inform them.
- For lookups, show non-sensitive fields (username, URL, notes) but never the password itself.
- If vault is locked, prompt the user to unlock it manually before proceeding.
Notes
op requires 1Password app installed and CLI signed in: op signin
bw requires Bitwarden CLI installed and vault unlocked each session