スキル一覧に戻る
leefowlercu

updating-op-secrets

by leefowlercu

My Claude Plugin Marketplace

2🍴 0📅 2026年1月16日
GitHubで見るManusで実行

SKILL.md


name: updating-op-secrets description: Updates existing secrets in 1Password using the op CLI. Use when the user needs to modify passwords, edit field values, add or remove fields, rename items, move items between vaults, or manage tags on existing 1Password items. Supports all item types including Login, Password, API Credential, and Secure Note.

Overview

This skill enables agents to update existing secrets in 1Password using the op CLI. It supports comprehensive update operations including editing field values, adding and removing fields, renaming items, moving items between vaults, and managing tags.

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

Table of Contents

Supported Operations

OperationUse Case
Edit FieldUpdate password, username, credential, or other field values
Add FieldAdd new custom fields to an existing item
Remove FieldDelete custom fields from an item
Rename ItemChange an item's title
Move ItemTransfer an item to a different vault
Manage TagsAdd, replace, or remove tags

Workflow

Phase 1: Context Assessment

Step 1: Understand the Request

Determine what the user wants to update:

  1. Identify the target item:

    • Item name or ID
    • Vault location (if known or ambiguous)
  2. Identify the update operation:

    • Edit field value(s)
    • Add new field(s)
    • Remove field(s)
    • Rename item
    • Move to different vault
    • Modify tags
  3. Gather required information:

    • For field edits: field name(s) and new value(s)
    • For new fields: section name, field name, field type, value
    • For removal: field name to delete
    • For rename: new title
    • For move: destination vault
    • For tags: tag list to set
  4. Clarify if needed:

    • If item name is ambiguous, ask for vault or use item ID
    • If field name is ambiguous, ask for section
    • For moves, confirm destination vault exists

Phase 2: Update Execution

Step 2: Execute Update Command

Based on the context assessment, execute the appropriate op command.

See op CLI Update Command Reference for complete command syntax.

Edit field value:

op item edit "<item-name>" <field>=<newvalue> --format json

Edit field in section:

op item edit "<item-name>" "Section.field"=<newvalue> --format json

Add custom field:

op item edit "<item-name>" "Section.newfield[type]"=<value> --format json

Remove custom field:

op item edit "<item-name>" "Section.field[delete]" --format json

Rename item:

op item edit "<item-name>" --title "<new-title>" --format json

Move to vault:

op item move "<item-name>" --destination-vault "<vault>"

Set tags:

op item edit "<item-name>" --tags "<tag1>,<tag2>" --format json

Generate new password:

op item edit "<item-name>" --generate-password --format json

Step 3: Confirm Update

  1. Parse JSON response to extract updated item details
  2. Verify update by checking the response shows expected changes
  3. Present confirmation to user:
    • Item title and ID
    • Fields that were modified
    • New vault location (if moved)
    • Generated password (if applicable)

Note: When moving items, inform the user that the item receives a new ID.

Step 4: Handle Errors

Common errors and resolutions:

ErrorResolution
item not foundVerify item name, try listing items in vault
vault not foundList available vaults with op vault list
more than one item matchesUse item ID instead of name, or specify vault with --vault
field not foundList item fields with op item get to verify field name
cannot delete built-in fieldUse empty string to clear: field=""
permission deniedVerify vault access permissions

Reference Documentation

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です