/jstack:eng-agent-disciplinefrom jstack
Use 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.
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 coding agent is itself a source of slop: it answers a question by changing state, edits files it does not own, explains a library from memory, says "should work" instead of showing a run, and hands over without evidence. Quote the ask verbatim and split it into directives, questions and info; keep to owned paths; cite sources for claims about tools and APIs; and end with evidence another agent can rerun.
/preflight): answer the questions for the task's tier (S: MUST, M: + SHOULD, L: all + a pre-mortem). An answer that needs a number gets a number or "unknown, measure first". Copy the budgets that apply into the pre-flight with how each is measured./unslop): the static red flags run in tools/unslop/scan.mjs; the review agent reads the diff for the eyes ones. A red flag is a hypothesis until a confirm recipe produces evidence that a second agent reproduces.checks.json in this folder (triggers, questions, budgets, rules, verify). Projects tune it in .jstack/unslop.json (rule modes, waivers, extra questions and rules).MUST (asked at every tier)
agent.q.quote-ask What exactly did the user say? Quote it and mark each item QUESTION, DIRECTIVE or INFO. A question never becomes a state change. (answer as: table; prevents: misread-intent)agent.q.scope-fence Which files may I touch, which are forbidden, what is explicitly NOT requested, and which 'don't' constraints did the user state verbatim? (answer as: list; prevents: forbidden-area, ignored-order, unasked-removal)SHOULD (tier M and L)
agent.q.acceptance What is the acceptance check for each requested item? (answer as: list; prevents: hallucinated-work)agent.q.sources Which of my claims will rest on a source I have not opened yet? Open it now. (answer as: list; prevents: claims-from-memory)agent.q.disagree Where do the evidence and the user's belief or proposal disagree? Say it with the source instead of agreeing. (answer as: list; prevents: sycophancy)agent.q.own-tools What tools, sessions and credentials do I already hold that can verify this without the owner? (answer as: list; prevents: asking-owner-to-test)agent.q.docs Which docs, quoted code or links describe what I change, and do they change in the same diff? (answer as: list; prevents: stale-docs)agent.q.checkpoint Where is my checkpoint written, and can a fresh process resume from it? (answer as: file; prevents: lost-work)DEEP (tier L, with the pre-mortem)
agent.q.eta What is my ETA from comparable past tasks, and at what point do I stop and report? (answer as: number; prevents: no-timebox)agent.q.quotas For any shared resource such as quotas or locks, what budget triggers proactive backoff before the hard limit? (answer as: number; prevents: reactive-throttling)agent.q.premortem If this fails in a week, why? Write a 3-line pre-mortem. (answer as: text; prevents: all)Defaults with their source. The project file .jstack/budgets.json wins; null means the project sets it the first time a task touches it (pre-flight turns that into a measure-first task).
| key | default | unit | how measured | source |
|---|---|---|---|---|
agent.paths_outside_owned | 0 | count | git diff --name-only against the OWNED globs | least privilege (Saltzer & Schroeder 1975); OWASP LLM06 |
agent.uncited_claims | 0 | count | claims in the final report without path:line, URL or command output | Anthropic, Reduce hallucinations |
agent.eta_overrun_ratio | 1.5 | x ETA | stop and report at 1.5x the stated ETA | reference class forecasting (Flyvbjerg 2006) |
A red flag is a hypothesis. /unslop turns it into a finding only with evidence (see Confirm recipes).
| id | what it looks like | why it is slop | detector | severity |
|---|---|---|---|---|
agent.git-stash | git stash in a script (the stash stack is shared by every worktree) | refs/stash is shared across worktrees: one agent's pop applies another's work. | static agent.git-stash (regex) | high |
agent.hedged-claim | Hedged success claim in a report or PR body ('should work', 'probably fixed') | A claim without a receipt; the owner ends up testing it. | static agent.hedged-claim (regex) | medium |
agent.unasked-deletion | Deleted functions, exports, tests or files not named in the request | Chesterton's fence: working things vanish. | review agent (eyes) | high |
agent.outside-owned | Diff touches paths outside OWNED or inside FORBIDDEN | Auth, schema or docs changed without being asked. | review agent (eyes) | high |
agent.ask-owner-first | 'Can you test / click / give me access' with no tool-tried evidence | The owner does work the agent's own tools could do. | review agent (eyes) | medium |
agent.blame-without-repro | 'Probably the provider / network / cache' with no repro output | The real cause stays and the fix targets the wrong thing. | review agent (eyes) | medium |
agent.report-only-in-chat | Final report only in chat, nothing on disk | An interrupted agent loses everything it found. | review agent (eyes) | low |
agent.unasked-feature | New user-visible feature, setting, route or flow not named in the quoted ask | Unrequested features ship without agreement and someone has to find and remove them later. | review agent (eyes) | high |
agent.md-dead-link | Markdown link to a repository path that does not exist | Docs that point at moved or deleted files send the next reader, often an agent, to nothing. | static agent.md-dead-link (script md-dead-link) | medium |
agent.git-stash: static-proof: the command is in a script that agents run Fix direction: set work aside with a WIP commit.agent.hedged-claim: repro-script: run the claimed check; attach command, exit code, SHA Fix direction: replace with the command, its exit code and the SHA, or say 'not verified'.agent.unasked-deletion: repro-script: git diff --diff-filter=D and removed exports vs the quoted askagent.outside-owned: static-proof: git diff --name-only against the scope fenceagent.ask-owner-first: repro-script: the capability inventory shows a tool that could do itagent.blame-without-repro: repro-script: minimal repro + control run + timestampagent.report-only-in-chat: static-proof: no report file in the run folderagent.unasked-feature: repro-script: list new routes, settings and user-facing strings from the diff beside the quoted ask; an item with no matchagent.md-dead-link: static-proof: the linked path is absent at HEAD Fix direction: update the link in the same diff that moved or deleted the file.Run in this order after the change; each line is a pass criterion.
agent.v.scope changed paths vs OWNED and FORBIDDEN; every deletion justified or reverted (test; git diff --name-only / --diff-filter=D)agent.v.trace each ledger item DONE with evidence or explicitly DEFERRED (test; .agent/brief.md checklist (ready-gate))agent.v.claims each factual claim in the report has a source; the rest is removed or marked unverified (test; report review)agent.v.self-verify tests, typecheck and an end-to-end check with my own tools before asking any human (test; test runner + browser automation)agent.v.resume long orchestration: kill and relaunch; no duplicated side effects (test; kill test)Loaded by tools/unslop/classify.mjs when the task says "agent", "agents", "subagent", "orchestrator", "brief", "handoff", "report", "docs", "documentation", "claude.md", "resume", "checkpoint", or touches .agent/**, **/CLAUDE.md, **/AGENTS.md, .claude/**, **/*report*.md, **/pr-body*.md.
| tool | how to run it | what number to read | valid only when | trap |
|---|---|---|---|---|
| ask table | the first section of .agent/preflight.md: each item tagged DIRECTIVE, QUESTION or INFO | no QUESTION turned into a state change | verbatim quote | acting on a question |
| scope fence | OWNED and FORBIDDEN paths in the pre-flight; git diff --name-only before READY | every touched path is owned | compare against the fence | drive-by edits in shared files |
| claims with sources | every statement about a library, API or model links the doc or code read | no claim from memory | primary source | "as far as I know" |
| self-verification | rerun the acceptance checks from a clean state | each check passes with its output kept | evidence.mjs captures SHA and environment | hedged words in the report |
| symptom | measure | cause | fix |
|---|---|---|---|
| Question answered with a code change | compare the ask table with the diff | question read as an order | answer; change only on a directive |
| Another agent's work lost | git stash list; reflog | shared stash or checkout | own worktree; never stash |
| READY bounced | rerun the claimed checks | claims without evidence | evidence files in the READY message |
Dated sources with their verification tags are in SOURCES.md. Claims tagged unverified there are not stated as fact here.
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-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./eng-concurrencyUse when a change touches queues, background jobs, webhooks, retries, cron, sync, locks, approvals or anything that can run twice, late, in parallel or not at all. Commit point, idempotency key, one retry owner.