Install pinned pstack skills on activation #14

Merged
hermes merged 4 commits from fm/dotfiles-pstack-skills-pin into main 2026-11-07 18:12:47 -05:00
2 changed files with 7 additions and 6 deletions
Showing only changes of commit a58546900f - Show all commits

No files matched your search

+6 -5
View File
@@ -12,7 +12,7 @@ let
install -Dm755 ${./home/bin/yt-transcribe} $out/bin/yt-transcribe install -Dm755 ${./home/bin/yt-transcribe} $out/bin/yt-transcribe
''; '';
# Pinned pstack skills tree (cursor/plugins). `tdd` is deliberately absent: # Pinned pstack skills tree (cursor/plugins). `tdd` is deliberately absent:
# the captain's own tdd skill owns that name. See firstmate's # an existing user-level tdd skill owns that name. See firstmate's
# docs/adopted-skills.md for why these eleven skills exist. # docs/adopted-skills.md for why these eleven skills exist.
pstackSkillNames = [ pstackSkillNames = [
"statechart" "statechart"
@@ -507,11 +507,12 @@ in
# pstack/skills). The record of why these eleven skills exist is firstmate's # pstack/skills). The record of why these eleven skills exist is firstmate's
# docs/adopted-skills.md. They live only in ~/.agents/skills, which is outside # docs/adopted-skills.md. They live only in ~/.agents/skills, which is outside
# git and Nix, so this block restores them on a fresh machine. # git and Nix, so this block restores them on a fresh machine.
# `tdd` is skipped on purpose: the captain's own tdd skill owns that name. # `tdd` is skipped on purpose: an existing user-level tdd skill owns that
# name, so the pstack copy is never installed.
# Each run replaces only the eleven target directories; every other skill, # Each run replaces only the eleven target directories; every other skill,
# including the captain's own, stays untouched. No `exit 0` here: activation # including an existing tdd skill, stays untouched. No `exit 0` here,
# blocks are inlined into one flat script, so an early exit would skip the # because activation blocks are inlined into one flat script, so an early
# blocks that follow. # exit would skip the blocks that follow.
home.activation.pstackSkills = lib.hm.dag.entryAfter [ "writeBoundary" ] '' home.activation.pstackSkills = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
set -euo pipefail set -euo pipefail
src="${pstackSkills}/pstack/skills" src="${pstackSkills}/pstack/skills"
+1 -1
View File
@@ -86,7 +86,7 @@ Use dummy data only. The exclusions cover common secrets and the top-level `data
`home.activation.pstackSkills` restores the eleven adopted pstack skills into `~/.agents/skills`, the shared user-level skill directory that the security-audit section describes. The source is `https://github.com/cursor/plugins` at a fixed commit (folder `pstack/skills`), pinned by the `pstackSkills` `fetchFromGitHub` in `home.nix`. That pin is the only record of the commit: to move to newer upstream content, change `rev` and `hash` together, then rerun `./rebuild.sh`. `home.activation.pstackSkills` restores the eleven adopted pstack skills into `~/.agents/skills`, the shared user-level skill directory that the security-audit section describes. The source is `https://github.com/cursor/plugins` at a fixed commit (folder `pstack/skills`), pinned by the `pstackSkills` `fetchFromGitHub` in `home.nix`. That pin is the only record of the commit: to move to newer upstream content, change `rev` and `hash` together, then rerun `./rebuild.sh`.
Each run removes and recopies only those eleven directories, so a renamed upstream file never lingers and every other skill in `~/.agents/skills` stays untouched, including your own. `tdd` is skipped on purpose: your own `tdd` skill owns that name, so pstack's copy is never installed. The block adds no `~/.claude/skills` link, so Claude Code does not see these eleven skills. Each run removes and recopies only those eleven directories, so a renamed upstream file never lingers and every other skill in `~/.agents/skills` stays untouched, including an existing tdd skill. `tdd` is skipped on purpose: an existing user-level tdd skill owns that name, so the pstack copy is never installed. The block adds no `~/.claude/skills` link, so Claude Code does not see these eleven skills.
Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo. Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo.