/dataspoke:dataspoke-governance [question or metric action]from dataspoke
Guides the complete lifecycle of DataSpoke Governance metrics via the public REST API: create, configure, dry-run, enable, and interpret results for ingestion-freshness, validation-score, and doc-health.
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.
Guide the complete lifecycle of active Governance metrics through DataSpoke's public API. Every
call uses dataspoke-api. Never use admin/internal routes, the operational database, cluster
access, or direct DataHub access, and never bypass a missing public capability. If API access is
missing, send the user to /dataspoke:dataspoke-access.
The wire format is always JSON. references/governance-metric.md is the curated reference for
routes, definition fields, built-in series, the dataset_filter grammar, JSON scaffolds, and
errors — read it before scaffolding or writing any definition. The deployment's live OpenAPI
document, read through dataspoke-schema, remains authoritative whenever the two differ. Passive
metrics are reserved in this release: do not propose them (mode: "passive" is not implemented).
Scope, schedule, and configure one named active metric; create it disabled; review its resolved scope; dry-run; enable; then return to its trend and affected datasets.
GET /auth/me — report the account's current role (not the
token's effective role, which no route returns directly — a write 403 despite this passing
means the token itself needs re-minting; see /dataspoke:dataspoke-access). List
GET /spoke/governance/metric and, for a named metric, read GET .../{metric_id}/attr/conf.
Writes require Editor or Admin. Confirm a metric_id's availability with a direct GET, never
by inferring it from an incomplete paginated page.dataspoke-schema (not
--list) immediately before every definition write, every delete, and every dry or non-dry
method/run. Validate the body against that live schema and its cross-field constraints.references/governance-metric.md and
adapt title, description, schedule, series styling, and dataset_filter with the user. A new
metric is scaffolded is_enabled: false. For a new scope, run the reference's four preflight
checks (team tag exists, id is free, filter targets a real scope, user wants all three types)
before writing anything.POST /spoke/governance/metric; replace or partially change an existing
one at .../{metric_id}/attr/conf with PUT/PATCH — never as an implicit upsert. An update
that changes dataset_filter (or can otherwise change the resolved scope) writes with
is_enabled: false, never leaving a prior schedule enabled against an unreviewed scope.
Confirm immediately before the call; if state changed underneath it, stop and report the
response instead of retrying blind.GET .../{metric_id}/dataset and show the resolved set and its scope-relative
attrs_synced_at. An empty or unintended scope returns to an explicitly confirmed definition
edit — do not proceed to a dry run or enablement on an unreviewed scope.dataspoke-api --confirm POST '.../{metric_id}/method/run?dry_run=true'
after the scope review and before enabling the schedule. A dry run still mutates nothing
server-side but is a non-idempotent trigger, so it goes through the same confirmation gate as
any other write; it evaluates but persists neither a result, a verdict replacement, nor an
event.references/governance-metric.md), confirm the enabled create body, then confirm the
immediate non-dry run separately./attr/result over the chosen time range, inspect its persisted
failing-dataset breakdown, and use /dataset and /event for current verdicts and recorded
lifecycle changes.An update that cannot change scope may take the shorter path — contract validation, exact payload preview, confirmation, apply — without disabling and re-reviewing an unchanged dataset set.
The skill reports API errors without bypassing them: create/update identity semantics,
read-only-role rejection, disabled/concurrent-run conflicts, unsupported passive mode, invalid
filters, and unresolved dataset literals all surface verbatim. references/governance-metric.md
owns the full error table.
The three seeded factory metrics (ingestion-freshness, validation-score, doc-health) are
normally left unchanged — a team-specific policy is a new metric_id, not an edit to a factory
row. See references/governance-metric.md for why, and why deleting one isn't durable.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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./dataspoke-validationWrite data-quality validation into a data pipeline, backed by DataSpoke as the result store (UC2). Use whenever the user is authoring or editing pipeline code that builds a partition and writes it to a destination table — PySpark, awswrangler/pandas, dbt, SQL, Airflow tasks — and wants checks on what it just wrote, with history and trend tracked across runs. Designs the judging method from the dataset's own measured history, generates the metric computation, baseline fetch, and scoring, and wires the DataSpoke calls that register the validation slot and post the score. Also manages validation slots directly — register/edit a conf, post or query results, browse the cross-dataset list. Triggers on "how do I write validation code for this dataset", "add validation to this pipeline", "register validation for this table", "what validation results exist", "validate the partition I just wrote", "row count check for this table", "is this dataset validated", and the equivalent phrasing in the user's own working language.Other plugins' skills for the same job