/jstack:preflightfrom jstack
Use before the first edit of a feature, refactor, new flow, migration, auth, money or paid-model change (/preflight, a train worker's first step, or when the jstack hook finds no .agent/preflight.md). Class first: a hotfix or quick fix writes one line. Else quote the ask, tier the risk, load the packs, write budgets, runnable checks and a scope fence.
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.
Almost everything that had to be fixed later was something nobody asked before: no budget, no oracle, no state machine, no reference image, no erasure line, no commit point. Pre-flight writes down what must be true (budgets, acceptance checks, scope, verification plan) and never how to build it. You stay free to design inside a fence you can test against.
Output: <worktree>/.agent/preflight.md (untracked, from TEMPLATE.md) plus - [ ] lines appended to .agent/brief.md, which ready-gate.sh already refuses to pass while unticked. Time box: tier S about 3 minutes, M 15, L 45 plus whatever /grill-me and prototypes take.
Tools live in {{JSTACK_TOOLS}} (the jstack tools/ folder). If {{JSTACK_TOOLS}} is still a literal placeholder (installed as a plugin, not adapted), the folder is the tools/ next to this skill's skills/ folder; the jstack pre-flight hook prints its absolute path. Without a project memory (.jstack/ missing) everything still works; say "no project memory" in the file.
The jstack hook names the signals on the first edit (branch prefix, diff size so far, risk paths, the ask's words). You decide:
| class | when | .agent/preflight.md | after |
|---|---|---|---|
| quick | hotfix, quick fix, copy or style change, config value | one line: class: quick - <why> | nothing else; the READY gate's fast unslop scan is enough |
| light | ambiguous (the default) | four lines: class: light, ask: <quoted>, check: <command> -> pass when <threshold>, scope: <owned paths>; add domains: <a, b> when you know them | the hook shows those packs' MUST questions and red flags |
| full | feature, refactor, new flow, schema or migration, auth or permissions, money, paid model calls | steps 1-10 below (class: full or a tier: in the first line) | /unslop --base origin/{{INTEGRATION_BRANCH}} before READY |
Edits under migrations, auth, payments or model-call paths are full whatever the branch says; the hook says so once if a quick class reaches one, and once more if a quick diff grows past 8 files or 300 lines. Add branch: <name> when the folder may switch branches. Never block yourself on the class: write the line and keep going.
node {{JSTACK_TOOLS}}/unslop/classify.mjs --task "<ask>" --paths <planned files> prints the packs with reasons and a tier hint. Add or drop a domain with a reason. Load each chosen eng-<domain> skill.node {{JSTACK_TOOLS}}/memory/memory.mjs query --paths <planned files> --domains <list> returns decisions, budget reasons, open known slop and past failures anchored in or near those files, each with its anchor status. A STALE or DRIFTED entry is a question, not a fact: re-read the code before leaning on it. A decision entry is binding until the human changes it.memory.mjs budgets prints the project file merged over the pack defaults) plus new ones the task needs. A budget with no way to measure it is not a budget.
7b. Suggest tactics. For each chosen pack with a Tactics to suggest table, every row whose "when" matches the task becomes one line: suggest: <tactic> - <why it applies here> (<saving>; <source>), or skip <tactic id>: <reason>. Suggestions are not the implementation plan: each one still passes the pack's verify steps (a prompt reorder for cache gets the quality A/B before and after)..agent/brief.md as - [ ] lines. Tier L: suggest /grill-me before code, /prototype for UI, /wayfinder for multi-session work.Done when preflight.md has every section its tier needs, every budget has a method, every check is runnable, and brief.md has the lines.
.jstack/unslop.json (extraQuestions) counts like a pack question of its tier./unslop later confirms a slop that a question here should have caught, /unslop learn proposes that question. Every late fix becomes an early question.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.