From 75088e1f151e65044bf995be78e1ebcfd65f5008 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 24 Oct 2026 20:55:01 -0400 Subject: [PATCH 1/2] fix(home): put /usr/bin on the security-audit activation PATH The Skills CLI spawns git to clone the skill. The activation block only prepended /opt/homebrew/bin, so git at /usr/bin/git was not resolvable and the rebuild failed with "spawn git ENOENT". Prepend /usr/bin too. --- home.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/home.nix b/home.nix index 104e2de..2dc5c09 100644 --- a/home.nix +++ b/home.nix @@ -422,9 +422,10 @@ in home.activation.securityAuditSkill = lib.hm.dag.entryAfter [ "writeBoundary" ] '' set -euo pipefail # Activation PATH lacks /opt/homebrew/bin, so npx's `#!/usr/bin/env node` - # shebang fails. Prepend only - replacing PATH breaks the rest of the HM - # activation (nix-env, gettext). - export PATH="/opt/homebrew/bin:$PATH" + # shebang fails. It also lacks /usr/bin, so the Skills CLI cannot spawn + # /usr/bin/git and the clone fails with "spawn git ENOENT". Prepend both - + # replacing PATH breaks the rest of the HM activation (nix-env, gettext). + export PATH="/opt/homebrew/bin:/usr/bin:$PATH" npx=/opt/homebrew/bin/npx # Canonical copy plus the Claude Code link: rerun when either is missing so a # half-removed install heals, then skip while both exist. No `exit 0` here: From 84c26cca4528422ffc01ed43a56f43342c100e56 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 24 Oct 2026 21:02:35 -0400 Subject: [PATCH 2/2] no-mistakes(document): Document git prerequisite for the security-audit skill install --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f6e9157..cb405e9 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ Verify: `fm` launches OpenCode 2 as the first mate (isolated `~/.config/opencode --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: +The install needs Homebrew's `node`, which `configuration.nix` already declares, plus the system Git at `/usr/bin/git` for the clone. Renew or update the skill by hand with: ```bash /opt/homebrew/bin/npx --yes skills update security-audit --global --yes