The exact command may vary by repository. Check the README on GitHub.
For the skill author
Drop this on your repo README
Shows your skill is listed on Skillteca, generates a backlink and trackable traffic.
[](https://www.skillteca.com.br/skills/sops-encrypt?utm_source=badge&utm_medium=readme&utm_campaign=badge)
One short email with only the new Design e Frontend skills. 4 minutes of reading, no spam, unsubscribe with one click.
You confirm your email on the first send. No spam. Unsubscribe with one click.
SOPS Encrypt
Encrypt .env files by converting to YAML and encrypting with SOPS + age.
Why YAML? SOPS dotenv store has a known bug (#1435) that corrupts backslash and \n sequences. The helper script converts dotenv→YAML before encryption.
tools.sops.installed must be true — if not, tell user to run /devtools:sops-setup
project.sops_yaml.exists must be true — if not, tell user to run /devtools:sops-setup
age_key.exists must be true — if not, tell user to run /devtools:sops-setup
Show unencrypted .env files from project.env_files. If empty, report "No .env files found to encrypt" and exit.
Use AskUserQuestion (multiSelect: true) — which files to encrypt. List each .env* file. If a corresponding .enc.yaml file already exists, note it will be overwritten.
Encrypt each selected file (convert dotenv→YAML, then encrypt):