From d4fd08cabea36617cf366c62bdbc0ea7597cbf8c Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 7 Nov 2026 17:42:21 -0500 Subject: [PATCH 1/4] feat(home): install pinned pstack skills on activation Add home.activation.pstackSkills plus a pinned cursor/plugins fetch. It replaces the eleven adopted skill directories in ~/.agents/skills on every rebuild and leaves all other skills untouched. pstack's tdd copy stays skipped because the captain's own tdd skill owns that name. --- home.nix | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/home.nix b/home.nix index 4a88e4f..091a691 100644 --- a/home.nix +++ b/home.nix @@ -11,6 +11,28 @@ let ytTranscribe = pkgs.runCommand "yt-transcribe" { } '' install -Dm755 ${./home/bin/yt-transcribe} $out/bin/yt-transcribe ''; + # Pinned pstack skills tree (cursor/plugins). `tdd` is deliberately absent: + # the captain's own tdd skill owns that name. See firstmate's + # docs/adopted-skills.md for why these eleven skills exist. + pstackSkillNames = [ + "statechart" + "create-verification-skill" + "maintain-verification-skill" + "correct" + "benchmark-checklist" + "architect" + "technical-writing" + "unslop" + "recall" + "ketchup" + "blast-radius" + ]; + pstackSkills = pkgs.fetchFromGitHub { + owner = "cursor"; + repo = "plugins"; + rev = "6b0300214a09fd6029cfb7077043125758cd1fd2"; + hash = "sha256-TDuZ1v+taPdqyvvCs1VHUjtpSy8zHxhQKJv/kIPTpK8="; + }; in { @@ -481,6 +503,42 @@ in fi ''; + # pstack skills adopted from https://github.com/cursor/plugins at commit + # 6b0300214a09fd6029cfb7077043125758cd1fd2 (folder pstack/skills), pinned via + # the fetchFromGitHub above. The record of why these eleven skills exist is + # firstmate's 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. + # `tdd` is skipped on purpose: the captain's own tdd skill owns that name. + # Each run replaces only the eleven target directories; every other skill, + # including the captain's own, stays untouched. No `exit 0` here: activation + # blocks are inlined into one flat script, so an early exit would skip the + # blocks that follow. + home.activation.pstackSkills = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + set -euo pipefail + src="${pstackSkills}/pstack/skills" + dest="$HOME/.agents/skills" + if [ ! -d "$src" ]; then + echo "pstackSkills: pinned source tree missing at $src" >&2 + exit 1 + fi + mkdir -p "$dest" + for name in ${lib.concatStringsSep " " pstackSkillNames}; do + if [ ! -d "$src/$name" ]; then + echo "pstackSkills: pinned source is missing skill $name" >&2 + exit 1 + fi + # Remove first so a renamed source file never lingers in the old copy. + rm -rf "$dest/$name" + if ! cp -R "$src/$name" "$dest/$name"; then + echo "pstackSkills: failed to install $name" >&2 + exit 1 + fi + # Store files are read-only; make the installed copy writable again. + chmod -R u+w "$dest/$name" + done + echo "pstackSkills: installed ${toString (lib.length pstackSkillNames)} pinned skills into $dest" + ''; + # OpenSuperWhisper - local voice-first prompting (cask in configuration.nix). # The app reads its model from its own Application Support directory, so the # 1.6 GB Whisper model is downloaded here once and kept outside the Nix store. -- 2.54.0 From 1fb1a23eea67af338777e3975dfa899a779424c5 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 7 Nov 2026 18:00:40 -0500 Subject: [PATCH 2/4] no-mistakes(document): Document pinned pstack skill install --- home.nix | 9 ++++----- readme.md | 8 ++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/home.nix b/home.nix index 091a691..2d8c882 100644 --- a/home.nix +++ b/home.nix @@ -503,11 +503,10 @@ in fi ''; - # pstack skills adopted from https://github.com/cursor/plugins at commit - # 6b0300214a09fd6029cfb7077043125758cd1fd2 (folder pstack/skills), pinned via - # the fetchFromGitHub above. The record of why these eleven skills exist is - # firstmate's 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. + # pstack skills installed from the pinned `pstackSkills` source above (folder + # 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 + # 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. # Each run replaces only the eleven target directories; every other skill, # including the captain's own, stays untouched. No `exit 0` here: activation diff --git a/readme.md b/readme.md index 9840ada..06c332f 100644 --- a/readme.md +++ b/readme.md @@ -82,6 +82,14 @@ Container controls: Use dummy data only. The exclusions cover common secrets and the top-level `data` directory, not every possible secret path. Review the copied tree, or add `--exclude` patterns, before you run a target that reads credentials from unexpected places. Audit findings do not belong in this repo or in the run directory. +## pstack skills (pinned on every rebuild) + +`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. + +Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo. + ## 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. -- 2.54.0 From a58546900fe3d0dc2aedb32b56547145d1d71a3e Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 7 Nov 2026 18:03:15 -0500 Subject: [PATCH 3/4] docs(pstack): use neutral third-person wording Describe the existing tdd skill and the skill tree without second-person address or a firstmate role name. --- home.nix | 11 ++++++----- readme.md | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/home.nix b/home.nix index 2d8c882..cf4878f 100644 --- a/home.nix +++ b/home.nix @@ -12,7 +12,7 @@ let install -Dm755 ${./home/bin/yt-transcribe} $out/bin/yt-transcribe ''; # 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. pstackSkillNames = [ "statechart" @@ -507,11 +507,12 @@ in # 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 # 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, - # including the captain's own, stays untouched. No `exit 0` here: activation - # blocks are inlined into one flat script, so an early exit would skip the - # blocks that follow. + # including an existing tdd skill, stays untouched. No `exit 0` here, + # because activation blocks are inlined into one flat script, so an early + # exit would skip the blocks that follow. home.activation.pstackSkills = lib.hm.dag.entryAfter [ "writeBoundary" ] '' set -euo pipefail src="${pstackSkills}/pstack/skills" diff --git a/readme.md b/readme.md index 06c332f..3978466 100644 --- a/readme.md +++ b/readme.md @@ -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`. -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. -- 2.54.0 From 550c94d58a65c96cc0cdf98523cf077419ef6ce2 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sat, 7 Nov 2026 18:11:37 -0500 Subject: [PATCH 4/4] no-mistakes(document): Correct pinned pstack commit record claim --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3978466..f45f0c6 100644 --- a/readme.md +++ b/readme.md @@ -84,7 +84,7 @@ Use dummy data only. The exclusions cover common secrets and the top-level `data ## pstack skills (pinned on every rebuild) -`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 in this repo: 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 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. -- 2.54.0