Skip to content
Skills Library
Data & analytics · Analysis

data-routing

/data-routing

Use only when the user has a deterministic-data catalogue or asks to route a question through one - answering a data or metric question through that user-owned catalogue, resolving definition ambiguity, checking catalogue status, or producing a source-bound evidence receipt. Not for ordinary analysis when no catalogue exists.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use only when the user has a deterministic-data catalogue or asks to route a question through one - answering a data or metric question through that user-owned catalogue, resolving definition ambiguity, checking catalogue status, or producing a source-bound evidence receipt. Not for ordinary analysis when no catalogue exists.

Arguments

/data-routing [data question and catalogue path]
Original author description

Use only when the user has a deterministic-data catalogue or asks to route a question through one - answering a data or metric question through that user-owned catalogue, resolving definition ambiguity, checking catalogue status, or producing a source-bound evidence receipt. Not for ordinary analysis when no catalogue exists.

How it works

  1. Before use
  2. Route
  3. Output
Original SKILL.md headings · 112 lines, 853 words
SKILL.md preview
---
name: data-routing
description: Use only when the user has a deterministic-data catalogue or asks to route a question through one - answering a data or metric question through that user-owned catalogue, resolving definition ambiguity, checking catalogue status, or producing a source-bound evidence receipt. Not for ordinary analysis when no catalogue exists.
argument-hint: "[data question and catalogue path]"
skill: data-routing
plugin: deterministic-data
fully_qualified: deterministic-data:data-routing
version: "0.1.1"
triggers:
  - pattern: "\\b(deterministic data|data catalogue|metric catalogue|catalogue route|definition ambiguity)\\b"
    confidence: 0.85
  - explicit_invocation: true
priority: 60
---

# Deterministic Data Routing

Route a data question through the user's reviewed catalogue. The bundled
example is synthetic and cannot answer a real question.

## Before use

1. Locate the user-owned catalogue: a path the user gives, a catalogue in the
   working directory, or a customised catalogue shipped in this plugin under
   `${CLAUDE_PLUGIN_ROOT}/catalogues/` (any file there except
   `example.catalogue.json`). The bundled `example.catalogue.json` is synthetic:
   route through it only when the user explicitly asks for the example, and
   never treat it as a source of truth. If no user-owned catalogue exists and
   the user did not ask for the example, this skill does not apply: say in one
   sentence that no deterministic-data catalogue is configured, then answer
   through ordinary analysis and label any figure as non-canonical. Do not
   withhold an answer, or produce an evidence receipt, only because no
   catalogue exists.
2. Validate it with
   `${CLAUDE_PLUGIN_ROOT}/scripts/validate_catalogue.py <catalogue>`.
3. Confirm the declared source adapter is available and read-only for this task.

## Route

1. Decide whether the request asks for measured data, a definition, or a
   fictional example. Only measured-data requests can execute a source binding.
2. Match explicit aliases exactly after lower-case whitespace normalization.
   Do not use fuzzy matching to select a nearby definition.
3. If zero definitions match, state the catalogue gap and stop.
4. If several definitions match, present their labels, definitions, statuses,
   units, grains and supported windows, then ask the user to choose.
5. A `candidate` or `gap` entry may explain the boundary but cannot produce a
   canonical value.
6. For one `approved` definition, check the requested window against
   `supported_windows`, then call only its declared source binding. A supported
   window token does not define concrete dates by itself. Resolve it to dates
   only when the catalogue definition, declared binding, or both together
   supply all three required rules: calendar, timezone and close rule. Otherwise
   preserve the token and state that its concrete bounds are unresolved.
7. Preserve failed, unavailable, partial, stale, conflicting and scope-mismatch
   outcomes. Never substitute memory, another source, or a provisional method.
8. Return one evidence receipt inline using
   `${CLAUDE_PLUGIN_ROOT}/references/evidence-receipt.schema.json`. Read that
   schema before constructing the receipt. The receipt must contain exactly
   these root fields: `schema_version`, `prompt_epoch`, `claim_id`, `route_id`,
   `definition_id`, `source_refs`, `scope`, `freshness`, `completeness`,
   `conflict`, `caveats`, and `claim_status`. A routing summary or a different
   JSON object is not an evidence receipt. Include the receipt for every
   terminal route: matched, gap, ambiguous, candidate, unavailable, failed or
   successful. Return it and its validation status in the same response before
   any canonical value. Do not write the receipt to a file, including a
   temporary or scratchpad file, unless the user explicitly asks.
   Create a fresh route ID for this answer using only letters, digits, `.`, `_`,
   `:` and `-`. Set `prompt_epoch` to that exact route ID for this one-route
   answer. A calendar date alone is not a prompt epoch and must not be reused
   across answers.
9. If execution tools are permitted and the validator exists, attempt the
   bundled validator once. Pass the exact `prompt_epoch` through
   `--expected-epoch "<prompt_epoch>"` as one quoted argument, invoke the
   validator without a receipt path, and pass the JSON through standard input
   with a quoted heredoc delimiter (`<<'RECEIPT_JSON'`). Never create a file
   just to validate it. Use this command shape unchanged, replacing only the
   epoch and the JSON; other shell forms can trip host command-safety checks:

   ```bash
   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/validate_evidence_receipt.py" --expected-epoch "<prompt_epoch>" <<'RECEIPT_JSON'
   { ...the receipt JSON... }
   RECEIPT_JSON
   ```

   Exit code 0 means `passed`; any completed nonzero exit
   means `failed`, including a validator runtime error. Use `not run` only when
   the validator could not be launched because execution was denied or the tool
   or script was unavailable. Visual inspection can identify a caveat, but
   cannot produce either a `passed` or `failed` validation status.

For an unexecuted or unavailable source, use a source status of `unavailable`,
mark freshness and completeness `unknown`, and set `claim_status` to `withheld`.
Do not replace the receipt schema with catalogue fields such as `route_status`,
`definition_status`, `supported`, or `source_binding_executed`.

The required nested shapes are:

- `source_refs`: a non-empty list of objects containing only `source_id`,
  `status`, `observed_at`, and `scope_match`; use the catalogue or declared
  adapter as an unavailable source when no query ran;
- `scope`: an object containing only non-empty `population`, `measure`,
  `time_window`, and `grain` strings; use explicit `unknown` text where needed;
- `freshness`, `completeness`, and `conflict`: objects containing only `status`
  and a non-empty `basis`; and
- `caveats`: a list of strings, with `claim_status` set to `supported`,
  `qualified`, `withheld`, or `unchecked`.

An evidence-receipt structural pass never means the data or conclusion is
factually correct. Before presenting a consequential conclusion, independently
check it against the observed source, population, definition, time window,
freshness and completeness. This plugin must remain usable when LLM Accuracy is
not installed.

## Output

When no user-owned catalogue exists, skip this section: give the one-sentence
no-catalogue note and an ordinary answer, as described under Before use.
For every catalogue route:

- **Matched definition:** exact definition ID, or the gap/ambiguity.
- **Route status:** whether a declared source binding was executed.
- **Evidence receipt:** one inline receipt for this route.
- **Structural validation:** `passed`, `failed`, or `not run`.
- **Canonical value:** returned or withheld, with the reason; always last.

Versions

The database has no other skills named data-routing.

Database snapshot: 13.11.2026 · package version b537a8cd9e4f (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100nz-data-catalogue
    Search the assessed NZ and Auckland public-data source catalogue by topic, hackathon problem, owner, access or grade, then route to a fetching skill. Use to discover suitable datasets and inspect endpoint availability.
  • 10017-ai-adr-catalogue
    Use when maintaining a catalogue of consequential AI architecture, model, data, evaluation, safety, and provider decisions. Use architecture-decision-records for general ADRs and ai-agent-adr-catalogue for autonomous-agent decisions.
  • 100data-govt-nz
    Search and inspect New Zealand Government open-data catalogue datasets, organisations, resources, and datastore records through the public CKAN API at catalogue.data.govt.nz. Use when the task involves finding NZ public datasets, agencies, downloadable resources, CSV/API links,…
  • 100metrics-definition
    Precise metric definitions for data products. Outcome metric trees, naming conventions, grain specification, and the "what does this number mean?" problem. Use when defining KPIs, writing metric specifications, resolving conflicting metric definitions, building a metrics…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.