Install cloudflare/security-audit through the Skills CLI with Homebrew npx so the multi-file skill stays upstream-identical. The universal target ~/.agents/skills is read by OpenCode, Codex, Pi, and Grok; the CLI also links it into ~/.claude/skills for Claude Code. Skip when installed, warn instead of failing when GitHub is unreachable, and never target the read-only ~/.config/opencode/skills store link. Return crew dispatch to opencode-go/deepseek-v4.1-flash in both the UI rule and the default, per the captain's 2026-10-21 order, and correct the AGENTS.md routing note. Stop opencode2's activation from calling exit 0: activation blocks are inlined into one flat script, so it silently skipped every later block (securityAuditSkill, setupLaunchAgents, syncMusic).
The reason you are still seeing command not found is that darwin-rebuild does not exist on your computer yet.When doing a brand-new installation of nix-darwin, the darwin-rebuild tool is not part of the standard Nix installer. You have to bootstrap it using the nix run command first, which will dynamically pull the tool from GitHub and execute the initial build.Run the following command from your terminal inside your ~/.dotfiles directory:zshsudo nix run nix-darwin#darwin-rebuild -- switch --flake ~/.dotfiles#lt-mbp
firstmate + Gitea (one-time per machine, secrets not in nix)
The firstmate crew dispatch + Gitea PR helper are wired by darwin-rebuild, but two secrets must be set manually per machine (nix cannot manage tokens without exposing them):
-
tea login (Gitea CLI auth against unraid): zsh tea login add --name unraid --url http://unraid.local:3003 --token <GITEA_TOKEN>
-
The Gitea token is the one in investor-flow's origin remote URL. After
tea login, optionally clean the embedded creds from the remote: zsh cd ~/Documents/investor-flow git remote set-url origin http://unraid.local:3003/transnet/investor-flow
Verify: fm launches OpenCode 2 as the first mate (isolated ~/.config/opencode2); oc2 --version prints an OpenCode 2 version; pi --list-models mimo shows opencode-go/mimo-v2.5-pro; tea pulls list --repo transnet/investor-flow works.
security-audit skill (agent security reviews)
home.activation.securityAuditSkill installs Cloudflare's security-audit skill from https://github.com/cloudflare/security-audit-skill so the coding agents can run a structured vulnerability audit. The exact command:
/opt/homebrew/bin/npx --yes skills add https://github.com/cloudflare/security-audit-skill \
--skill security-audit --global \
--agent claude-code codex pi opencode --yes
The install needs Homebrew's node, which configuration.nix already declares. Renew or update the skill by hand with:
/opt/homebrew/bin/npx --yes skills update security-audit --global --yes
Agent scope: the Skills CLI installs the bundle once under ~/.agents/skills/security-audit, the universal user-level directory that OpenCode, Codex, Pi, and Grok all read, and it links that directory into ~/.claude/skills for Claude Code. It does not touch ~/.config/opencode/skills, which home-manager points into the read-only Nix store, and that is why the install uses the shared directory instead.
The activation is idempotent and non-interactive: it skips the install when both the canonical copy and the Claude Code link exist, and a failed download only warns so the rebuild still completes. Trigger it in an agent with "security audit this codebase".
Sandbox limitation: the skill's README requires an OS-enforced sandbox (no external network, sanitized environment, resource limits, scratch-only writes) before it may run target-controlled builds, tests, browser automation, emulators, fuzzers, or fixtures. This Nix setup installs the skill only and creates no sandbox. Without one, the workflow keeps such leads as needs_validation rather than executing target code.
OpenSuperWhisper (local voice input)
Hold a shortcut, speak, release, and the transcript pastes into the focused app. Everything runs on the Mac: no audio or transcript leaves the machine.
First run:
- The
opensuperwhispercask is installed andhome.activation.openSuperWhisperpre-downloads the model to~/Library/Application Support/ru.starmel.OpenSuperWhisper/whisper-models/ggml-large-v3-turbo.bin. It selects "Whisper V3 Large" only when no model is selected or the selected file is gone, so a model you pick in the app stays selected. - Open the app. Onboarding should already show "Whisper V3 Large" as downloaded.
- Grant Microphone, Accessibility, and Input Monitoring when macOS asks. Input Monitoring is needed because the trigger is Right Option, a single modifier key.
- Keep the Right Option trigger (or change it in the app's settings). Hold it, speak, release. Auto-paste puts the text into the focused terminal or editor.
Notes:
- A fresh install starts with Option plus backtick instead of Right Option, and that combination needs no Input Monitoring. The activation never writes the trigger, the language, or the paste settings, so whatever you choose in the app survives the next rebuild.
- The model is local-only (about 1.6 GB). If the download failed during the rebuild, rerun
./rebuild.shor download the large Turbo V3 model ("Turbo V3 large" in the app's Settings) by hand. - Voice is for prompts and prose. Type URLs, file paths, and exact identifiers yourself.
- The first-run steps above are manual on purpose: macOS TCC permissions cannot be granted declaratively.