onepassword-cli-coder

Integrate 1Password CLI secret loading into development workflows.

47|11|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill onepassword-cli-coder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: onepassword-cli-coder
Source: https://github.com/majesticlabs-dev/majestic-marketplace/tree/main/plugins/majestic-devops/skills/onepassword-cli-coder
Command: npx skills add https://github.com/majesticlabs-dev/majestic-marketplace --skill onepassword-cli-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The 1Password CLI (op) provides secure secret injection into development workflows without exposing credentials in code, environment files, or shell history.

Core Features & Use Cases

  • Secret reference patterns: op://vault/item/field usage for deterministic secret retrieval.
  • Item naming & environment files: structured item names and .op.env files to inject secrets safely.
  • CI/CD & Multi-Account support: workflows for GitHub Actions and Kamal/Kubernetes pipelines with explicit accounts.
  • Running Commands with Secrets: inline secret usage and secret-injected command execution.

Quick Start

Create an environment file (e.g., .op.env) with secret references, then run a command like: op run --env-file=.op.env -- terraform apply

Frequently Asked Questions about onepassword-cli-coder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject secrets into deployment commands without exposing credentials?

The 1Password CLI integrates secret injection by loading credentials from 1Password vaults directly into commands at runtime. Use `op run --env-file=.op.env -- <command>` to execute infrastructure or deployment tasks with secrets referenced via `op://vault/item/field` patterns, keeping credentials out of code, environment files, and shell history.

Can I use 1Password CLI to automate secrets across GitHub Actions and Kubernetes?

Yes, the 1Password CLI supports multi-account secret injection for CI/CD and infrastructure workflows. Configure explicit 1Password accounts and use `.op.env` files with secret references in GitHub Actions pipelines, Kamal deployments, and Kubernetes orchestration to retrieve and inject secrets consistently across environments.

What's the best way to structure secrets for Terraform, Docker Compose, and Makefile workflows?

Use 1Password item naming conventions and `.op.env` environment files to define structured secret references. The 1Password CLI retrieves secrets on demand and injects them into Terraform applies, Docker Compose services, and Makefile targets via `op run`, enabling per-environment and per-command secret configuration without hardcoding credentials.

Do I need to store secrets in files if I'm using the 1Password CLI?

No, the 1Password CLI eliminates the need to store credentials in files or shell history. Secrets live only in your 1Password vault; the CLI retrieves them at command execution time using deterministic reference patterns, so local development, deployments, and CI/CD jobs access credentials securely without exposure.

How do I set up the 1Password CLI to work with multiple accounts and environments?

Define explicit 1Password accounts in your workflows and use separate `.op.env` files or per-command configuration for each environment. The CLI's multi-account support allows you to query items and create secrets across different vaults and accounts, then inject the correct credentials based on your deployment target or local context.

What happens if a secret reference in my op.env file fails or the item doesn't exist?

The 1Password CLI validates secret references before command execution. If an `op://vault/item/field` reference fails—such as a missing item or inaccessible field—the `op run` command exits with an error and does not execute the downstream command, preventing failed deployments or incomplete secret injection.