/jstack:train [optional: branches/worktrees already ready]from jstack
Use when the owner types /train, or when two or more branches from parallel AI coding agents (each in its own git worktree) must reach {{INTEGRATION_BRANCH}}: batch them into a merge train instead of one PR per branch. One orchestrator merges every ready branch onto a fresh {{INTEGRATION_BRANCH}}, runs one typecheck and one build, opens one PR, merges only on green checks and waits for the deploy. Also for builds or typechecks that run out of RAM or crash the machine when several agents build at once (machine-wide heavy-job lock, server_wait). Says when NOT to use a train (a single branch ships as its own PR).
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.
Read when SKILL.md points to them.
"The owner" below is the human running the agents.
A train carries every ready branch to {{INTEGRATION_BRANCH}} in one go: merged together on a fresh origin/{{INTEGRATION_BRANCH}}, checked by one typecheck and one build, shipped as one PR. A laptop fits maybe two big builds in RAM; one build can check any number of branches. That is the point.
Settings (paths, commands, branch) live in the jstack config the scripts read (~/.jstack/config.sh, see ADAPT.md). The scripts are in {{JSTACK_TOOLS}}. If this file still has unfilled placeholders (names in double curly braces, for example when installed as a plugin), read ~/.jstack/config.sh and use the matching JSTACK_* value; without a config, the tools folder is ${CLAUDE_PLUGIN_ROOT}/tools and the rest come from the table in ADAPT.md, asking the owner for anything unknown.
{{INTEGRATION_BRANCH}} with {{PR_TEMPLATE}}, waits for CI, merges, confirms the deploy is Ready. If the integration branch deploys with a real build, that deploy is the build check; if nothing deploys, run one capped build (heavy_capped) before the push. The push needs the owner's yes unless the owner already authorised that ship in this conversation.Done when: you have said which path in one line.
Launch ONE background agent with the brief in orchestrator-brief.md, on a strong model. Keep its agent id: every other agent needs it, because subagents cannot list agents and cannot find the orchestrator by name.
The orchestrator ends when its queue empties. When a new branch is ready and the orchestrator has ended, launch a fresh one; never let worker agents push "just this once" instead.
At most two trains exist at once: one in CI or merging, and ONE boarding. Every READY boards that one train until it leaves. The two are pipelined: the boarding train is merged and typechecked while the other is in CI, and it leaves the moment that one merges. Boarding is continuous: each READY merges in and gets an incremental typecheck right away (train.sh board <wt>@<sha>). The orchestrator keeps its queue in {{QUEUE_FILE}} (format in the /train-queue skill), so anyone can ask /train-queue where things are without poking the orchestrator.
Before launching it, make sure the machine's performance warden is running (idempotent, prints one line; the machine-memory skill, PERF.md): node {{JSTACK_TOOLS}}/perf/perf.mjs ensure.
Done when: the orchestrator is running, you hold its id, and perf.mjs ensure said the collector and warden are running.
Each worker gets its own worktree (bash {{JSTACK_TOOLS}}/new-worktree.sh <branch> --install). Paste the block in worker-clause.md into every coding agent's prompt, with the orchestrator id filled in. It carries the build rules (the most expensive mistake in this process) and the READY message format.
For an agent already running when the train starts, send it the same clause with SendMessage.
One agent per dependency chain, not per ticket. When tickets depend on each other (B needs A's code), give the whole chain to one agent: it builds them in order on one stacked branch and sends READY after each ticket. Independent chains run in parallel. One agent per ticket means agents waiting for each other's merges, or guessing at code that doesn't exist yet.
Gates first. Write down what "done" means for a ticket (tests, screenshots, audits, numbers) before any agent starts. A gate added halfway forces rework on everything already READY.
Pre-flight and /unslop, scaled to the task. The clause makes every worker class its task before the first edit: a hotfix or quick fix writes one line and moves on, an ambiguous task writes four lines, a feature, refactor, migration, auth, money or model-call change runs /preflight and, before READY, /unslop --fix on its diff. The jstack hook reminds the agent on its first edit, so nobody has to remember. Pre-flight turns "what does done mean" into runnable checks in .agent/brief.md; /unslop reports only findings a second agent reproduced, so the orchestrator gets evidence, not opinions.
Done when: no worker prompt says "run the full build", "push" or "merge", and every ticket has its gates written down.
User-facing design (new screens, cards, copy): the worker stops after screenshots; you show them to the owner; only after the owner's OK do you tell the orchestrator GO <name> and the worker sends READY.
Back-end fixes, tests, docs the owner asked for: READY goes straight to the orchestrator.
Production, infrastructure, DNS, cloud env vars, anything outside the repo: never inside a train. It is the owner's call, asked separately.
The owner's OK is final: when the owner approves after seeing the screenshots, that branch boards the next train. Don't ask again, don't re-send the sheets, don't hold it for another look.
Done when: every READY branch is either approved or not user-facing.
At most {{AGENT_CAP}} agents run at once, orchestrator included. Pick the cap by what agents hold, not by fear: agents that edit, test and typecheck in their own worktree are cheap; the heavy jobs (builds, full typechecks) are what crash machines, and those already wait for the one slot. When RAM runs out, fix the heavy job, keep the agents. New work beyond that goes to the backlog file {{BACKLOG_FILE}} (ready / running / waits for the owner); whenever a slot frees, the main session launches the top ready item with the worker clause and moves it to running.
When the owner says they are going away and pre-approves some UI work: tell the orchestrator which user-facing branches are GO on READY, tell each UI worker to send READY after its screenshots, and ship to {{INTEGRATION_BRANCH}} only. Answer open questions from what the owner already decided in this session or wrote down; what that doesn't settle waits for the morning. Run a periodic watch (for example /loop 15m): are agents and the orchestrator alive, anything stuck, questions to settle. Leave a morning summary: what is live, screenshots to validate, what waits for the owner.
{{DEPLOY_CHECK}}.Done when: every merged train has been reported as live, and its post-deploy steps are run or explicitly pending.
While agents run, the main session keeps a periodic watch (for example /loop 15m). Each round:
Memory map. Run mem_map (the machine-memory skill) every round and before every build, and keep one sampler running for the whole train (mem_map -Watch -Every 30). At 80% used or more, find the agent and the pattern behind it and tell the human, before it gets to 5%.
Free RAM. Below 5% free, kill the heaviest process tree yourself (usually a build and its workers) and tell its agent. Never kill the agent CLI itself: it is often a node process too, and killing it kills every agent at once. On Windows node-memory-watch.ps1 does the same thing as a seatbelt, with the CLI protected.
Build workers. Count the build's worker processes. A build with a pile of workers is the RAM problem, not the number of agents.
Silent agents. An agent running over 60 minutes without a report is a suspect: check what it is doing (its last notification, the slot owner, its worktree), then nudge it or stop it.
Orphans. A server, browser or script whose agent has ended is an orphan; kill it. Otherwise its port stays busy and its RAM stays gone. Agents that end don't clean up after themselves as often as you'd hope.
Count only running agents. Waiting or idle agents are parked and hold almost nothing; counting them against the cap starves the queue for no reason.
The slot. {{LOCK_DIR}}/owner says who holds it and since when. Anything holding it that is not a build or a typecheck gets told to let go.
The optimizer, in the background. node {{JSTACK_TOOLS}}/perf/perf.mjs optimizer due exits 0 when the warden left a trigger (low RAM, a hung test, a new top consumer, a new heavy process, load above the floor) or 30 minutes passed. Then launch ONE background agent, on a cheap model, with the prompt in PERF.md section 7, and don't wait for it. due says no while one is running, so there is never a second. Nothing it does goes to the human, except a proposal that needs their decision: one line in your round summary. It never holds the heavy slot and never builds.
Freeze the rules while you measure. Change one rule, then hold still long enough to see whether it helped (section 7). Five rule changes in one night means nobody can say which one worked.
Commit as you go. Crashes and rate limits hit everyone at once; whatever wasn't committed is gone.
Done when: each round ends with RAM above 5% free, no orphans, and every silent agent checked.
The train owns worktree hygiene.
One sweep owner at a time. Exactly one agent (or script) removes worktrees at any moment, and it holds a lock file while it does (clean-worktrees.sh takes ${JSTACK_LOCK_DIR}-sweep; a hand-run sweep takes the same lock). A second sweep that finds the lock held waits or stops; it never runs beside the first.
Never remove a worktree that has untracked files outside build and scratch output (artifacts/, .next/, node_modules/, .generated/, logs), or that had any file modified in the last 2 hours. List it with the reason instead. Somebody is probably still working there.
Remove in small batches (about 20 at a time) and check memory between batches: deleting worktrees refills the system file cache (the machine-memory skill, step 3b). Remove each one with node {{JSTACK_TOOLS}}/worktree-deps.mjs remove <path> (what clean-worktrees.sh runs): a bare git worktree remove or robocopy /MIR follows the junctions of a linked worktree and deletes the shared dependency stores (step 3c).
Right after a train merges: remove every boarded branch's worktree that is clean and merged into {{INTEGRATION_BRANCH}} ({{JSTACK_TOOLS}}/clean-worktrees.sh --dry-run first). The branches stay as backup.
After each release, dispatch a leftovers sweep: one agent per area, or per few worktrees, each told which worktrees and agents belonged to that train. A sweep agent removes only what is provably done and lists the rest for the human:
mem_map) and no slot owner @ its path. List the rest with the reason.tail -f and grep started by the train's agents. Run mem_map -Kill orphans, then terminate whatever still runs under a removed worktree.docker ps -a --filter status=exited): list them. Test databases stay..next copies): remove what this train made and nothing uses; list the rest.{{LOCK_DIR}}, its -tc-N lanes): clear one only when its owner's directory has no live process.Done when: the sweep report says, for each item, removed (what) or listed (why).
bash {{JSTACK_TOOLS}}/ready-gate.sh <worktree> --base origin/{{INTEGRATION_BRANCH}}. It checks: the tree is committed, a green typecheck on that exact commit (through tc_run, cached per SHA), the unit tests next to the touched files, prettier on the touched files, the brief checklist in <worktree>/.agent/brief.md fully ticked, the pre-flight file with its tier's sections (JSTACK_READY_PREFLIGHT, warn by default), the unslop gate on the added lines (JSTACK_READY_UNSLOP, warn by default; it blocks only on rules that earned it in this project) and, in repos with project memory (.jstack/memory, or the shared folder JSTACK_MEMORY_DIR points at), memory anchors the branch moved (JSTACK_READY_MEMORY). Exit 0 boards. Exit 1 means don't board: send the FAIL lines back to the worker. Workers run the same gate before READY, so the orchestrator's typecheck comes back from the cache in a second. A READY whose gate is red doesn't board, however sure the worker sounds..agent/brief.md as - [ ] lines (the file is ignored by git), and to tick each one with its evidence as it goes. An item not done is an unticked line, and the gate refuses it. A hook can't tell whether an item is really done, so the gate checks the file and the orchestrator checks the evidence.~/.jstack/guards.json names the project): bare tsc, next build, typecheck, build and installs are denied unless they run through the lock, recursive grep/find/du over the repo root, the worktrees folder or node_modules is denied, and when a subagent stops, the servers, loops and tail -f it left in its worktree get killed. Each denial tells the agent the exact retry.node {{JSTACK_TOOLS}}/hook-report.mjs --days 1 (jstack hook-report). It shows blocks per day, agents blocked twice or more, and the calls that ignored the advice. An agent blocked over and over is struggling: nudge it or read its brief again. Tell the owner in one line whether the guards are costing agent quality (repeats and ignored advice going up) or not.Done when: no branch boarded without a green gate, and today's hook report was read and summed up for the owner.
A release (integration branch to production, say) can freeze {{INTEGRATION_BRANCH}}: a maintenance switch is on, the integration database role is read-only, scheduled jobs are paused. While it is frozen, ANY merge to {{INTEGRATION_BRANCH}} is a deploy, and a deploy usually migrates and re-registers schedules, which un-pauses exactly what the release paused.
{{INTEGRATION_BRANCH}} (train PR, single-branch PR, compound release, a hand merge), run the project's freeze check. train.sh runs JSTACK_FREEZE_CHECK right before gh pr merge: exit 0 = open, any other exit = frozen, its output is the reason. A check that can't run counts as frozen (fail closed).held: frozen (<reason>) in the queue file, tell the main session once, keep boarding, and re-check about every 15 minutes. Merge when the check says open AND the checks are still green.origin/{{INTEGRATION_BRANCH}} (git show origin/<branch>:<path> | grep ...); a read-only default on the integration database role (select rolconfig from pg_roles where rolname = '<role>' shows default_transaction_read_only=on); a release record whose last freeze has no later unfreeze; paused schedules on the scheduler. Write the chosen markers into the repo's specifics section so every orchestrator checks the same ones. No markers at all? Leave JSTACK_FREEZE_CHECK empty and the gate is off.Done when: no merge reached {{INTEGRATION_BRANCH}} while a freeze marker was on.
Two formulas tell you where the time goes. Track the inputs hourly (from gh pr list, the queue file and the agent list), not from memory.
Done when: you can say λ, W, L and p for the last few hours, and which rule change moved which of them.
Tools behind the orchestrator: {{JSTACK_TOOLS}}/train.sh (build <wt...>, shiptrain), {{JSTACK_TOOLS}}/coordinator-build.sh (waits for {{MIN_FREE_GB}} GB free, one build at a time).
Development is local, in local worktrees. A branch is committed and pushed only when it is READY for tests. The cloud then runs the heavy jobs on that READY branch: browser work (Playwright, screenshots, UI checks) and memory-heavy work (build, typecheck, CI, full test suites). Once it is tested there, it merges through the normal local train. No development in the cloud, no cloud train session, no automatic resume. A build that must run locally takes the heavy lock with a capped heap (NODE_OPTIONS=--max-old-space-size=<MB>).
claude --cloud needs a TTY and refuses --print) with the checks to run. It publishes its status (running|waiting|ready|failed, sha) somewhere you poll; GitHub carries only what the team needs: the train:ready label, a READY: <branch> @ <sha> line and PR screenshots on a dedicated branch.Every new lesson also goes into the project's memory, so the next pre-flight reads it: node {{JSTACK_TOOLS}}/memory/memory.mjs add --kind failure --title "<symptom>" --domain <pack> --anchor <path#symbol> --body "<root cause and the rule>". When a check or a question would have caught it earlier, /unslop learn drafts it.
These come from the author's setup (Bun, Next.js with Turbopack, Windows, 32 GB, 2026-10-20 to 22). The numbers are his; the rules carry over.
{{INTEGRATION_BRANCH}} and rebuilds from scratch.{{INTEGRATION_BRANCH}} does not block a train; the orchestrator says so in the PR and someone fixes it.{{UNION_FILES}}) keep both sides (git merge-file --union); any other conflict is resolved file by file, never with -X ours or -X theirs.git stash pop in one worktree landed another agent's changes in it. Workers use WIP commits, never bare stash/pop..git/config after [core] (git refused every command). Fix: keep [core], re-add [remote "origin"] (URL from .git/FETCH_HEAD), restore tracking for every local branch that exists on origin, git fsck. Then resume every agent with "check your worktree first" (status, fsck, stale build output).NODE_OPTIONS doesn't cap Turbopack) plus typechecks crashed the PC twice. Now the train and every agent share ONE slot ({{LOCK_DIR}}).gh pr checks reporting no failure; re-run a flaky job and confirm green before merging, never after. train.sh does this. It happened again with a hand-written merge step (2026-11-04): the step printed the failed check, then merged anyway because nothing made the failure stop it, and the integration branch went red. Any merge step, scripted or typed, reads the full check list first and exits on a single failure ([ -z "$(gh pr checks <n> | grep -w fail)" ] && gh pr merge ...); waiting for the one check you expected to be slow isn't enough.vercel ls in a loop; the process grew to 4 GB next to a train build. Poll with gh api repos/<owner>/<repo>/deployments?ref={{INTEGRATION_BRANCH}} or a curl -sI of the deployed URL, every ~10 min, never as a long-lived child.vercel ls) for a deploy created after your merge, then stop. One look, not a loop: the last CLI poll loop grew to 4 GB, and the 32 GB laptop noticed.git archive origin/<branch> | tar -x -C <scratch>vercel link --yes inside <scratch>.env.local that link pulls down; never upload it, never keep itvercel deploy --target <env>; the env's domain gets aliased to the new deploy<scratch> afterwardsjq -r .content | base64 -d choked on the \r\n in the API's base64, and the commit went through with a silently truncated file. No error, just a shorter file. Build the new content from git show origin/<branch>:<path>, base64 it from a file (not a pipe of the API's string), and always diff the branch against its base before merging.{{TYPECHECK_CMD}}, and the unit suites under heavy_capped. All green: merge with gh pr merge --admin and paste the local results into the PR body. The deploy still comes from the host's own GitHub app, so confirm Ready from the commit statuses. Jobs that only run in Actions (a deploy workflow, say) wait until billing is back. Don't build a self-hosted CI runner just for this; the plain commands are enough, and the 32 GB laptop already has a day job. Side finding: self-hosted runners that already exist keep running jobs while billing is blocked.{{LOCK_DIR}} is held, nobody keeps a server running; start it after the slot is released.tsc in one train worktree while another train built under the slot, and RAM fell to 1.3 GB free. A full typecheck takes the same slot as a build, never beside one.git push took the slot like a build. Better fix: delete a pre-push hook that only repeats what CI already runs. Then a push is light again; train.sh only takes the slot for a push while a pre-push hook exists.heavy-lock.sh treated a slot older than 15 min as abandoned and deleted it, but a train build can run longer, so a second build could start beside it. The stale check also crashed when another holder released the slot mid-check. Now: stale only after JSTACK_STALE_MINUTES (45 by default), and a missing owner file means "not stale". Keep the timeout above your longest build.server_wait {{MIN_FREE_GB}} (from heavy-lock.sh): it waits until no build holds the slot and {{MIN_FREE_GB}} GB of RAM is free.next build spawned about 19 worker processes at 0.75 GB each (about 14 GB) and free RAM hit 2% with only that build in the slot. Next.js defaults its build workers to CPU count minus 1, and reads the count from CIRCLE_NODE_TOTAL when set, so CIRCLE_NODE_TOTAL=5 gives 4 workers (check cpus: in node_modules/next/dist/server/config-shared.js for your version). Whatever your build tool is, cap its workers (JSTACK_BUILD_ENV) and check in its source that the cap really limits the count.NODE_OPTIONS caps one heap, not a tree of workers, and Turbopack ignores it anyway. heavy_capped "<cmd>" runs the command with a ceiling on the WHOLE process tree (JSTACK_CAP_GB, default 12): a Windows Job Object through run-capped.ps1, or systemd-run --user --scope -p MemoryMax on Linux (untested). Past the ceiling the build dies with an out-of-memory error instead of freezing the machine. The ceiling counts committed memory, so it reads higher than Task Manager: the author's build OOMed at 6 and 8 GB and lives happily at 12.server_wait and never hold the slot.{{GALLERY_CMD}}, no production build); live tests run on the integration deploy after the merge. The single exception is a pre-merge proof that must run the branch's own built code: one build, capped, inside the slot.tc_run, at most 2 parallel: a native tsc peaks around 5 GB, and 4 parallel lanes took the 32 GB laptop to 0.3 GB free). READY must say typecheck green at <sha>, and a head that moved past that sha doesn't board.JSTACK_TRAIN_BUILD=deploy). After each merge, the integration deploy is the build check. If it fails, reproduce it with ONE capped local build (JSTACK_TRAIN_BUILD=local train.sh typebuild), fix it, and ship the fix as the next train with that build green; other trains wait until the integration branch builds again. Only for repos whose integration branch really deploys with a build; without one, keep local.new-worktree.sh --install now links node_modules and generated code to shared stores (worktree-deps.mjs, 13-20 s, +27 MB) and installs a worktree its own only when its branch changed a library. Agents never run a plain install in a worktree; the guard hook denies it. A first try at cleanup with git worktree remove followed the junctions and emptied part of the store, so removal goes through worktree-deps.mjs remove and the hook denies the bare form.new-worktree.sh --install now copies the generated folders (JSTACK_CODEGEN_REUSE_PATHS) from a sibling whose codegen inputs (JSTACK_CODEGEN_INPUTS, git tree hashes) match exactly, and runs codegen only when none does..vercelignore and friends) use gitignore rules, so an unanchored docs/ stripped every docs folder in the tree, including src/**/docs, and the integration deploy failed while every local check was green. Anchor ignore paths to the root (/docs/). The deploy is the check for this whole class.JSTACK_CODEGEN_REQUIRED), checked again after the copy. With that, codegen per worktree went from 519 s to about zero.git config core.hooksPath and the shared .git/hooks/ of the main checkout (every worktree uses the common dir's hooks), remove the leftover there, and don't leave a modified or deleted hook file in the main checkout's working tree for the next agent to trip over.ready-gate.sh (section 6c), and the brief is a checklist the gate reads.keep-browser (1 hour).tc_run" sat in every brief and still got skipped 21 times. Bare typechecks at 5 to 8 GB each, grep -r over 185 worktrees, and servers left behind by finished agents kept the laptop at 0.2 to 3% free RAM. The jstack guard hooks deny the first two and clean up the third, and the hook report shows whether the denials cost agents anything.src/lib, and the other runner skipped them by design, so 393 test files elsewhere in src/ ran under no gate at all. Four had gone red unnoticed: tests stale after a refactor (a webhook that now queues a job, a test window missing a browser global, a history-length check that depends on test order) and one real copy regression a naming test had been guarding. The test gate must cover every test file of each runner: list the real files (git ls-files '*.test.*'), split them by the rule each runner uses to claim a file, and check that the gate's globs cover each list, with nothing left to neither runner. Do it once per gate, and again when a new test folder appears.xargs -P 4 and counted the result lines it got back. xargs stops launching jobs once a child exits 255 or dies by a signal (it also runs nothing on "environment is too large for exec") and says so only on stderr, so the gate printed PASS 899/899 while the list held 1165 files. Wrap each child so it always exits 0 or 1 and writes its own result line (a crash or a signal is that file's failure), then compare the result lines with the list and fail the gate naming every file with no result. Keep the list off the children's stdin: feed xargs with -a <file> and give each child </dev/null. A test runner that reads stdin can swallow the rest of the list and the run still ends with exit 0. GNU xargs already gives its children /dev/null, but a while read loop or a pipe into a custom runner does not.git add <dir> sweeps them into your fix. Commit train fixes in the train worktree and tell the agent.<format check> <files> && git commit, never ;. A union of two conflict blocks cut an interface in half (its closing brace was shared context), and only the parser noticed.train/<date>-<n>-wip when you bounce branches for conflicts, so their agents merge the exact base instead of guessing.heavy_capped) with peak memory logged. The author's peaked around 9.8 GB, above a standard 8 GB builder (and a fair chunk of the 32 GB laptop, which took it personally). The cause was the host's build machine size, which had silently dropped back to standard after the switch. Check it through the host's API, not the dashboard (on Vercel: GET /v9/projects/<name> and read resourceConfig.buildMachineType). You can set it back with a PATCH using the host CLI's own token, but it changes the bill, so only with the owner's explicit go.{{GALLERY_CMD}}) and test scripts. If something truly needs the running app, there is ONE shared server, started once and reused.{{INTEGRATION_BRANCH}} conflicted with another branch already boarded in the same train. Telling its agent to "merge {{INTEGRATION_BRANCH}}" fixes nothing. Bounce it with the train's WIP branch (train/<date>-<n>-wip) and have it merge that, so it resolves against its train mate..vercelignore) left out a folder of Markdown that the app reads at runtime (legal pages). Build green, deploy Ready, pages 500. After every deploy, smoke-test the URLs the train touched (one curl -sI each, expect 200), and when an ignore rule excludes a folder, re-include what the app reads at runtime (/docs/* plus !/docs/legal/).if fed by a changes job, not the workflow's paths: filter: a workflow skipped by paths never reports, so a required check from it stays pending forever.git status --short, git log -1): finished but uncommitted means a nudge ("commit, run the gate, send READY with the sha"), never a commit by you in their worktree.machine-memory skill's step 3b if the cache won't let go. The 32 GB laptop would like a word about the other 348.setup-ram-clean.ps1, one UAC click ever) that the guards, the builds, the installs and a watcher fire on their own (machine-memory step 3b). A watch tick that sees the cache resident runs it and reports the before/after line. And no eval or demo stack starts while a train build holds the slot.node_modules and generated code. An agent that needs its own (schema changed, dependency upgrade under test, a build that won't load the linked generated folder) runs worktree-deps.mjs own deps|generated; nobody writes per-thing rules forcing private copies. A Next.js build over shared dependencies needs a widened turbopack.root (machine-memory step 3c).--write, and three branches bounced from one train. Make the generator rebase-safe: rebuild only the rows owned by files the branch changed since git merge-base HEAD origin/{{INTEGRATION_BRANCH}} (committed, staged and untracked), copy every other row from the merge-base in place, and let a change to the generator's own rules own every row. Then gate it: the plain check compares the table with the merge-base and fails with rows dropped: <rows> — regenerate with <command> when rows of files the branch never touched went missing. Never resolve a conflict in such a table by taking one side.workflow_dispatch, integration environment only).--write, and it dropped a row the scan called stale, but code still looked that row up by its id at runtime. The integration branch's unit tests went red. A fixed list of "rows to restore after a regen" had covered two such ids and missed a third. After any regen of a generated table, collect every id the code references literally (git grep -ohE '<id pattern>' -- <source globs>), check each one is in the table, and restore any missing row from the integration branch. Then make it a test: one that scans the code for referenced ids and fails, naming the id and the file, when the table lacks one, so the regen can't drop a row silently again. Ids used only as fakes inside tests don't count.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.