Opのロゴ

Op

コミュニティ
kevinslin
op

Use 1Password CLI safely for agent credential workflows.

概要

公開者kevinslin
リポジトリagstack
スキル名op
スター
26
フォーク
1
同梱ファイル
1
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kevinslinがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルOpをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kevinslin/agstack/tree/main/active/op
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/op .claude/skills/op
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでOpを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にOpを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Opは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

1Password CLI

Use this skill to operate 1Password CLI with least privilege and low transcript exposure.

Default Stance

  • Prefer op run with secret references over reading plaintext secret values.
  • Prefer a scoped 1Password service account for unattended agent or automation work.
  • Prefer app-integrated interactive sign-in for local, human-present workflows.
  • Never print, summarize, paste, commit, or store secret values in chat, logs, notes, diffs, shell history, screenshots, or generated docs.
  • Treat anything that reaches the transcript as exposed. If a secret was printed, tell the user to rotate it.

Preflight

Before touching secrets, establish what is needed:

  1. Identify the command or tool that needs the credential.
  2. Identify the smallest set of fields it needs.
  3. Decide whether the task can use secret references instead of plaintext.
  4. Check whether op is installed and authenticated without exposing secrets:
bash
command -v op
op --version
op whoami

If auth is missing, ask the user to unlock or sign in to 1Password. Do not ask the user to paste account passwords, Secret Keys, recovery codes, or service account tokens into chat.

Access Patterns

Run a command with secrets

Use this when a subprocess needs credentials:

bash
op run --env-file .env.op -- your-command

The .env.op file should contain secret references, not secret values:

dotenv
API_KEY=op://Vault/Item/api-key
TOKEN=op://Vault/Item/token

Keep secret-reference env files local and uncommitted unless the project explicitly wants shared references. If creating a local env file, set restrictive permissions:

bash
chmod 600 .env.op

Read a value only when necessary

Use plaintext reads only when no safer injection path exists. Prefer command substitution that passes the value directly to the consumer, and avoid echoing:

bash
TOKEN="$(op read 'op://Vault/Item/token')" your-command

Avoid these patterns:

bash
op read 'op://Vault/Item/token'
echo "$(op read 'op://Vault/Item/token')"
set -x
env
printenv

Get secret references

When a user gives an item name but not a reference, inspect item metadata carefully and avoid revealing field values. Do not print raw op item get --format json output; filter it before it reaches the transcript:

bash
op item get "Item Name" --vault "Vault Name" --format json \
  | jq '.fields[] | {label, id, type, purpose, reference}'

When the desired field is known, extract only the reference:

bash
op item get "Item Name" --vault "Vault Name" --format json \
  | jq -r '.fields[] | select(.label == "Field Name") | .reference'

Do not include secret field values in the final answer. If a command output includes values, redact them before quoting or summarizing.

Unattended agents and automations

Use a dedicated service account with access only to the needed vault/items. Keep the service account token out of repos and transcripts:

bash
export OP_SERVICE_ACCOUNT_TOKEN="..."
op whoami

In Codex or other agent runtimes, inject OP_SERVICE_ACCOUNT_TOKEN through the runtime's approved secret mechanism or a local secrets file sourced by the launching shell. Do not write it into project config unless that config is explicitly secret-managed and excluded from version control.

Decision Tree

  • Need to run tests/build/deploy with secrets: use op run --env-file.
  • Need to configure an app: write secret references to local config, then run the app under op run.
  • Need to inspect whether an item exists: use op item get and report metadata only.
  • Need a raw secret value: pause and confirm the value must be exposed to a process; use op read without printing it.
  • Need long-running or headless access: use a scoped service account, not a human's broad interactive session.
  • Need to troubleshoot auth: use op whoami, op account list, and non-secret error text.

Transcript And Log Hygiene

  • Before running commands, consider whether stdout/stderr may contain secrets.
  • Disable shell tracing around op commands.
  • Do not run broad environment dumps after injecting secrets.
  • Do not pipe secret-bearing output into log files.
  • When sharing output, redact tokens, passwords, session identifiers, account IDs if sensitive, and item values.
  • If a tool insists on verbose debug logs, prefer passing a dummy credential first to validate shape, then run the real command only when needed.

Git Hygiene

Before finishing any task that created or changed files:

bash
git status --short
git diff -- . ':!*.lock'

Confirm no plaintext secrets were added. If a secret appears in a tracked file or diff, stop, remove it, and tell the user to rotate the credential if it may have been persisted.

User-Facing Guidance

When explaining setup to a user:

  • Recommend op run and secret references first.
  • Explain the tradeoff between app-integrated local sign-in and service accounts.
  • Tell the user where to put references, not secret values.
  • Include exact commands, but use placeholder vault/item names.
  • Avoid implying Codex needs unrestricted access to all of 1Password.

Failure Handling

  • If op is missing, ask the user to install 1Password CLI.
  • If op whoami fails, ask the user to unlock/sign in or provide a runtime-approved secret injection path.
  • If a vault/item/field is missing, ask for the vault, item, and field names or IDs.
  • If permissions are denied, recommend narrowing or correcting vault access rather than broadening to all vaults.
  • If a secret was exposed, report that plainly and recommend rotation.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Op」では何ができますか?

Use 1Password CLI safely for agent credential workflows.

TypingMindでOpを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Opはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにOpをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kevinslin/agstack/tree/main/active/opを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Opを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Opは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもOpを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Op」は無料ですか?

kevinslinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇