Back to list
leefowlercu

creating-op-secrets

by leefowlercu

My Claude Plugin Marketplace

2🍴 0📅 Jan 16, 2026

SKILL.md


name: creating-op-secrets description: Creates secrets in 1Password using the op CLI. Use when the user needs to store new passwords, API keys, login credentials, or secure notes in 1Password. Supports Login, Password, API Credential, and Secure Note item types with optional vault selection and password generation.

Overview

This skill enables agents to create secrets in 1Password using the op CLI. It supports creating Login, Password, API Credential, and Secure Note items with template support and vault selection.

The skill assumes the op CLI is installed and the user is already authenticated.

Table of Contents

Supported Item Types

TypeCategoryUse Case
LoginLOGINWebsite accounts, application logins
PasswordPASSWORDStandalone passwords, WiFi, PINs
API CredentialAPI_CREDENTIALAPI keys, access tokens, service credentials
Secure NoteSECURE_NOTEText notes, recovery codes, configurations

Workflow

Phase 1: Context Assessment

Step 1: Understand the Request

Determine what the user wants to create:

  1. Identify the item type:

    • Login: Has username/password for a website or service
    • Password: Standalone password without login context
    • API Credential: API key, token, or service credential
    • Secure Note: Text information to store securely
  2. Gather required information:

    • Title for the item (required)
    • Target vault (optional, uses default if not specified)
    • Field values based on item type
  3. Check for special requirements:

    • Should password be auto-generated?
    • Are there tags to apply?
    • Any custom sections needed?

See Item Templates Reference for field requirements per type.

Phase 2: Secret Creation

Step 2: Gather Field Values

Based on the item type, collect the necessary field values:

Login:

  • username: Account username or email
  • password: Account password (or use --generate-password)
  • url: Website URL (via --url flag)

Password:

  • password: The password value (or use --generate-password)

API Credential:

  • credential: The API key or secret
  • username: Optional key identifier

Secure Note:

  • notesPlain: The note content

Step 3: Execute Create Command

Build and execute the appropriate op item create command.

See op CLI Create Command Reference for complete syntax.

Basic pattern:

op item create --category <CATEGORY> \
  --title "<title>" \
  [--vault "<vault>"] \
  [field assignments...] \
  --format json

With generated password:

op item create --category Login \
  --title "<title>" \
  --generate-password=24 \
  username=<user> \
  --format json

Step 4: Confirm Creation

  1. Parse JSON response to extract item details
  2. Verify creation by checking for item ID in response
  3. Present confirmation to user:
    • Item title and ID
    • Vault location
    • Generated password (if applicable)

Step 5: Handle Errors

Common errors and resolutions:

ErrorResolution
vault not foundList vaults with op vault list, verify name
already existsUse different title or update existing item
invalid categoryUse valid category: Login, Password, "API Credential", "Secure Note"
missing required fieldProvide required fields for the category

Reference Documentation

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon