setup-pstack
Set this machine up for jstack, or check it again - run the checkout's own `install.sh --setup`, or a release's `jinstall --setup`, which walks every need once, writes the configs that are not there and links the units, then the doctor, and report what was done, what was already there and the one command for each thing only the user can do. Use for /setup-pstack.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- card
- Run the pipeline | 9 | Sets this machine up for jstack in one pass, through `install.sh --setup` or a release's `jinstall --setup`: the configs it lacks, the links, the commands and the units, and the one command for each thing only you can do. | Reach for it on a new machine, or to check one again. | op: the operator
- name
- setup-pstack
- description
- Set this machine up for jstack, or check it again - run the checkout's own `install.sh --setup`, or a release's `jinstall --setup`, which walks every need once, writes the configs that are not there and links the units, then the doctor, and report what was done, what was already there and the one command for each thing only the user can do. Use for /setup-pstack.
- disable-model-invocation
- true
03 SKILL.md 正文
setup-pstack
/setup-pstack sets this machine up for jstack, or checks it again, from any thread. It is typed, never loaded by itself. The name is pstack's, and the work is jstack's: pstack's skill of this name writes a Cursor rule of models and budgets, and here the role map is ~/.config/jstack/roles, written with every role inherit, so no role runs above medium effort.
The skill does no step of its own.
install.sh --setup in the checkout this skill is linked from, or jinstall --setup where the skill comes from a release, which has no checkout, holds the one list of what a machine needs, the same list the doctor reads, and does each step once: it says already for what is there, writes each config that is not there and never one that is, links the skills, hooks, commands and units, and names the one command for each thing only the user can do.
A second run writes nothing, so this skill can be typed again at any time.
This thread changes nothing else. It writes no config by hand, runs none of the commands it reports, starts no thread and asks for no secret: a sign-in and a key stay the user's.
1. Run the setup and the doctor
Run this:
if [ -n "${ZSH_VERSION:-}" ]; then emulate sh; fi
C=
for root in "$HOME/.claude/skills" "$HOME/.agents/skills"; do
S=$(realpath "$root/setup-pstack" 2> /dev/null) || continue
S=${S%/skills/setup-pstack}
S=$(realpath "$S/source" 2> /dev/null || echo "$S")
if [ -f "$S/install.sh" ]; then
C=$S
break
fi
done
if [ -n "$C" ]; then
echo "checkout: $C"
set -- sh "$C/install.sh"
elif J=$(command -v jinstall); then
echo "release: $J"
set -- "$J"
else
echo "not set up: no ~/.claude/skills/setup-pstack or ~/.agents/skills/setup-pstack links into a jstack checkout, and no jinstall is on PATH. Nothing is done."
echo "needs you: curl -fsSL https://raw.githubusercontent.com/JoshuaHayesWasHere/jstack/main/install.sh | sh"
fi
if [ "$#" -gt 0 ]; then
said=$("$@" --setup 2>&1)
code=$?
printf '%s\n' "$said"
printf '%s\n' "$said" | awk -v code="$code" '
$(1) == "done" {done++}
$(1) == "already" {already++}
$(1) == "needs" && $(2) == "you" {you++}
$(1) == "missing" && $(2) == "optional" {optional++}
END {printf "setup: %d done, %d already, %d needs you, %d optional left, exit %d\n", done, already, you, optional, code}'
doctor=$("$@" --doctor 2>&1)
printf '%s\n' "$doctor" | tail -n 1
fi
It prints the checkout, or release: <path> with the jinstall it runs when the skill comes from a release, then every line of the setup, a count, and the doctor's last line.
The setup's lines are:
done <name>: this run wrote it. The skill links of each harness are one line,done skills <harness>: <n> linksoralready skills <harness>: <n> links.already <name>: it was there.needs you <name> -> <command>: only the user can do it, with the one command that does.setup: <n> needs you: <name> -> <command>; ...: the last line, when a step is left, naming eachneeds youline again.missing optional <name> -> <command>: a layer the user has not set up, such as the relay or the backup, with the command that sets it up, and the machine runs without it.install.sh: <checkout> is a linked worktree, and HOME is your own: set up from the main checkout: nothing was written. The skill is linked from a worktree, which the setup refuses under the account's own HOME.
On not set up, the machine has no jstack yet: the skill is linked by the setup itself, so the first run is the user's, by hand, with the release's install line it prints.
2. Report
Tell the user, in at most eight lines:
- The count line, as printed.
- Each
needs youline, as printed, the command after->in backticks. Hard needs first: the setup exits 1 while one is left. Amissing optionalline is a layer left off: name it in one line, with no call to act. - The doctor's last line,
doctor: okordoctor: not ok, <n> hard. - When a
needs youline was left: run each command, then type/setup-pstackagain.
Do not list the done and already lines one by one: the count says them.
Where the user asks what a line means, features/jinstall/docs/troubleshooting/setup.md in the checkout, or in the release's source, has each one.
04 同仓库更多 Skills
no-key
A skill its skills.json lists as hidden that a model may still call by itself, kept broken so the lint is seen to catch it.
fake-skill
A FAKE skill in a FAKE tree, named for its folder until the test renames the folder.
extra-key
A skill its skills.json does not list as hidden that a model still cannot call, kept broken so the lint is seen to catch it.
unslop
Cut AI tells from writing. Use when the user says text reads like AI, asks to unslop it, or before prose ships to people.
technical-writing
Write or review docs, READMEs, RFCs, PR descriptions and commit messages to a layered standard: Diataxis structure, Google developer style, STE rules and Global English.
why
Find why code is the way it is, from its history and every evidence source this session can query, with citations. Use for 'why does X work this way', 'why did we pick Y', regressions and postmortems. Use how for runtime behavior.