Skip to main content
skill CX Codex

c-secrets — Claude Code skill: what it does, how to install

Enables coding agents to fetch credentials and generate passwords via 1Password and Bitwarden CLIs without exposing secrets in terminal logs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add daxaur/openpaw --skill c-secrets -a claude-code
Open on GitHub

What c-secrets does

This skill guides assistants to query password managers using op (1Password CLI) or bw (Bitwarden CLI). The agent can list vault entries, read public attributes like usernames or URLs, and pull specific values such as an AWS Access Key ID.

Security is enforced by design. Passwords and tokens must never appear in terminal output. Instead, every secret value or newly generated password gets piped directly to pbcopy. The assistant outputs only a brief confirmation that data was placed on your clipboard.

Prerequisites are minimal but strict. You must have op or bw installed locally and signed in. If Bitwarden is locked, you need to run bw unlock --raw and export BW_SESSION before the agent can query records.

What it helps with

  • copy vault passwords directly to clipboard without terminal leaks
  • generate secure passwords using op or bw commands
  • retrieve non-sensitive fields like account logins and service URLs
  • extract specific custom fields like AWS Access Key IDs

Example prompts for the agent

  • Copy my GitHub password from 1Password
  • Generate a 20-character password with symbols using Bitwarden
  • Check my AWS item in 1Password and show the username

How to install c-secrets

1Skills CLI (Vercel)

npx skills add daxaur/openpaw --skill c-secrets -a claude-code

2Manually: put the files in place

~/.claude/skills/c-secrets/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/c-secrets/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about c-secrets

How to install c-secrets in Claude Code?

Run npx skills add daxaur/openpaw --skill c-secrets -a claude-code or place the file directly into ~/.claude/skills/c-secrets/SKILL.md.

What does c-secrets do?

It configures AI assistants to retrieve credentials and create passwords via op or bw CLIs, piping all sensitive values directly to the clipboard.

Will the assistant print a password if explicitly requested?

No. The skill instructs the agent to ignore display requests for secrets and redirect the value to pbcopy instead.

Source text

SKILL.md · MIT
---
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`)

```bash
# Copy a password to clipboard (PREFERRED — never print)
op item get "GitHub" --fields password | pbcopy

# Look up an item
op item get "GitHub"

# List all items
op item list

# Generate a password (copy to clipboard)
op generate-password --length 20 --symbols | pbcopy

# Get a specific field
op item get "AWS" --fields "Access Key ID"
```

### Bitwarden (`bw`)

```bash
# Unlock vault first (session token required)
export BW_SESSION=$(bw unlock --raw)

# Copy password to clipboard (PREFERRED)
bw get password "GitHub" | pbcopy

# Look up an item
bw get item "GitHub"

# Generate a password (copy to clipboard)
bw generate --length 20 --special | pbcopy
```

## Usage Guidelines

1. **Always pipe passwords to `pbcopy`** — confirm "Copied to clipboard" to the user instead of showing the value.
2. If the user asks to "show" or "display" a password, redirect: copy it to clipboard and inform them.
3. For lookups, show non-sensitive fields (username, URL, notes) but never the password itself.
4. 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

© daxaur · MIT · daxaur/openpaw

Similar skills

All skills for Security →

From the same set41

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor