.cursor/skills/query-ado-data/SKILL.md
Query ado metadata and measurement data using CLI commands. Use when the user needs to find resources, filter by metadata, retrieve entities and measurements, or get resource schemas. Covers metastore queries (operations, discoveryspaces, samplestores, datacontainers, actuatorconfigurations) and samplestore queries (entities and measurements).
npx skillsauth add ibm/ado query-ado-dataInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ado stores data in two places:
DOs:
DONTs
Each resource has a pydantic model. If working in code you can use these models
Get a general overview of what's present:
uv run ado get $RESOURCETYPE --details
Returns an age-sorted list (most recent last) of resources of the specified type.
Resource types: operations (op), discoveryspaces (space),
samplestores (store), datacontainers (dcr), actuatorconfigurations
(ac)
Filter resources based on metadata fields using MySQL JSON Path queries:
uv run ado get $RESOURCETYPE --query 'path=candidate'
config.metadata.labels)--query multiple times (all filters must match)Examples:
# Find operations using a specific operator
uv run ado get operations -q 'config.operation.module.moduleClass=RayTune'
# Find spaces with a specific experiment
uv run ado get spaces -q 'config.experiments={"experiments":{"identifier":"finetune-lora-fsdp-r-4-a-16-tm-default-v2.0.0"}}'
# Combine multiple filters
uv run ado get operations -q 'config.operation.parameters.batchSize=1'
-q 'status=[{"event": "finished", "exit_state": "success"}]'
For extensive examples, see website/docs/resources/metastore.md.
Filter resources by labels:
uv run ado get $RESOURCETYPE -l key=value
Can specify multiple times (all labels must match):
uv run ado get operations -l labelone=valueone -l label_two=value_two
Find spaces matching a point or another space:
# Match spaces containing a specific entity point
uv run ado get space --matching-point point.yaml
# Match spaces similar to another space (by ID)
uv run ado get space --matching-space-id space-abc123-456def
# Match spaces similar to a space configuration (without creating it)
uv run ado get space --matching-space space.yaml
Note: --matching-point, --matching-space, and --matching-space-id are
exclusive to spaces and override --query and --label.
Get IDs of resources related to another resource (parent or child):
uv run ado show related $RESOURCETYPE [RESOURCE_ID] [--use-latest]
Supported types: operation (op), samplestore (store),
discoveryspace (space)
Example:
uv run ado show related space space-abc123-456def
View detailed information about a specific resource:
uv run ado show details $RESOURCETYPE [RESOURCE_ID] [--use-latest]
Get entities and their measurements from a space or operation:
uv run ado show entities RESOURCE_TYPE [RESOURCE_ID] \
[--use-latest] [--file | -f <file.yaml>]\
[--property-format {observed | target}] \
[--output | -o {console | csv | json}] \
[--output-file <path>] \
[--property <property-name>] \
[--include {sampled | matching | missing | unsampled}] \
[--aggregate {mean | median | variance | std | min | max}]
Resource types: operation (op), discoveryspace (space)
Key options:
--include (spaces only): sampled, unsampled, matching, missing--property-format: observed (one row per entity) or target (one row per
entity-experiment pair)--output (or -o): console, csv, or json--output-file specifies a file path to write the output to. If not provided,
output is written to stdout.--property: Filter specific properties (can specify multiple times)--aggregate: Aggregate multiple valuesExamples:
# Show matching entities in a space as CSV
uv run ado show entities space space-abc123-456def --include matching \
--property-format target \
-o csv --output-file space-abc123-456def-entities.csv
# Show entities from an operation with specific properties
uv run ado show entities operation randomwalk-0.5.0-123abc \
--property my-property-1 \
--property my-property-2 \
-o csv --output-file randomwalk-0.5.0-123abc.csv
Get measurement requests sent during an operation:
uv run ado show requests operation [RESOURCE_ID] [--use-latest] \
[--output | -o <console | csv | json>] \
[--output-file <path>] \
[--hide <field>]
Example:
uv run ado show requests operation randomwalk-0.5.0-123abc -o csv
Get measurement results metadata (valid/invalid status, etc.):
uv run ado show results operation [RESOURCE_ID] [--use-latest] \
[--output | -o <console | csv | json>] \
[--output-file <path>] \
[--hide <field>]
Note: This shows metadata about results (validity, reasons for invalidity), not the actual measurement values.
Example:
uv run ado show results operation randomwalk-0.5.0-123abc -o csv
Get JSON schemas for resource types:
uv run ado template $RESOURCETYPE --include-schema
Example:
# Get space template with schema
uv run ado template space --include-schema
# Get operation template with schema for a specific operator
uv run ado template operation --operator-name OPERATOR_NAME --include-schema
uv run ado get operations -q 'status=[{"event": "finished", "exit_state": "success"}]'
uv run ado get spaces -q 'config.entitySpace={"propertyDomain":{"values":["mistral-7b-v0.1"]}}'
uv run ado show entities operation OPERATION_ID -o csv --output-file OPERATION_ID_entities.csv
uv run ado show related space SPACE_ID
The metastore class can provide more powerful querying via scripts. See orchestrator/metastore/sqlstore.py
When modifying or creating code while using this skill, follow:
development
Builds a picture of work in an ado project: activity volume, spaces and operations created over time, experiments and operation configs used etc. Use to create a project/context overview report, summarize what the team has been doing in an ado project, report trends across spaces/operations, or to onboard onto an ado project.
tools
Guidelines for using ado CLI commands and documenting them correctly. Use when writing documentation that includes ado commands, verifying CLI syntax, or explaining ado CLI usage patterns to users.
testing
Guidance for creating ado resource YAML files (discoveryspace, operation, actuatorconfiguration, samplestore). Covers metadata conventions, dynamic reference resolution with --use-latest/--with/--set, space design principles, avoiding duplicate resources, and validation. Use when creating or editing any ado resource YAML file.
tools
Run ado operations on remote Ray clusters using --remote execution context files. Use when the user wants to create an operation, asks about remote clusters, wants to ship local plugins or data files to a cluster, or asks about execution context YAML files. Also applies proactively when creating an operation if execution context files are present in the workspace.