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
Owner

Summary

Adds home.activation.pstackSkills, which installs the eleven adopted pstack skills into ~/.agents/skills from a pinned fetchFromGitHub of cursor/plugins at commit 6b0300214a09fd6029cfb7077043125758cd1fd2 (folder pstack/skills).

  • Each run removes and recopies only the eleven target directories, so a renamed upstream file never lingers and every other skill stays untouched.
  • pstack's tdd copy is skipped because the captain's own tdd skill owns that name.
  • The block stops the rebuild with a clear stderr message and non-zero exit if the source tree or a copy fails.
  • Why these eleven skills exist is recorded in firstmate's docs/adopted-skills.md; the pin is the reproducibility record in this repo.

Verification

1. Configuration evaluates and builds

$ nix build .#darwinConfigurations.lt-mbp.system --no-link
$ echo $?
0

The darwin system built without switching (no rebuild.sh, no darwin-rebuild switch).

2. Activation body works against a scratch home

The block body was extracted with nix eval --raw .#darwinConfigurations.lt-mbp.config.home-manager.users.laptran.home.activation.pstackSkills.data, then run with HOME pointed at a fresh temp directory that already held an unrelated skill:

scratch="$(mktemp -d)"
mkdir -p "$scratch/.agents/skills/captain-own"
printf 'captain own tdd\n' > "$scratch/.agents/skills/captain-own/SKILL.md"
mkdir -p "$scratch/.agents/skills/statechart"
printf 'stale\n' > "$scratch/.agents/skills/statechart/stale.md"
HOME="$scratch" sh body.sh

Output:

pstackSkills: installed 11 pinned skills into <scratch>/.agents/skills
installed dirs: architect benchmark-checklist blast-radius captain-own correct create-verification-skill ketchup maintain-verification-skill recall statechart technical-writing unslop
tdd present? no
captain-own content: captain own tdd
stale file in statechart: removed
SKILL.md count: 12 (eleven installed + captain-own)

Each installed tree was also compared to the pinned source with diff -r, with no differences.

## Summary Adds `home.activation.pstackSkills`, which installs the eleven adopted pstack skills into `~/.agents/skills` from a pinned `fetchFromGitHub` of `cursor/plugins` at commit `6b0300214a09fd6029cfb7077043125758cd1fd2` (folder `pstack/skills`). - Each run removes and recopies only the eleven target directories, so a renamed upstream file never lingers and every other skill stays untouched. - pstack's `tdd` copy is skipped because the captain's own `tdd` skill owns that name. - The block stops the rebuild with a clear stderr message and non-zero exit if the source tree or a copy fails. - Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`; the pin is the reproducibility record in this repo. ## Verification ### 1. Configuration evaluates and builds ``` $ nix build .#darwinConfigurations.lt-mbp.system --no-link $ echo $? 0 ``` The darwin system built without switching (no `rebuild.sh`, no `darwin-rebuild switch`). ### 2. Activation body works against a scratch home The block body was extracted with `nix eval --raw .#darwinConfigurations.lt-mbp.config.home-manager.users.laptran.home.activation.pstackSkills.data`, then run with `HOME` pointed at a fresh temp directory that already held an unrelated skill: ``` scratch="$(mktemp -d)" mkdir -p "$scratch/.agents/skills/captain-own" printf 'captain own tdd\n' > "$scratch/.agents/skills/captain-own/SKILL.md" mkdir -p "$scratch/.agents/skills/statechart" printf 'stale\n' > "$scratch/.agents/skills/statechart/stale.md" HOME="$scratch" sh body.sh ``` Output: ``` pstackSkills: installed 11 pinned skills into <scratch>/.agents/skills installed dirs: architect benchmark-checklist blast-radius captain-own correct create-verification-skill ketchup maintain-verification-skill recall statechart technical-writing unslop tdd present? no captain-own content: captain own tdd stale file in statechart: removed SKILL.md count: 12 (eleven installed + captain-own) ``` Each installed tree was also compared to the pinned source with `diff -r`, with no differences.
hermes added 2 commits 2026-11-07 18:01:05 -05:00
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.
hermes added 2 commits 2026-11-07 18:11:41 -05:00
Describe the existing tdd skill and the skill tree without
second-person address or a firstmate role name.
hermes merged commit 766b2bbaeb into main 2026-11-07 18:12:47 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: transnet/dotfiles#14