Add security-audit skill install and restore paid Go crew dispatch

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).
This commit is contained in:
Lap Tran committed 2026-10-24 19:54:36 -04:00
1 parent b37ee69be1
commit 1a3c38406a
4 files changed
+78 -14

No files matched your search

+22
View File
@@ -15,6 +15,28 @@ The firstmate crew dispatch + Gitea PR helper are wired by `darwin-rebuild`, but
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:
```bash
/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:
```bash
/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.