/jstack:train-compound [optional: branches/worktrees already ready]from jstack
Use when the owner types /train-compound or wants many ready branches accumulated into ONE release to {{INTEGRATION_BRANCH}} instead of shipping train by train. Builds a compound integration branch on a fresh {{INTEGRATION_BRANCH}}, boards every READY branch into it with a typecheck and a deploy check after each, keeps the individual PRs complete, and opens one PR to {{INTEGRATION_BRANCH}} that merges only when the owner says to release it.
Ships in jstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A compound train is the /train system with one difference: nothing reaches {{INTEGRATION_BRANCH}} until the owner releases it. Every ready branch is merged into one integration branch that always shows "what {{INTEGRATION_BRANCH}} would be", and each boarding proves that this branch still deploys.
Read the train skill first. Its rules all apply here: READY lines, the heavy slot, the typecheck lane, conflict handling, running CI's checks locally when Actions can't run, never -X ours or -X theirs. Two of its sections matter even more here, because a compound lives for days:
mem_map every round and before every build (the machine-memory skill), one sampler for the whole compound; perf.mjs ensure at the start and perf.mjs optimizer due every round (spawn one background optimizer agent when it says so).If this file still has unfilled placeholders (names in double curly braces), fill them the way the train skill says.
train/compound-<yyyy-mm-dd> from a fresh origin/{{INTEGRATION_BRANCH}} in its own worktree (bash {{JSTACK_TOOLS}}/new-worktree.sh train/compound-<date> --install). Check it is a real worktree ([ -f .git ]) with fresh build and codegen output.{{QUEUE_FILE}} with mode: compound, the branch, and an empty boarded list.Done when: the branch exists and the queue file names it.
For every READY (typecheck green at its head):
tc_run "{{TYPECHECK_CMD}}"), then CI's own suites locally for what the branch touches.gh api repos/<owner>/<repo>/commits/<sha>/statuses, never a polling loop). If no preview exists, run one capped local build (heavy_capped) inside the heavy slot.{{PR_TEMPLATE}} body, How to test with the proofs), but merge it only into the compound branch.origin/{{INTEGRATION_BRANCH}} moves (a hotfix, say), merge it into the compound and prove it again.Done when: every READY is either boarded with a green typecheck and preview, or bounced with its reason.
train/compound-… into {{INTEGRATION_BRANCH}}, whose body lists every boarded branch, the migrations, env vars and flags, and how to roll back./train path; merge them back into the compound afterwards.origin/{{INTEGRATION_BRANCH}} one last time, typecheck, preview green, merge, confirm the deploy is Ready and every migration applied, and report one line per boarded branch.train section 6b) for everything the compound boarded.Done when: {{INTEGRATION_BRANCH}} is Ready on the compound's merge commit, the queue file is reset, and the sweep has reported.
train skill's flake rule).react-konva. Typecheck, 188 touched tests and CI's full unit suites were all green, and the integration deploy still died: during SSR react-konva resolved konva's node entry, which require("canvas")s an optional native package that isn't installed. Only a bundler sees that. Any board that changes package.json or bun.lock gets one capped build or a preview before the compound merges, even when the integration deploy is the usual build proof. The migrations had already applied by the time the build broke, which was harmless only because they were additive.JSTACK_HEAVY_MIN_AVAIL_GB free (12 GB by default). After a few days of installs, antivirus scans and worktree deletions, the system file cache sat resident at 16.8 GB and the build waited on RAM that no process was holding. Run mem_map before the release build; if the cache line is the big one, empty it (the machine-memory skill, step 3b, with the owner there for the UAC prompt) and then build. On a 32 GB laptop, half the RAM quietly filled with files nobody had opened in hours. Classic.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jayjayholic/jstack --plugin jstack31 skills in this plugin
/domain-modelingBuild and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR./eng-agent-disciplineUse for every coding-agent task, and when writing briefs, reports, READY messages, docs or handoffs. Quote the ask, stay in owned files, cite sources for claims, verify yourself before claiming done, report with evidence./eng-ci-gitUse when a change touches CI, build, typecheck, merges and rebases, branches and worktrees, release trains, exported signatures or renames. Gate the merged tree, find every caller, resolve conflicts by reading them.