jpskill.com
🛠️ 開発・MCP コミュニティ

1password-credential-lookup

This skill should be used when agents need to log into websites, retrieve passwords, or access credentials. CRITICAL - always use find_credential with the website URL, never guess item names.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o 1password-credential-lookup.zip https://jpskill.com/download/17925.zip && unzip -o 1password-credential-lookup.zip && rm 1password-credential-lookup.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17925.zip -OutFile "$d\1password-credential-lookup.zip"; Expand-Archive "$d\1password-credential-lookup.zip" -DestinationPath $d -Force; ri "$d\1password-credential-lookup.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して 1password-credential-lookup.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → 1password-credential-lookup フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

1Password Credential Lookup

重要: 項目名ではなく URL を使用してください

誤り:

get_credential(item_name="github.com")  ← 絶対にしないでください
get_credential(item_name="GitHub")      ← 絶対にしないでください

正しい方法:

find_credential(url="github.com")                           ← 正しい
find_credential(url="github.com", username="clementwalter") ← さらに良い

たった一つのルール

ウェブサイトにログインする際は、ドメインを指定して find_credential を使用してください。

1Password の項目には、URL と一致しない任意の名前が付けられています。find_credential ツールは、1Password に保存されている URL フィールドで検索し、これはアクセスしているウェブサイトと一致します。

ツール (推奨順)

1. find_credential - 主要ツール

すべての認証情報検索にこれを使用してください:

find_credential(url="github.com")
find_credential(url="linkedin.com", username="clement@example.com")

パラメータ:

  • url (必須): ウェブサイトのドメイン (例: "github.com", "twitter.com")
  • username (オプション): 複数のアカウントが存在する場合に、ユーザー名でフィルタリングします

戻り値:

  • 単一の一致: {"username": "...", "password": "...", "item_name": "..."}
  • 複数の一致: 選択可能なアカウントのリスト
  • 一致なし: エラーメッセージ

2. list_items_for_url - どのアカウントを使用するか不明な場合

list_items_for_url(url="github.com")

ドメインのすべてのアカウントをユーザー名とともに表示します。どのアカウントを使用するか不明な場合は、find_credential の前に使用してください。

3. get_credential - ほとんど必要ありません

正確な項目 ID (例: ct2jszznlzlp7r7jeb53rhy5li) を持っている場合にのみ使用してください。URL や推測された名前を渡さないでください。

ワークフローの例

github.com にログインする場合:

# ステップ 1: ドメインの認証情報を取得する
find_credential(url="github.com", username="clementwalter")

# 複数のアカウントがあり、ユーザー名フィルターがない場合:
# → リストを返します: [{"username": "work@company.com"}, {"username": "personal@gmail.com"}]
# → 1つ選択し、ユーザー名フィルターで再試行します

# ステップ 2: 返された認証情報を使用してログインフォームに入力します

ドメインエイリアス

これらのドメインは同等として扱われます:

  • x.comtwitter.com

エラー処理

エラー 解決策
"No items found" ドメインのスペルを確認してください
"Multiple items found" フィルタリングするために username パラメータを追加してください
"op CLI not installed" ユーザーは 1Password CLI が必要です
"Timed out" ユーザーは op signin を実行する必要があります

アンチパターン

絶対にしないでください:

  • get_credential(item_name="github.com") - URL は項目名ではありません
  • get_credential(item_name="GitHub") - 推測された名前は機能しません
  • get_credential(item_name="my github") - 項目名は任意です

常にこれを行ってください:

  • find_credential(url="github.com") - ウェブサイトの URL で検索します
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

1Password Credential Lookup

CRITICAL: Use URL, Not Item Names

WRONG:

get_credential(item_name="github.com")  ← NEVER DO THIS
get_credential(item_name="GitHub")      ← NEVER DO THIS

RIGHT:

find_credential(url="github.com")                           ← CORRECT
find_credential(url="github.com", username="clementwalter") ← EVEN BETTER

The One Rule

When logging into a website, use find_credential with the domain.

1Password items have arbitrary names that don't match URLs. The find_credential tool searches by the URL field stored in 1Password, which matches the website you're visiting.

Tools (in order of preference)

1. find_credential - PRIMARY TOOL

Use this for ALL credential lookups:

find_credential(url="github.com")
find_credential(url="linkedin.com", username="clement@example.com")

Parameters:

  • url (required): Domain of website (e.g., "github.com", "twitter.com")
  • username (optional): Filter by username when multiple accounts exist

Returns:

  • Single match: {"username": "...", "password": "...", "item_name": "..."}
  • Multiple matches: List of accounts to choose from
  • No match: Error message

2. list_items_for_url - When unsure which account

list_items_for_url(url="github.com")

Shows all accounts for a domain with usernames. Use before find_credential if you don't know which account to use.

3. get_credential - RARELY NEEDED

Only use if you have an exact item ID (like ct2jszznlzlp7r7jeb53rhy5li). Never pass URLs or guessed names.

Workflow Example

When logging into github.com:

# Step 1: Get credentials for the domain
find_credential(url="github.com", username="clementwalter")

# If multiple accounts and no username filter:
# → Returns list: [{"username": "work@company.com"}, {"username": "personal@gmail.com"}]
# → Pick one and retry with username filter

# Step 2: Use returned credentials to fill login form

Domain Aliases

These domains are treated as equivalent:

  • x.comtwitter.com

Error Handling

Error Solution
"No items found" Check domain spelling
"Multiple items found" Add username parameter to filter
"op CLI not installed" User needs 1Password CLI
"Timed out" User needs to run op signin

Anti-Patterns

NEVER do these:

  • get_credential(item_name="github.com") - URL is not an item name
  • get_credential(item_name="GitHub") - Guessed names don't work
  • get_credential(item_name="my github") - Item names are arbitrary

ALWAYS do this:

  • find_credential(url="github.com") - Search by the website URL

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。