/op-convention:op-conventionfrom op-convention
Conventions for storing development secrets in 1Password, covering vault, item names, bundles vs standalone items, categories, field names and tags. Load before creating, renaming, moving or editing any 1Password item with `op`, or when moving a project's secrets into 1Password.
Ships in op-convention. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dev unless the user names another vault.Dev does not exist or is not accessible, use the account's default vault (Personal, Private, Employee, <Server Name>, etc). Check with op vault list.Personal is for personal logins, cards and banking, not dev secrets.One item is one thing you create, rotate or revoke together. Each secret lives in exactly one item; never copy a value into a second item.
| Item | Holds | Category | Title | Fields |
|---|---|---|---|---|
| Vendor credential | One issuance from a vendor: a token, or a set issued together (access key ID + secret, OAuth client ID + secret) | API Credential | <Service> - <purpose>, e.g. GitHub - Zed MCP, Cloudflare R2 - quickshot | Built-in: credential for the secret, username for the ID or account, hostname, expires when known |
| Project secrets | Secrets the app generates itself, with no vendor behind them (SECRET_KEY_BASE, signing and encryption keys) | Secure Note | Project slug, kebab-case, e.g. quickshot | One concealed custom field per secret, labelled exactly like its env var |
| k8s Secret | Everything one k8s Secret contains, because the operator maps one item to one Secret | Secure Note | The Secret's name, e.g. beeper-secrets | One concealed custom field per Secret key |
| Account | A real account with a username and password | Login | <Service> - <purpose> | Built-in |
| File or SSH key | Service-account JSON, certificates, SSH keys | Document / SSH Key | <Service> - <purpose> | The 1Password SSH agent only serves SSH Key items |
project/<slug> tag groups them, and the project's fnox.toml maps each one to its env var.Cloudflare Access Service Token - <app>: <token>.op:// resolves by title. When the same item exists per environment, suffix the title with the env (Stripe - microfn prod, microfn-prod).mise.toml, not 1Password.References:
op://Dev/quickshot/SECRET_KEY_BASE
op://Dev/OpenRouter - personal/credential
At most one scope tag per item:
project/<slug>: anything belonging to a project, including its dashboard logins and service-account filesserver/<hostname>: a machine's own credentials (its service account token, keyring password, Tailscale auth key)Plus env/<env> (env/prod, env/dev) on anything specific to one environment. Omit it where environments don't apply, such as personal tool keys or a server's own credentials.
Do not tag the tool that reads the item (fnox, chainenv).
Never pass a secret value as a command argument, because it ends up in shell history and the process list. Instead:
jq -Rs reads all of stdin, so multi-line values (PEM keys) survive:
fnox get STRIPE_SECRET_KEY | jq -Rs '{title: "Stripe - microfn prod", category: "API_CREDENTIAL", tags: ["project/microfn", "env/prod"], fields: [{id: "credential", type: "CONCEALED", value: rtrimstr("\n")}]}' | op item create --vault Dev -
For a custom field set label to the env var name, e.g. {label: "SECRET_KEY_BASE", type: "CONCEALED", value: ...}, otherwise op:// cannot resolve it.op document create: op document create <file> --title "<title>" --vault Dev --tags project/<slug>, or - --file-name <name> to read stdin.op item create --template <file>, and delete the file.Non-secret edits can go inline. Always give the field a type, because op item edit turns an assignment to a field the item lacks into a concealed custom field: op item edit "n8n - MCP" --vault Dev 'hostname[text]=n8n.d.pn'.
op item move <id> --current-vault <from> --destination-vault Dev creates a new item with a new ID and archives the original. It also drops empty built-in fields, so set them afterwards with an explicit [text] type. Anything referencing the old title or ID needs the new op:// path.op cannot rename a field or change a category. Recreate the item instead: build a fresh object with jq (only title, category, tags, urls, fields; never pass the get output through as-is), check the values match, then archive the original:
op item get <id> --format json --reveal | jq '{title: ..., category: ..., tags: ..., urls: .urls, fields: [...]}' | op item create --vault Dev -
op item delete <id> --archive
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin op-convention