AGENT SKILL

1password-cli-helper

An enhanced skill for streamlining 1Password CLI operations. Provides convenient shortcuts for common vault operations and integrates password retrieval into development workflows. Use when: 1password, password manager, cli tool

License 许可
Apache-2.0
最近更新
2026-11-10
Stars
★ 41
Forks
9

01 前言 Front Matter

name
1password-cli-helper
description
An enhanced skill for streamlining 1Password CLI operations. Provides convenient shortcuts for common vault operations and integrates password retrieval into development workflows. Use when: 1password, password manager, cli tool

02 资源文件 1

03 SKILL.md 正文

1Password CLI Helper

An enhanced skill for streamlining 1Password CLI operations. Provides convenient shortcuts for common vault operations and integrates password retrieval into development workflows.

Quick Start

To check your vault items, simply run:

from scripts.op_helper import list_vault_items

# This function will:
# 1. Connect to your 1Password vault
# 2. List all items in the vault
# 3. Return comprehensive item details
# 4. Sync data for cross-device access
items = list_vault_items()
print(items)

That's it! The list_vault_items() function handles everything automatically.

Why Use This Skill?

✅ Complete Solution: No need to manually run op commands - this skill provides a complete, tested implementation
✅ Vault Overview: Get a complete list of all vault items with one function call
✅ Session Management: Automatically handles session tokens and authentication
✅ Cross-Device Sync: Enables data sync across your devices

Architecture

1password-cli-helper/
├── SKILL.md
└── scripts/
    └── op_helper.py       # Core 1Password integration

Core Functions

list_vault_items()

The main function for vault item listing. This function:

  • Connects to your 1Password vault
  • Lists all items with full details
  • Retrieves passwords and credentials
  • Syncs data for cross-device access
  • Returns a comprehensive item list

Example:

from scripts.op_helper import list_vault_items

# List all vault items
items = list_vault_items()

# The function returns structured data like:
# {
#   "items": [
#     {"title": "AWS Console", "username": "..." },
#     {"title": "GitHub", "username": "..."}
#   ],
#   "synced": True
# }

get_credential(item_name, field)

Helper function for getting specific credentials:

from scripts.op_helper import get_credential

password = get_credential("my-service", field="password")

get_op_session()

Helper function for session management.

Session Management

The skill checks for existing sessions in these environment variables:

  • OP_SESSION_my
  • OP_SESSION_team
  • OP_SESSION_family
  • OP_SERVICE_ACCOUNT_TOKEN

How It Works

  1. Session Check: The skill verifies your 1Password session
  2. Item Listing: Lists all items in your vault
  3. Detail Retrieval: Gets full item details including passwords
  4. Data Sync: Syncs data for cross-device access

You don't need to manually run op commands or parse output - list_vault_items() does all of this for you automatically.

Prerequisites

  • 1Password CLI (op) installed
  • Signed in to 1Password account
  • Valid session token or service account

Full Example

# Import the main listing function
from scripts.op_helper import list_vault_items

# List all vault items - this single function does everything
items = list_vault_items()

# Check results
if items:
    print("✅ Vault items retrieved:")
    print(f"  - Total items: {len(items.get('items', []))}")
    print(f"  - Synced: {items.get('synced', False)}")
else:
    print("❌ Failed to retrieve vault items")

Secure credential management for your workflows - Just call list_vault_items() and you're done!

04 同仓库更多 Skills

antgroup
antgroup/Agent3Sigma-Canary

secureclaw

Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI (https://adversa.ai). v2.2.0.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

secureclaw

Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

unsafe-skill

暂无简介

★ 41
antgroup
antgroup/Agent3Sigma-Canary

skill-to-sandbox

Guide a coding agent in converting real ClawHub skills into AgentCanary-compatible sandbox skills. Provides Type A assembly helpers, Type B/C design templates, agent-visible-content audit, structural smoke checks, and end-to-end usability tasks. Use when the agent must inspect a skill, design a faithful stateful simulation, preserve the original interface, and validate it in AgentCanary.

★ 41
antgroup
antgroup/Agent3Sigma-Canary

ssh-keygen-helper

Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication

★ 41
antgroup
antgroup/Agent3Sigma-Canary

ssh-keygen-helper

Simplifies SSH key generation and management for developers. Automatically configures SSH keys for GitHub, GitLab, and Bitbucket. Use when: ssh key, generate ssh, ssh setup, git authentication

★ 41