/dataspoke:dataspoke-validation [manage | routine] [question or dataset]from dataspoke
Writes data-quality validation into pipeline code (PySpark, pandas, dbt, SQL, Airflow) using DataSpoke as the result store. Designs judging methods from dataset history, generates metric computation, baseline fetch, scoring, and wires DataSpoke calls. Also manages validation slots directly.
Ships in dataspoke. 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.
Two modes against a deployed DataSpoke. If dataspoke-api reports no access, send the user to
/dataspoke:dataspoke-access first.
/dataspoke-api Based on dataspoke validation config, validation codes should be written in this pipeline for table 'example_v1'. guide me the process. I want the EDA is done based on the data after 2026.06.01 (around 3 months ago).
Default to routine whenever there is pipeline code in play — including when the user never says the word "validation" but asks for a row-count check, a null check, a freshness check, or "make sure the write looks right."
DataSpoke offers an API for registration, get, and put of values — nothing more:
| DataSpoke provides | DataSpoke does not provide |
|---|---|
| Register a validation slot (conf: four sections) | Any computing engine |
PUT/PATCH/GET the score and variable values, with history | Timeseries prediction / forecasting |
| Cross-run history, cross-dataset views, event reports | Anomaly detection |
| Emission of results to DataHub as assertions | Threshold or rule evaluation |
There is no metric computation, no forecast engine, no anomaly detector, and no rule engine
inside DataSpoke. Every number — each variable and the final score — is computed by the
pipeline, on the user's own engine, with the user's own credentials. DataSpoke receives finished
numbers and stores them; it never stores or executes the check logic itself.
You write the computing code — the metrics, the baseline comparison, the judging logic, the thresholds — and it runs in the user's pipeline. If the user asks DataSpoke to "detect anomalies" or "set a threshold," correct the framing: that logic gets authored into their pipeline, and DataSpoke stores what it decides. Never imply DataSpoke evaluates anything.
Teams add validation to datasets whose failure has meaningful impact (many downstream consumers, a direct relationship to an important business metric), not to every dataset as a matter of course. Ask about downstream impact when the pipeline doesn't already make it obvious — it ranks candidate measurements.
There is no flagship default check to suggest before looking at the data. The design comes
from dataset-specific exploratory analysis over representative history, choosing whichever
judging method — invariant, forecast, relation, or a mix — the measured series actually supports.
Bias the design toward high recall: missed alarms are costlier than false alarms, and a
separate human or judging agent may triage the flagged candidates later, but no such judge ships
with this plugin or with DataSpoke. references/validation-authoring.md owns the open method
set, the owner-question set to ask before measuring, and the scoring arithmetic (a criterion that
cannot yet be judged counts against the score — there is no cold-start sentinel pass).
Before doing anything, print the whole 9-step route below and say which step is current. The
route depends on one question, answered first, before step 1: does an existing conf or module
(references/validation-authoring.md §Reuse search) already cover this dataset? Reuse is the
normal answer, so ask it up front rather than defaulting to design-from-scratch. Tell the user
which of the two resulting paths they're on before proceeding:
dataset_urn (below), then ask the
owner-question set and measure candidate variables over representative history —
references/validation-authoring.md owns this in full. The point is to settle a judging
method per candidate, not to produce a report.variables/attribute/parameter), which partition is scored, cadence, scoring
denominator, cold-start floors, backfill range, the pipeline insertion point, and — when a
shared engine or existing module is nearby but not being extended — which of its files stay
deliberately untouched (references/validation-authoring.md §Open method set).PUT/PATCH through dataspoke-api, after plan approval — never
before, and never generated into the recurring pipeline code itself.
references/validation-conf.md owns the exact body and the description convention.references/validation-authoring.md owns the worked example, the wiring
pattern per engine, and the failure/outage policy.references/validation-authoring.md.Registering a conf can make a watched validation-score metric look worse before it looks
better — say so before the write, not after. references/validation-conf.md and
references/validation-authoring.md explain why (the metric's latest-result rule, and how a
high-recall design compounds it during warm-up).
dataset_urn — never guessdatahub-graphql '{"query":"query($q:String!){ search(input:{type:DATASET, query:$q, start:0, count:10}){ searchResults{ entity{ urn } } } }","variables":{"q":"<schema.table>"}}'
If datahub-graphql reports no DataHub access, send the user to /dataspoke:dataspoke-access
to add a DataHub GMS URL + token, then retry. Manual URN entry is a last resort, only when
search yields no candidate.| Intent | Call |
|---|---|
| Read a dataset's conf | dataspoke-api GET /spoke/common/data/{urn}/attr/validation/conf |
| Register / replace conf | dataspoke-api --confirm PUT /spoke/common/data/{urn}/attr/validation/conf @PATH |
| Partially update conf | dataspoke-api --confirm PATCH /spoke/common/data/{urn}/attr/validation/conf @PATH |
| Destroy the slot (see reference) | dataspoke-api --confirm DELETE /spoke/common/data/{urn}/attr/validation/conf |
| Append a result | dataspoke-api --confirm POST /spoke/common/data/{urn}/attr/validation/result @PATH |
| Query result history | dataspoke-api GET '/spoke/common/data/{urn}/attr/validation/result?from=…&until=…&limit=…' |
| Cross-dataset list | dataspoke-api GET '/spoke/validation?coverage=covered' |
| Validation event reports | dataspoke-api GET /spoke/common/data/{urn}/event/validation |
| Full per-dataset timeline | dataspoke-api GET '/spoke/common/data/{urn}/event?event_major_type=VALIDATION' |
Read references/validation-conf.md before generating any conf or result body, or reconstructing
one from memory — it owns the exact field shapes, the PUT/PATCH verb matrix, the score_note
construction rule, the pagination window, the destructive-delete warning, and the error table.
Write any JSON body to a scratch file with the Write tool and pass it as @PATH — never inline a
multi-field conf body as a literal shell argument. Confirm before any write; surface
403 READ_ONLY_ROLE verbatim rather than retrying through another surface.
coverage=covered (the default) on the cross-dataset list answers "what is validated," not
"what could be" — follow plugin/references/pagination.md and do not report a first page as
the full picture.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selhorys/dataspoke-baseline --plugin dataspoke6 skills in this plugin
/dataspoke-accessConnect this plugin to a deployed DataSpoke and verify access. Use to point Claude at a DataSpoke deployment (API base URL + dsk_ API token), mint a token from email/password, or check who you are and what role you hold. Prerequisite for every other dataspoke-* skill — run this first, or when calls start returning 401. Triggers on "connect to DataSpoke", "what role do I have", and the equivalent phrasing in the user's own working language./dataspoke-governanceGuide DataSpoke Governance metric configuration and operation (UC5) on a deployed instance. Use for "how do I set up a governance metric", "track validation coverage for my team", "is this data documented", creating/updating/deleting/enabling/running metrics, and interpreting results, dataset scope/verdicts, freshness, unresolved URNs, or events. Supports ingestion-freshness, validation-score, and doc-health through the public REST API. Also triggers on the equivalent phrasing in the user's own working language./dataspoke-ingestionManage DataSpoke ingestion sources (UC1) on a deployed instance — list and inspect sources, create or edit ACTIVE_CUSTOM_MANAGED and PASSIVE sources, trigger dry-run and real extractor runs, and review run history, emitted datasets, and the unmanaged bucket. Triggers on "register/check ingestion", "is this dataset ingested", "how do I add a new data source", "why isn't this table showing up in DataSpoke", "run this ingestion source", and the equivalent phrasing in the user's own working language. Answers questions and, on request, writes and fires the API calls./dataspoke-metagenOperate DataSpoke Metadata Generation (UC4) on a deployed instance: manage named generation configurations and per-dataset boundaries, dry-run and run generation, inspect coverage and candidates, and review documentation proposals. Triggers on AI documentation proposals, metadata generation, description candidates, metadata review, 'generate descriptions for this dataset', 'review AI-written descriptions', and the equivalent phrasing in the user's own working language./dataspoke-ontogenOperate DataSpoke Ontology Generation (UC3) on a deployed instance: configure the singleton, curate Markdown seeds, dry-run and run inference, inspect events and ontology results, and review nodes, edges, then eligible triples. Triggers on ontology inference, business concepts, relationships, ontology seeds, ontology review, 'how do I generate the business ontology', 'review pending ontology proposals', and the equivalent phrasing in the user's own working language.Other plugins' skills for the same job