fix(skills): share deleted-upstream denylist between Nix and rebuild

This commit is contained in:
hermes committed 2026-11-29 13:22:54 -05:00
1 parent 72a23ff0d0
commit e4c67f0080
8 files changed
+159 -2

No files matched your search

+11
View File
@@ -115,6 +115,17 @@ After the switch:
- The Skills CLI updates skills tracked in `~/.agents/.skill-lock.json`, except `security-audit`. See [security-audit skill](#security-audit-skill-agent-security-reviews) for its freeze policy and manual update command. Untracked skills receive no update here. See [pstack skills](#pstack-skills-pinned-on-every-rebuild) for the pinned skills and their update procedure.
- `pi update --extensions --no-approve`, run after the switch because the Homebrew bundle may have upgraded the `pi` binary.
## Deleted upstream skills denylist
`deleted-upstream-skills.txt` at the repo root names the 20 skills deleted upstream from `davidondrej/skills`. It holds one name per line. Both paths read this same source-controlled file:
- `rebuild.sh` filters those names out of the `skills@latest update` arguments, even when they return to `~/.agents/.skill-lock.json`.
- `home.nix` reads the file into `deletedSkillNames` and runs `home.activation.removeDeletedUpstreamSkills`. That step removes only exact directory or link names under `~/.agents/skills`, `~/.claude/skills`, `~/.config/opencode/skills`, and `~/.grok/skills`. It leaves the skill lock, house-authored skills, pinned pstack skills, and every other skill untouched.
The list keeps local skill trees in sync with upstream. It also stops a deleted skill from returning through the CLI updater. Add a name here only when upstream deletes that skill. Do not add house-authored or pinned names.
`tests/skill-denylist.sh` checks that both paths read the list. `tests/rebuild-update-steps.py` runs `rebuild.sh` with a lock that contains denied names and asserts the update call excludes them.
## 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: