/jstack:unslopfrom jstack
Use before READY on any branch (/unslop: a menu suggests this PR or branch, recent commits or the full project), on a folder (--full <path>), on a merged train (--train), or to learn from findings (learn, retro). Confirms each red flag with evidence a second agent reproduces, shows the report, then asks before it tests, fixes and re-tests.
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.
A red flag is a hypothesis. Only a reproduced failure becomes a finding: a failing test, a measurement over its budget, a captured repro, or a property of the text itself (a conflict marker, an edited applied migration). Nothing reaches the human without evidence produced by someone other than the agent that claims it. The same goes for /unslop itself: its precision is measured (SELF-EVAL.md), not asserted.
You are the orchestrator. You never judge a candidate yourself: eyes agents find, prosecutors build evidence, skeptics try to knock it down. Tools live in {{JSTACK_TOOLS}}/unslop/ and {{JSTACK_TOOLS}}/memory/. 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.
/unslop)With no arguments, ask before spending anything:
node {{JSTACK_TOOLS}}/unslop/desk.mjs --base origin/{{INTEGRATION_BRANCH}} lists the scopes with what each would scan (commits, files, static hits, domains, estimated agent runs) and the recommended one: this PR when one is open, else this branch (its commits plus uncommitted work), else the last N commits. Full project is always listed with its file count and never the default./unslop:explain) and "Show the trend" (/unslop:metrify). One question, no follow-ups unless the answer is ambiguous.report.mjs. Show the report (open it, never only a path) with the one-line counts.Explicit flags skip the menu: /unslop --base <ref> (or --full <path>, --domain, --train) runs that scope straight away, and --fix means the human already said yes to fixing.
| Invocation | What it does |
|---|---|
/unslop | the front desk above: suggest a scope, scan, report, then ask before fixing |
/unslop --base <ref> | the diff vs that ref: scan, confirm, report. No code change. |
/unslop --fix | as above, then test-red, propose, fix, re-test, record for each confirmed finding. UI design, outward and data-destructive fixes stop at propose until the human approves. |
/unslop --full <path> | a whole folder (legacy audit), rules at repo scope |
/unslop --domain a,b | only these packs |
/unslop --train <branch> | merged-tree rules on a train branch: conflict markers, catalog keys lost against a parent, duplicate migration stamps |
/unslop learn <finding> | turn a confirmed finding into a fixture, plus a rule or a pre-flight question proposal |
/unslop retro [--since 14d] (/unslop:retro) | mine.mjs: recent fix commits and transcripts, clustered, with escape metrics and draft questions and rules |
/unslop:explain | a local site explaining what the last run found and fixed and why, with sources; learns from your verdicts |
/unslop:metrify | a local dashboard of every recorded run: does the slop stop coming back? |
origin/{{INTEGRATION_BRANCH}} unless told), the diff, node unslop/classify.mjs --task "<the branch's ask>" --base <base> for the domains, node memory/memory.mjs query --paths <touched files> for waivers, known slop, false positives and decisions, memory.mjs budgets for the numbers. Open a run: node unslop/ledger.mjs init --repo . (prints the run dir).node unslop/scan.mjs --base <base> --domain <list> --json --out <run>/static.jsonl, then node unslop/ledger.mjs add <run> <run>/static.jsonl. In parallel, one eyes agent per chosen domain with the brief in EYES.md: it reads the diff against the pack's red flags (the eyes rules and the static hits as hints) and returns candidates with a concrete failure scenario. Append its candidates to <run>/eyes.jsonl and ledger.mjs add them. Measure rules run only when a built target is up and mem_guard passes.JSTACK_UNSLOP_MAX_CANDIDATES (default 25); the rest are counted as not examined, never dropped silently.node unslop/evidence.mjs run <run> --id <finding>.<kind> --kind <kind> --by prosecutor#N -- <command>. A skeptic (a different agent, same brief file) reruns it with evidence.mjs rerun <run> --id ... --by skeptic#M, checks it fails for the stated reason from a real entry point, and looks for the reason it is not a bug. Then ledger.mjs move <run> <finding> CONFIRMED|DISMISSED|UNPROVEN --by skeptic#M --reason "..." [--evidence evidence/<id>.evidence.json]. The ledger refuses CONFIRMED without an independent reproduced rerun. Prompt-cache candidates are confirmed from the provider's usage numbers with unslop/cache-probe.mjs (existing usage records, or the same request replayed twice), never from reading the code (CONFIRM.md).--fix). Commit a test (or measurement script) that fails on HEAD for the stated reason; evidence.mjs run it; ledger.mjs move ... TEST_RED --evidence ....suggest in the pack, shown in the report as "Suggested tactic") proposes that tactic with its saving and source; an eyes candidate can name one too. Owner gate for UI design, outward actions and anything that deletes data: stop here and report.evidence.mjs run again, exit 0), the pack's verify steps are green, budgets hold, and a re-scan of the fix diff adds no new candidates in the touched lines. ledger.mjs move ... FIXED, then VERIFIED --evidence <passing run> (refused unless it passes).node memory/memory.mjs add --kind known-slop --status fixed --title "..." --domain <d> --anchor <path#symbol> --guard <test path> --body "<lesson, one or two lines>"; ledger.mjs move ... RECORDED. Where memory lives decides the rest (node memory/memory.mjs where). In the repo (the default): commit the new .jstack/memory/entries/*.json with the branch (the READY gate refuses untracked ones), because an entry left in the worktree is deleted with it and no later agent or pre-flight query ever sees the lesson. Outside the repo (JSTACK_MEMORY_DIR or git config jstack.memoryDir): the entry is already in the folder every worktree shares, so there is nothing to commit; but a waiver or false positive written there does not quiet the diff-mode gate (nobody reviewed it), so a gate waiver goes in .jstack/unslop.json in its own reviewed PR, or as an unslop-ignore with a reason on the line. When a pre-flight question or a rule would have caught it earlier, say which (or draft it with learn).Then node unslop/report.mjs <run> --scope <pr|branch|recent|full> writes <run>/report.md from CONFIRMED-or-later rows only, re-checking each sidecar, and leaves the run's before/after record in .jstack/metrics/runs/<run>.json (commit it with the branch; /unslop:metrify reads them). Open the report for the human (never hand over only a path) and give the counts in one line: confirmed, dismissed, unproven, not examined, cost and time. When the human says a finding is right or wrong, record it with node unslop/explain.mjs feedback <run> <finding> --verdict accepted|rejected --why "...".
JSTACK_UNSLOP_MAX_AGENTS (default 4) agents in flight. mem_guard before any measure or build; builds only through the heavy lock; every agent kills what it starts..jstack/local/feedback.jsonl as {"rule": "...", "verdict": "rejected:<why>", "at": "..."} (accepted: "accepted"). The rules loader turns that into field precision: a rule earns block-when-confirmed at a lower bound >= 0.8 over >= 10 verdicts and drops to eyes-hint under 0.5.learn <finding>: write a fixture case (1 slop + 2 near-misses) into the pack's fixture file, run node unslop/selftest.mjs --rule <id>, and propose either a regex rule for the pack (generic) or an extraRules / extraQuestions entry in .jstack/unslop.json (project-only). Generic proposals go upstream to jstack as a PR with their fixtures.retro: node unslop/mine.mjs --since 14.days [--transcripts <session.jsonl or folder>]... reads fix/perf/revert commits and the human's bug-report-like messages in agent transcripts (200-character redacted gists), clusters them by domain with classify.mjs, prints the late-fix ratio, escapes per domain and the median days from a change to its fix, and drafts a question and an eyes rule for every cluster with 3 or more escapes that memory doesn't cover (.jstack/local/retro/<date>.json). Read the drafts with the human; the accepted ones go to extraQuestions / extraRules in a reviewed PR (a branch's own config change is a gate hit) or upstream with fixtures. No model calls unless asked, and then with an estimate first.In diff mode the scan and the gate read .jstack/unslop.json and the memory suppressions from the merge-base, never from the branch under review. A branch that edits the config, adds a waiver or false positive, or writes a new inline unslop-ignore gets that as its own hit (unslop.config-changed, unslop.new-waiver, unslop.new-suppression); the config change blocks the gate until a human passes --accept-config-change. Waivers count only before their expires, and a waiver on a high-severity rule needs one. Only the operator (--mode off or JSTACK_READY_UNSLOP=off) turns the gate off.
node unslop/gate.mjs --base <base> is the no-agent version for ready-gate.sh (check 8): static rules on added lines plus the memory anchor check, under 60 s, warn by default. gate.mjs --train runs the merged-tree rules for the train orchestrator.
CONFIRM.md (opens in a new tab)EVIDENCE.md (opens in a new tab)EYES.md (opens in a new tab)SELF-EVAL.md (opens in a new tab)fixtures/dev/agent-discipline.json (opens in a new tab)fixtures/dev/ci-git.json (opens in a new tab)fixtures/dev/concurrency.json (opens in a new tab)fixtures/dev/copy.json (opens in a new tab)fixtures/dev/data-privacy.json (opens in a new tab)fixtures/dev/data-quality.json (opens in a new tab)fixtures/dev/deploy-config.json (opens in a new tab)fixtures/dev/eval-testing.json (opens in a new tab)fixtures/dev/i18n-a11y.json (opens in a new tab)fixtures/dev/interaction.json (opens in a new tab)fixtures/dev/llm-app.json (opens in a new tab)fixtures/dev/llm-cost.json (opens in a new tab)fixtures/dev/llm-prompting.json (opens in a new tab)fixtures/dev/machine.json (opens in a new tab)fixtures/dev/performance.json (opens in a new tab)fixtures/dev/security.json (opens in a new tab)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.