1Password Secret Template Generator

•
3
•

Generates 1Password secret references in .env format for secure environment variable management using the 1Password CLI.

The 1Password Secret Template Generator skill automates the creation of secure .env templates by mapping 1Password item fields to op:// secret references. It intelligently handles complex scenarios such as TOTP codes, SSH private keys, and multi-section items, converting field labels into standardized environment variable names. This skill is essential for developers who want to follow security best practices by using 'op run' to inject credentials at runtime rather than storing plaintext secrets in local configuration files.

Key Features

01Automatically maps 1Password fields to SCREAMING_SNAKE environment variable names
02Supports specialized field types including TOTP/OTP attributes and OpenSSH formats
03Handles vault and item names containing whitespace or special characters using smart quoting
043 GitHub stars
05Generates op:// URIs compatible with 'op run' for secure runtime injection
06Provides clear guidance for file attachments that require 'op read' instead of env loading

Use Cases

01Automating the setup of shared team credentials using 1Password vaults
02Generating secure .env templates for local development without storing actual secrets
03Integrating 2FA/TOTP and SSH keys directly into application environment variables