Automated summary
Allows an AI agent to retrieve and manage secrets from 1Password using the op CLI.
Strengths
- Uses service account authentication for secure access
- Supports listing, reading, and generating OTP codes
- Provides structured JSON output for programmatic use
Limitations
- Requires the op CLI to be installed and configured with a service account
- All commands must specify the vault explicitly
- Cannot create or modify secrets, only read
When you need to retrieve passwords, API keys, or OTP codes stored in 1Password during a development or troubleshooting session.
When you need to write or update secrets, or when no 1Password service account is available.
Security analysis
CautionThe skill legitimately manages secrets via the 1Password CLI, but its use of Bash and ability to output plain-text secrets warrants caution to prevent unintended exposure.
- •Uses Bash to execute 1Password CLI commands that can expose sensitive secrets in standard output or logs.
- •Does not explicitly implement safeguards to prevent leakage of secrets beyond the requested action.
Examples
What vaults are available in my 1Password account?Retrieve the password for my AWS account from the 'Personal' vault.What is the current two-factor authentication code for my GitHub account?name: op description: Manage 1Password secrets. Use when user wants to list, get, or read passwords, OTP codes, API keys, or other secrets from 1Password. user-invocable: true argument-hint: "[action or natural language request]" allowed-tools: Bash
1Password CLI (op)
Manage secrets in 1Password using the op command. Authenticated via service account.
User Request
$ARGUMENTS
Commands Reference
Important: Service accounts require --vault on every command. Before running any item commands, discover the available vault name first:
op vault list --format=json
Then use the vault name from the response in all subsequent commands.
List Items
# List all items in vault
op item list --vault "VAULT_NAME" --format=json
# Long format (with categories, dates)
op item list --vault "VAULT_NAME" --long --format=json
# Filter by category
op item list --vault "VAULT_NAME" --categories Login --format=json
op item list --vault "VAULT_NAME" --categories "API Credential" --format=json
# Filter by tags
op item list --vault "VAULT_NAME" --tags production --format=json
# Filter favorites only
op item list --vault "VAULT_NAME" --favorite --format=json
Get Item Details
# Full item details
op item get "Item Title" --vault "VAULT_NAME" --format=json
# Get OTP (one-time password / 2FA code)
op item get "Item Title" --vault "VAULT_NAME" --otp
# Get specific fields
op item get "Item Title" --vault "VAULT_NAME" --fields label=username --format=json
op item get "Item Title" --vault "VAULT_NAME" --fields label=password --format=json
op item get "Item Title" --vault "VAULT_NAME" --fields label=username,label=password --format=json
# Get fields by type
op item get "Item Title" --vault "VAULT_NAME" --fields type=CONCEALED --format=json
Read Individual Secret
# Read a specific field value directly
op read "op://VAULT_NAME/Item Title/username"
op read "op://VAULT_NAME/Item Title/password"
op read "op://VAULT_NAME/Item Title/Section Name/field"
List Vaults
op vault list --format=json
JSON Response Structures
op vault list --format=json:
[
{"id": "abc123...", "name": "My Vault", "content_version": 42}
]
op item list --format=json:
[
{
"id": "abc123...",
"title": "Example Service",
"version": 1,
"vault": {"id": "xyz...", "name": "My Vault"},
"category": "LOGIN",
"last_edited_by": "...",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-02T00:00:00Z",
"additional_information": "user@example.com",
"urls": [{"primary": true, "href": "https://example.com"}]
}
]
op item get --format=json:
{
"id": "abc123...",
"title": "Example Service",
"category": "LOGIN",
"vault": {"id": "xyz...", "name": "My Vault"},
"fields": [
{
"id": "username",
"type": "STRING",
"purpose": "USERNAME",
"label": "email",
"value": "user@example.com",
"reference": "op://My Vault/Example Service/email"
},
{
"id": "password",
"type": "CONCEALED",
"purpose": "PASSWORD",
"label": "password",
"value": "secret_value",
"reference": "op://My Vault/Example Service/password"
},
{
"id": "TOTP_xxx",
"type": "OTP",
"label": "one-time password",
"value": "otpauth://totp/...",
"totp": "123456"
}
],
"urls": [{"primary": true, "href": "https://example.com"}]
}
op item get --otp:
Returns just the 6-digit TOTP code as plain text (e.g., 182448).
op item get --fields --format=json:
[
{"id": "username", "type": "STRING", "label": "email", "value": "user@example.com"},
{"id": "password", "type": "CONCEALED", "label": "password", "value": "secret_value"}
]
Important Notes
- Service account requires
--vault— always discover vault name viaop vault listfirst, then use it in all commands --otpreturns plain text — do not combine with--format=json- OTP field in JSON — when getting full item, the current TOTP code is in the
totpkey of OTP-type fields - Categories: Login, Password, API Credential, Secure Note, Database, SSH Key, Credit Card, Identity, Document, Server, Software License
Instructions
- Parse the user's natural language request to determine what they need
- First, run
op vault list --format=jsonto discover the available vault name(s) - Determine the appropriate
opcommand, using the discovered vault name - Always use
--format=jsonexcept for--otp(which returns plain text) - Execute the command via Bash
- Parse the JSON response and present results clearly to the user
- For OTP requests, just return the code prominently
- For credential requests, format as a clear key-value list
- Never log or echo secrets unnecessarily — only show what was requested
If the request is ambiguous, ask for clarification.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/1password-secrets-management-mm8o52hl' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/1password-secrets-management-mm8o52hl/download' --output '.skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md.part' && mv '.skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md.part' '.skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md' && test -s '.skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/op' && cp -R '.skill-downloads/1password-secrets-management-mm8o52hl' '.claude/skills/op'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/1password-secrets-management-mm8o52hl'openskills read '1password-secrets-management-mm8o52hl'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/1password-secrets-management-mm8o52hl/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
DeFi AMM Security
Security
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, donation attacks, oracle manipulation, slippage, and integer math.
Semgrep Rule Creator
Security
Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Includes test-first methodology, taint mode support, and validation steps. Helps when building targeted static analysis detections.
Dev Toolbar Review Guide
Security
Safety rules for the dev toolbar, PostHog client, and feature flags. Use when reviewing changes to dev-tools and related files, covering environment guards, override cookies, and SSE stream safety.