Add security-audit skill install and restore paid Go crew dispatch #9
No files matched your search
@@ -319,7 +319,7 @@ in
|
||||
# Nix's npm (EACCES on the store). Skip when already present so a rebuild
|
||||
# does not pull a new beta under a live TUI. Activation blocks are inlined
|
||||
# into one flat script, so never `exit 0` here: that would skip every later
|
||||
# block (securityAuditSkill, setupLaunchAgents, syncMusic).
|
||||
# block (backpass, noMistakes, securityAuditSkill, openSuperWhisper).
|
||||
home.activation.opencode2 = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
npm=/opt/homebrew/bin/npm
|
||||
@@ -406,12 +406,16 @@ in
|
||||
# cloudflare/security-audit - vulnerability-hunting skill for the coding agents.
|
||||
# Installed by the upstream Skills CLI through Homebrew's npx, because the skill
|
||||
# is a multi-file bundle and an upstream refresh must stay byte-identical.
|
||||
# Scope: the CLI's "universal" target is ~/.agents/skills, which OpenCode, Codex,
|
||||
# Pi, and Grok all read as a user-level skill directory; Claude Code reads
|
||||
# ~/.claude/skills, so the CLI also links the skill there. Never target
|
||||
# ~/.config/opencode/skills: home-manager owns it and points it into the
|
||||
# read-only Nix store. Skip when installed, like opencode2/backpass, so a rebuild
|
||||
# never pulls a new skill version mid-session. Refresh manually with
|
||||
# Scope: the CLI's "universal" target is ~/.agents/skills, which Codex, Pi, and
|
||||
# OpenCode read as a user-level skill directory; Claude Code reads
|
||||
# ~/.claude/skills, so the CLI also links the skill there. Grok Build is out of
|
||||
# scope for this install: its skill directory is ~/.grok/skills, and the CLI
|
||||
# only populates it when `grok` is named in --agent. Never target
|
||||
# ~/.config/opencode/skills: home-manager owns that path with force = true and
|
||||
# mkOutOfStoreSymlink into the mutable dotfiles checkout, so a rebuild would
|
||||
# clobber the CLI's link and CLI writes would land in the git checkout. Skip
|
||||
# when installed, like opencode2/backpass, so a rebuild never pulls a new skill
|
||||
# version mid-session. Refresh manually with
|
||||
# /opt/homebrew/bin/npx --yes skills update security-audit --global --yes
|
||||
# The skill's own README still requires an OS-enforced sandbox before it may run
|
||||
# target-controlled builds, tests, browsers, or fuzzers; this machine has none,
|
||||
|
||||
@@ -31,7 +31,7 @@ The install needs Homebrew's `node`, which `configuration.nix` already declares.
|
||||
/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.
|
||||
Agent scope: the Skills CLI installs the bundle once under `~/.agents/skills/security-audit`, the universal user-level directory that Codex, Pi, and OpenCode read, and it links that directory into `~/.claude/skills` for Claude Code. Grok Build is out of scope for this install: its skill directory is `~/.grok/skills`, and the CLI only populates it when `grok` is named in `--agent`. The install leaves `~/.config/opencode/skills` alone because home-manager owns that path with `force = true` and `mkOutOfStoreSymlink` into the mutable dotfiles checkout: a rebuild would clobber the CLI's link, and CLI writes would land in the git checkout. 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".
|
||||
|
||||
|
||||
Reference in new issue
Block a user