secret-ops
Decrypt/encrypt this project's SOPS+age secrets and manage the private hemlighet repo. Use whenever a task reads or changes a secret — sops, age, vault, hemlighet, a *.sops file, personal/* dotfiles. Crypto runs on the configured secret host over ssh, NOT inside a primate. Host/identity come from env or ~/.config/secret-ops.conf (never hardcoded here).
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- secret-ops
- license
- Apache-2.0
- metadata
- { "author": "ooe", "version": "1.0.0" }
- description
- Decrypt/encrypt this project's SOPS+age secrets and manage the private hemlighet repo. Use whenever a task reads or changes a secret — sops, age, vault, hemlighet, a *.sops file, personal/* dotfiles. Crypto runs on the configured secret host over ssh, NOT inside a primate. Host/identity come from env or ~/.config/secret-ops.conf (never hardcoded here).
02 资源文件 4
- 其他.gitignore218 B
- 参考文档CHANGELOG.md651 B
- 脚本scripts/secret-host.sh2.1 KB
- 其他secret-ops.conf.example931 B
03 SKILL.md 正文
secret-ops
How secrets work in this project, so an agent working from inside a primate stops re-deriving it and getting it wrong. One rule: SOPS/age crypto runs on the configured secret host. You reach it over ssh and run it there — the maintainer does not run these commands by hand.
This skill hardcodes no hostnames, usernames, or paths — the public repo carries none. The real
values live in ~/.config/secret-ops.conf (or env), which is private to each machine; see
secret-ops.conf.example.
When to use
- Any task that reads or changes a secret:
sops,age,vault, thehemlighetrepo, a*.sopsfile,personal/*dotfiles, an encrypted service config. - Symptoms that lead here: "decrypt X", "add this key/value to the encrypted config", "rotate/rekey",
an API/MCP
401that needs a credential added, "the secret is stale on machine Y".
The hard rules (where agents keep getting stuck — don't)
- Crypto is host-side.
age/sopsare never installed on a host; they run in thenyckelcontainer via thebin/sops/vaultshims, which need the age key at~/.config/sops/age/keys.txt.primate()mounts the host's~/.sshand~/.awsinto a primate but not~/.config/sops/age, andbin/sopsbind-mounts the repo at its literal path, which Docker Desktop won't share from a primate. So sops/vault cannot run inside a primate. - Reach the secret host over ssh and run it there. The host, user, and clone paths come from config (below). It holds the age key, the hemlighet clone, the shims, and the push creds. hemlighet edits originate on that host and are pushed; other machines only pull — don't try to encrypt on a machine whose clone is read-only / lacks push creds.
- Non-login ssh drops PATH.
ssh host 'sops …'gets only/usr/bin:/bin:/usr/sbin:/sbin, so docker and the shims come back "command not found". Prepend/usr/local/binand~/.local/bin.scripts/secret-host.shdoes this for you — route every host command through it. - To encrypt, use
vault. Never hand-rollsops -e.vaultis the one encryptor and it owns the three things that are easy to get wrong:*.sopsfiles are binary mode (sops -e file.jsonplain writes a structured-JSON sops the fleet's-dcan't read); recipients come from.sops.yamlmatched against the decrypted path (vault uses--filename-override, so no copying plaintext around); and the commit is pathspec-scoped so unrelated staged changes aren't swept in. A hand-rolledsops -e … > file.sopsgets all three wrong. - vault's two scopes.
vault unlock/lock/status/rekeymanage thepersonal/*dotfiles (ssh/, aws/, env, …).vault seal <src> <dest.sops> [--push] [-m MSG]encrypts any other file into the clone (e.g. a service config)..sops.yamlat the hemlighet root holds the per-path recipient lists. Reading a*.sopsback is justsops -d --input-type binary --output-type binary <file>.sops(viasecret-host.sh).
Configuration
The scripts read, in order: environment variables, then ${SECRET_OPS_CONF:-~/.config/secret-ops.conf}
if present. Nothing is baked into the repo. Copy secret-ops.conf.example to ~/.config/secret-ops.conf
and fill it in (that file is private — never commit it):
SECRET_HOST=<the host where sops/age + the hemlighet clone + push creds live>
SECRET_USER=<ssh user on that host>
HEMLIGHET_DIR=$HOME/.local/share/hemlighet # optional; this is the published default
CHECKOUT_DIR=<path to the code-monkeys checkout on that host> # optional
Script
scripts/secret-host.sh — run a host command with a sane PATH
secret-host.sh 'sops -d --input-type binary --output-type binary <area>/config.json.sops' # read
secret-host.sh --cwd "$CHECKOUT_DIR" './vault seal <src> <area>/config.json.sops --push -m "msg"' # write
ssh's to $SECRET_USER@$SECRET_HOST, prepends /usr/local/bin:~/.local/bin to PATH, and runs in the
hemlighet clone by default (--cwd to change). Errors with guidance if the config is missing. This is
the skill's only script — the encryptor lives in vault (see rule 4), reached through here; the skill
does not hand-roll sops.
Typical flow (generic)
- Read:
secret-host.sh 'sops -d --input-type binary --output-type binary <area>/config.json.sops'. - Edit the decrypted working copy of the config (wherever your workflow keeps it, on the host).
- Encrypt + publish:
secret-host.sh --cwd "$CHECKOUT_DIR" './vault seal <plaintext> <area>/config.json.sops --push -m "describe the change"'. - Other machines pick it up on their next pull / config sync.
See also
- Bind mounts from inside a primate resolve on the daemon host — wrap workspace paths in
$(hostpath …)or they come up empty/denied. That is also whybin/sopscannot run in a primate.
04 同仓库更多 Skills
craft-build
Refresh the Craft macOS app builds — pull, cargo-build, package a .dmg for each app in the suite on the build Mac, and publish the artifacts to a fileserver. Use when asked to "refresh the craft builds", "rebuild the craft/mac apps", "update the open-source app builds", "deploy/publish the craft apps", or to add a new app repo to the set. Builds run on the configured build host over ssh, NOT inside a primate. Host, workspace root, repo manifest and deploy destination come from env or ~/.config/craft-build.conf (never hardcoded here).
spark-build
Build the cuda-* primate images (cuda-llama-cpp, cuda-comfy, cuda-vllm — the shared base for g.deceiver's six vLLM services) on a Blackwell GB10, freeing that box's unified memory first by stopping whatever it runs, then restarting it. NOTE the standalone coding cluster (qwen3-coder-next) was RETIRED 2026-09-05, so a "drain" is no longer a coding outage — it's a g.deceiver-service outage (hutch = memory stack; starsky = the live 27B brain, never build there mid-stream). Checks memory BEFORE stopping anything; --allow-outage / --skip-drain control the trade.
spark-bench
Run LLM evaluation harnesses (AIME 25, GPQA, LiveCodeBench v6, tau2-bench, SWE-Bench Verified via SWE-agent) against the spark-cluster from a dedicated x86 bench host (intel-nuc.tworivers). The harness runs in the spark-bench primate; only the OpenAI-compatible endpoint URL needs to change between baseline (cluster LB) and test (ad-hoc model server) runs.
sdlc
The default software development lifecycle every agent follows — intake, plan, isolate, implement, verify, review, land, deploy, observe, release. Use at the start of any coding task, and whenever deciding whether work is ready to deploy or ready to merge.
review-adversarial
Adversarial code review with structured findings and a review loop. Use when asked to critically review code, diffs, or design docs with an adversarial mindset.
math-fibonacci
Create a fibonacci sequence, as a list, as ascii art to display the divine proportions, etc...