query-spec

query-spec is a skill for Claude Code from controlplane-com/ai-plugin. It costs 48 tokens per session (1,598 once invoked), scanned A, original, MIT.

A filtering language for selecting Control Plane resources by tags or properties and for sorting query results. It can be used in commands, APIs, policies, groups, and location settings.

In plain words
What is it for?
Filtering resource lists, targeting policy resources, assigning group members, selecting deployment locations, and querying resources through the CLI or API.
Why use it?
It lets selections update automatically as resources or labels change instead of maintaining fixed lists.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cpln plugin — 31 skills, 2 commands, 2 agents, 1 hook, 1 MCP server shipped together

Good fit Filtering resource lists, targeting policy resources, assigning group members, selecting deployment locations, and querying resources through the CLI or API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/controlplane-com/ai-plugin/query-spec
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add controlplane-com/ai-plugin --skill query-spec
Clone the repo
git clone --depth 1 https://github.com/controlplane-com/ai-plugin

Made for: Claude Code.

Or install cpln, the plugin that ships this one along with the rest of its 31 skills, 2 commands, 2 agents, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for query-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/query-spec/github.svg)](https://agentmods.dev/skills/controlplane-com/ai-plugin/query-spec)
Your own site
<a href="https://agentmods.dev/skills/controlplane-com/ai-plugin/query-spec"><img src="https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/query-spec/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for query-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/controlplane-com/ai-plugin/query-spec"><img src="https://agentmods.dev/badge/skills/controlplane-com/ai-plugin/query-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 114
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01598
Opus 5.5 $0.00019 $0.00639
Sonnet 5.5 $0.00010 $0.00320
Haiku 4.5 $0.00005 $0.00160

Measured 17d ago against content hash e675122be208, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

query-spec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cpln/skills/query-spec/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Query Spec — Filtering & Selecting Resources

Control Plane has one query language used in two ways: ad-hoc filtering of a resource list (CLI / API), and dynamic targeting embedded inside three resource fields.

Where Field / command Purpose
Policy targetQuery Target resources by tag/property instead of listing targetLinks (see access-control)
Group memberQuery Assign members dynamically — users only
GVC spec.staticPlacement.locationQuery Select locations dynamically instead of listing locationLinks
CLI cpln KIND query Ad-hoc filtering — every resource kind
API POST /org/ORG/KIND/-query Ad-hoc filtering — every resource kind

Not an MCP list parameter. list_resources has no filter argument (list a kind, then filter the table yourself); query_audit_events filters by kind/name/subject/context/time; query_metrics takes PromQL. The query spec appears only inside the three resource fields above, set when you create or update that resource.

Structure

kind: workload          # resource kind being selected
fetch: items            # "items" (objects, default) or "links" (references)
spec:
  match: all            # "all" (default), "any", or "none"
  terms:
    - op: "="
      tag: environment
      value: production
    - op: exists
      tag: monitored
  sort:
    by: name
    order: asc

Terms

Each term targets exactly one of three fields (mutually exclusive — the schema rejects a term that sets more than one):

Field Targets Example
tag Resource tags (key/value labels) tag: environment, value: production
property Built-in properties (name, description, status.phase, …) property: name, value: my-app
rel Relationships to other resources rel: gvc, value: my-gvc

Operators

Operator Needs value Meaning
= yes Equal (default when op is omitted)
!= yes Not equal
> >= < <= yes Numeric / date comparison
~ yes Pattern match (schema op name match)
=~ yes Regex match (schema op name regex)
contains yes Substring match
exists no Tag/property is present (any value)
!exists no Tag/property is absent

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · -4 lines e675122be208
  2. 1mo ago First seen · 163 lines · 48 tokens per session scan A 265023fdd975

Subscribe to this mod's changes

query-spec is a skill published in the GitHub repository controlplane-com/ai-plugin (11 stars, last pushed 4d ago), licensed MIT. It adds 48 tokens to every session and 1,598 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ak-cloud-deploy

Deploy an Agent Kernel project to AWS, Azure, or GCP using Terraform modules, or to any Kubernetes cluster (on-prem, baremetal, EKS) using the official Helm chart. Supports serverless and containerized modes for all three clouds. AWS supports execution modes (restsync, restasync, async, stream), queue-based scalable…

yaalalabs/agent-kernel · 157 tokens

huawei-cloud-cce-env-assessment

A skill for huawei cloud container(CCE) assessment. It automatically collects metrics and configurations from containerized application environments on Huawei Cloud to generate a comprehensive assessment report. Use this when users want to evaluate if their Huawei Cloud applications align with cloud-native best…

huaweicloud/huaweicloud-skills · 69 tokens

serverless-expert

Design and implement production-grade serverless applications with optimal performance, cost efficiency, and scalability. Use when the user mentions serverless or FaaS, AWS Lambda, Azure Functions, Cloud Functions, cold starts, event-driven architecture, or API Gateway-fronted workloads.

personamanagmentlayer/pcl · 58 tokens

openpitrix

KubeSphere OpenPitrix application management Skill. Use when users ask about KubeSphere App Store, OpenPitrix, Helm/YAML application templates, application repositories, app versions, app releases, categories, review states, repository sync, or troubleshooting application installation and upgrade issues.

kubesphere/kubesphere · 60 tokens

kubesphere-openkruise

KubeSphere OpenKruise management Skill. Use when user asks to install or enable OpenKruise, check OpenKruise status, view kruise pods/logs/CRDs, create or update SidecarSet, manage sidecar injection, create or update CloneSet, perform in-place update or batch rollout, uninstall or remove OpenKruise, or troubleshoot…

kubesphere/kubesphere · 99 tokens

kubesphere-volcano

KubeSphere Volcano job management Skill. Use when user asks to create, list, update, delete Jobs (Volcano Jobs), manage Queues, create PyTorch/TensorFlow/MPI training jobs, or troubleshoot Volcano scheduling issues in KubeSphere. Includes built-in YAML templates, scheduling policy recommendations, and best practices…

kubesphere/kubesphere · 85 tokens