/jstack:eng-data-qualityfrom jstack
Use when a change touches ingestion, ETL and pipelines, extraction, embeddings, uploads, connectors, dedupe, thresholds or nightly batch jobs. Screen input, keep unknowns, check each stage's output, alert on yield.
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.
Pipelines fail quietly: junk gets in, unknown input aborts a whole batch, a cap truncates without a trace, a stage reports complete while half its items failed, and learned data goes stale. Screen content at the door, keep and count what you do not understand, check each stage's postcondition, report caps with the remainder, and alert when yield drops against a golden set.
/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)
dq.q.postconditions What is each stage's postcondition, and where is it checked? Can a stage report complete while part of its input failed? (answer as: table; prevents: false-complete)dq.q.never-ingest What should never be ingested from each source (CI mail, lockfiles, binaries, spam)? Is there a fixture for each? (answer as: list; prevents: junk-ingested)SHOULD (tier M and L)
dq.q.unknown-input What happens to an input never seen before: unknown type, empty file, a 404, a binary, a huge file? (answer as: table; prevents: crash-on-unknown)dq.q.caps Where are the caps? What does the reader see when one is hit? (answer as: list; prevents: silent-truncation)dq.q.yield What is the expected yield of each automated job, and what alerts on zero? (answer as: number; prevents: zero-yield)dq.q.judge-evidence What evidence does each automated decision-maker (judge, filter, threshold) see? Is it what a human would use? (answer as: text; prevents: judge-on-snippets)DEEP (tier L, with the pre-mortem)
dq.q.golden-set Which golden set measures quality? What is the bar, the per-item minimum and the interval? (answer as: number; prevents: unmeasured-quality)dq.q.tasks-survive Which user tasks must survive this change? Is there a before/after script for each? (answer as: list; prevents: lost-core-view)dq.q.learned-data Which learned or derived data does this rely on? Where is its source, as-of date and invalidation trigger? (answer as: table; prevents: stale-learned-data)dq.q.entry-points How many entry points reach this pipeline? Can they be one? (answer as: number; prevents: fragmented-paths)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 |
|---|---|---|---|---|
dq.inconsistent_complete_rows | 0 | count | reconciliation query: complete rows with fewer outputs than inputs | Deequ (PVLDB 2018); design by contract |
dq.junk_rate_admitted | null | ratio | hand-labelled random sample of 50 admitted items, with a Wilson interval | Dodge et al., EMNLP 2021 |
dq.oldest_in_progress_min | null | min | age of the oldest in-progress job | SRE Workbook ch. 5 |
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 |
|---|---|---|---|---|
dq.fetch-no-status | fetch() result used in a file that never checks res.ok or status | A 404 page or an error body gets parsed, stored and indexed as content. | static dq.fetch-no-status (regex) | medium |
dq.unknown-type-throw | Ingest path throws on an unknown type or kind | One new type fails the whole ingest instead of degrading to a generic type with a flag. | static dq.unknown-type-throw (regex) | medium |
dq.paid-before-screen | extract()/embed()/model call before any content screen | Junk is paid for, then stored. | review agent (eyes) | high |
dq.complete-after-swallow | status = complete after a try that swallows errors, or with no count reconciliation | Failed embeddings or chunks hide behind a complete status. | review agent (eyes) | high |
dq.zero-yield-success | Job logs done with 0 changes as success | A filter removing 100% of candidates looks like a quiet night. | review agent (eyes) | medium |
dq.stacked-thresholds | Confidence thresholds stacked with AND, no funnel counts logged | Each threshold is reasonable; together they block everything. | review agent (eyes) | medium |
dq.learned-text-no-source | Learned note or report injected into a prompt with no source or as-of date | A stale lesson beats fresh evidence. | review agent (eyes) | medium |
dq.degenerate-output | Stage output accepted with no sanity bound (one segment, one label for everything, empty, output/input ratio far off) | A stalled or collapsed stage still reports success and its junk flows downstream. | review agent (eyes) | medium |
dq.validated-status-survives-edit | A writer changes the content or version of a row whose status was set by a validation or approval step, and leaves the status | An unchecked rewrite keeps the validated status and reaches users. | review agent (eyes) | high |
dq.window-ignores-reset | Threshold over a history table ignores the event that resets it (version, publication), while another path resets a counter | Two representations of one streak disagree, so a single new event trips a threshold built from old history. | review agent (eyes) | medium |
dq.fetch-no-status: failing-test: serve a 404 fixture; assert it is rejected before indexing Fix direction: check res.ok and the content type; add a timeout.dq.unknown-type-throw: failing-test: property test with arbitrary type strings; ingest throws Fix direction: store with a fallback type and a flag; report it.dq.paid-before-screen: failing-test: junk fixture suite (lockfile, CI mail, minified bundle) reaches the paid calldq.complete-after-swallow: failing-test: make the embedding call throw; document ends completedq.zero-yield-success: measurement: funnel counts per stage show the filter removing ~100%dq.stacked-thresholds: measurement: precision vs coverage sweep on labelled candidatesdq.learned-text-no-source: failing-test: seed a lesson contradicting the source; the answer follows the lessondq.degenerate-output: failing-test: feed a degenerate stage output fixture; the pipeline still marks the item completedq.validated-status-survives-edit: failing-test: for every writer of the body, assert status=validated implies validated_version == version Fix direction: store the validated version and reset the status on any content change.dq.window-ignores-reset: failing-test: history ends in failures, reset (republish), one new failure; the threshold must not trip Fix direction: one source for the window, filtered by the reset key.Run in this order after the change; each line is a pass criterion.
dq.v.golden golden set: precision and recall per item plus the minimum, with Wilson intervals, against the baseline (measure; stats.mjs)dq.v.junk junk and look-alike fixture suite: reject vs admit with reason codes (test; test runner)dq.v.faults fault injection on every external call (throw, timeout, 404, empty body) (test; test doubles)dq.v.reconcile reconciliation SQL: inconsistent complete rows = 0 (measure; SQL)dq.v.funnel funnel log per automated job in shadow mode, then apply mode (measure; job logs)dq.v.tasks task scripts on the old build vs the new one, then an axe scan (render; Playwright + axe)Loaded by tools/unslop/classify.mjs when the task says "ingest", "ingestion", "pipeline", "etl", "extract", "extraction", "embed", "embedding", "upload", "import", "connector", "sync", or touches **/ingest*/**, **/pipeline*/**, **/etl/**, **/extract*/**, **/import*/**, **/connectors/**, **/embed*, **/upload*/**.
| tool | how to run it | what number to read | valid only when | trap |
|---|---|---|---|---|
| stage postconditions | per stage: items in = items out + items failed (with reasons) | the equation holds; failures counted | run on a real batch | "complete" status with failed embeddings |
| golden set | a fixed sample of real inputs with expected output | precision and recall per stage vs the last run | held out from tuning | judging on synthetic inputs only |
| yield alert | output per input over time | drop beyond the normal band raises an alert | per source | silent zero-output runs |
| content screen | rules for spam, lockfiles, generated files, error pages | rejects counted with reasons | before any paid call | paying to process junk |
| symptom | measure | cause | fix |
|---|---|---|---|
| One odd file kills the batch | feed an unknown type | throw on unknown type | keep as unknown, count it, continue |
| Error page indexed as content | fetch a 404 in a test | HTTP status never checked | check status before parsing |
| Nightly job does nothing | count of applied changes per run | over-conservative thresholds | measure thresholds on a golden set |
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-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.