kongctl-query

kongctl-query is a skill for Claude Code from Kong/ai-marketplace. It costs 64 tokens per session (1,221 once invoked), scanned A, original, MIT.

A guide for read-only queries with kongctl, the command-line tool used to inspect Kong Konnect. It helps verify access, find resources, retrieve them, and format results as JSON or YAML without changing anything.

In plain words
What is it for?
Use it to discover resource paths, list or fetch Konnect objects, check authentication and scope, shape command output, and verify changes made by another workflow.
Why use it?
It provides evidence about what exists and what the current identity can access. It avoids accidentally using commands that plan, apply, synchronize, or author configuration.

Skill for Claude Code

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

Part of the kong-konnect plugin — 21 skills shipped together

Good fit Use it to discover resource paths, list or fetch Konnect objects, check authentication and scope, shape command output, and verify changes made by another workflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kong/ai-marketplace/kongctl-query
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 Kong/ai-marketplace --skill kongctl-query
Clone the repo
git clone --depth 1 https://github.com/Kong/ai-marketplace

Made for: Claude Code.

Or install kong-konnect, the plugin that ships this one along with the rest of its 21 skills.

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 kongctl-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/kong/ai-marketplace/kongctl-query/github.svg)](https://agentmods.dev/skills/kong/ai-marketplace/kongctl-query)
Your own site
<a href="https://agentmods.dev/skills/kong/ai-marketplace/kongctl-query"><img src="https://agentmods.dev/badge/skills/kong/ai-marketplace/kongctl-query/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 kongctl-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/kong/ai-marketplace/kongctl-query"><img src="https://agentmods.dev/badge/skills/kong/ai-marketplace/kongctl-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,221 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.
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.00064 $0.01221
Opus 5 $0.00032 $0.00611
Sonnet 5 $0.00013 $0.00244
Haiku 4.5 $0.00006 $0.00122

Measured 12d ago against content hash e73d591c2f79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

kongctl-query 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 12d 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/kong-konnect/skills/kongctl-query/SKILL.md · 132 lines

How it starts

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

kongctl-query

Goal

Use read-only kongctl commands to inspect live Konnect state and return the smallest command and result slice that actually proves the answer.

Tool Positioning

  • Use this skill when the user explicitly wants kongctl, CLI-shaped proof, or read-only verification after another workflow changed Konnect state.
  • If the session already has the shared kong-konnect MCP server and the user needs live inspection more than exact CLI syntax, suggest MCP first and keep kongctl as the fallback proof path.
  • Do not use this skill for declarative YAML authoring, kongctl plan/apply/sync, CI/CD scaffolding, or repository refactors.
  • Preserve the repository's existing delivery toolchain. This skill only owns read paths and post-change verification commands.

References To Load

Load only the branch-specific reference that matches the active problem:

  • references/resource-discovery.md
    • Load when the main question is which kongctl get resource, parent, or child path should be queried.
  • references/output-shaping.md
    • Load when the main question is output mode, --jq, summarization shape, or formatting surprises from profile or environment defaults.
  • references/auth-and-scope-checks.md
    • Load when auth, profile, region, org scope, or empty results may be the real issue.

Validation Contract

Preflight

  • Confirm the CLI is installed and runnable: kongctl version.
  • Prefer kongctl login for interactive sessions. Use PAT or SPAT environment variables only when the session is non-interactive.
  • Never echo, log, or commit token values.
  • If the user's org, region, or profile context matters, prove that context with one org-scoped read such as kongctl get organization -o json before reasoning about a missing resource.

Preview

  • Choose the smallest read-only command that proves the answer:
    • kongctl help or kongctl get <resource> --help for command shape
    • kongctl get <resource> -o json for list proof
    • kongctl get <resource> "<name-or-id>" -o json for one-object proof
    • parent-child reads only after the parent boundary is confirmed
  • Use explicit -o json unless the user specifically wants YAML.
  • State the expected slice before relying on filtered or nested output.

Read the full file on GitHub · 132 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 132 lines · 64 tokens per session scan A e73d591c2f79

Subscribe to this mod's changes

kongctl-query is a skill published in the GitHub repository Kong/ai-marketplace (5 stars, last pushed 22d ago), licensed MIT. It adds 64 tokens to every session and 1,221 once invoked, about $0.0003 per session on Opus 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

agent-communication-protocol

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks.

majiayu000/claude-skill-registry · 25 tokens

API Discoverability for Agents

Making self-hosted services agent-discoverable — bake in a machine-readable API description (OpenAPI spec or a minimal API.md) when building, and discover-first (spec paths, repo search) before probing when integrating.

niels-emmer/myace · 51 tokens

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

workflow-orchestration-patterns

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

wshobson/agents · 49 tokens

microservices-patterns

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

wshobson/agents · 38 tokens