Op logo

Op

Community
kevinslin
op

Use 1Password CLI safely for agent credential workflows.

Overview

Publisherkevinslin
Repositoryagstack
Skill nameop
Stars
26
Forks
1
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinslin on GitHub. Read the source before you install it.

Installation

Install the Op AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinslin/agstack/tree/main/active/op
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Op in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Op on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Op is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Op AI skill do?

Use 1Password CLI safely for agent credential workflows.

Why use Op on TypingMind?

Because you install it once and use it with any model. Op is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Op in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinslin/agstack/tree/main/active/op. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Op?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Op?

As many as you like. As long as a model supports skills, you can use Op with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Op AI skill free?

It is published on GitHub by kevinslin. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇