bydbql

bydbql is a skill for Claude Code, Codex from apache/skywalking-banyandb. It costs 71 tokens per session (798 once invoked), scanned A, original, Apache-2.0.

A procedure for creating and optionally running read-only BydbQL queries against BanyanDB. BydbQL is BanyanDB's query language for streams, measurements, traces, and properties.

In plain words
What is it for?
Use it to inspect BanyanDB data, discover schemas, generate queries for metrics, logs, traces, or properties, validate query syntax, and fetch records.
Why use it?
It helps translate plain-language questions into valid queries while checking the database schema and avoiding write operations.

Skill for Claude CodeCodex

Part of the banyandb-bydbql plugin — 5 skills, 1 MCP server shipped together

About the project

Apache SkyWalking BanyanDB is a database for collecting, analyzing, and storing metrics, traces, and logs produced by observability and application-performance systems. It is intended for platforms such as Apache SkyWalking that need to work with monitoring data.

apache/skywalking-banyandb · 350 stars · on GitHub

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.

agentmods
npx agentmods add skills/apache/skywalking-banyandb/bydbql
Any agent
npx skills add apache/skywalking-banyandb --skill bydbql
Clone the repo
git clone --depth 1 https://github.com/apache/skywalking-banyandb

Made for: Claude Code, Codex.

Or install banyandb-bydbql, the plugin that ships this one along with the rest of its 5 skills, 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 bydbql

README.md
[![agentmods](https://agentmods.dev/badge/skills/apache/skywalking-banyandb/bydbql.svg)](https://agentmods.dev/skills/apache/skywalking-banyandb/bydbql)
Your own site
<a href="https://agentmods.dev/skills/apache/skywalking-banyandb/bydbql"><img src="https://agentmods.dev/badge/skills/apache/skywalking-banyandb/bydbql.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00071 $0.00798
Opus 5 $0.00036 $0.00399
Sonnet 5 $0.00014 $0.00160
Haiku 4.5 $0.00007 $0.00080

Measured yesterday against content hash 8eeff12fc08b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bydbql 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 yesterday.

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.

skills/bydbql/SKILL.md · 40 lines

How it starts

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

BanyanDB BydbQL

Use this skill when the user asks to query BanyanDB, generate BydbQL, translate natural language to BydbQL, inspect BanyanDB data, validate BydbQL, or run read-only BanyanDB queries.

Workflow

  1. Read references/safety.md before generating, validating, or executing BydbQL.
  2. Read references/syntax.md when query syntax is needed.
  3. Read references/examples.md when mapping natural language to BydbQL.
  4. Identify the BanyanDB resource type: STREAM, MEASURE, TRACE, or PROPERTY.
  5. If the group, resource name, or resource type is missing or ambiguous, use list_groups_schemas.
  6. If the request involves sorting or ranking (ORDER BY, SHOW TOP, or wording such as "latest", "top", "highest", "lowest", "first", "last"), or you have already fetched schema, call get_generate_bydbql_prompt and follow its index-rule guidance. This is required: get_generate_bydbql_prompt is the only component that injects the indexed-field list and enforces ORDER BY field substitution/omission. validate_bydbql is parse-only, so ORDER BY <non-indexed-field> validates true but fails at execution.
  7. Generate exactly one read-only BydbQL statement. When it contains ORDER BY, only sort by a field from the indexed-field list returned by get_generate_bydbql_prompt; substitute the closest indexed field, or omit ORDER BY when no indexed field matches.
  8. Call validate_bydbql before execution.
  9. Execute with list_resources_bydbql only when the user asks to run, query, fetch, show, or inspect raw BanyanDB data.
  10. If validate_bydbql returns valid=false, fix the query and validate again before any execution.
  11. If execution fails due to a missing group, resource, or schema, use list_groups_schemas to discover the correct names and retry only when the correction is clear.

Tool Use

Use the existing BanyanDB MCP tools:

  • list_groups_schemas: discover groups and resource names for streams, measures, traces, and properties.
  • get_generate_bydbql_prompt: return the generation prompt text, including the live indexed-field list and the ORDER BY index-rule substitution/omission rules. It is the only source of index-rule ORDER BY safety.
  • validate_bydbql: run read-only safety checks and parse-only BydbQL syntax validation. This does not verify group, resource, tag, field, or index-rule existence.
  • list_resources_bydbql: execute a validated BydbQL statement when data retrieval is requested.

Read the full file on GitHub · 40 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. yesterday First seen · 40 lines · 71 tokens per session scan A 8eeff12fc08b

Subscribe to this mod's changes

bydbql is a skill published in the GitHub repository apache/skywalking-banyandb (350 stars, last pushed today), licensed Apache-2.0. It adds 71 tokens to every session and 798 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

migrate-state-management

Migrate Redux or React Context to the correct state option (React Query for server state, nuqs for URL/shareable state, Zustand for global client state). Use when refactoring away from Redux/Context, moving state to the right store, or when the user asks to migrate state management.

SigNoz/signoz · 64 tokens

datadog

Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.

bobmatnyc/claude-mpm-skills · 43 tokens

数据模型文档生成

当用户要生成或更新 Doris 表的数据模型 Markdown(三一级标题:数据摘要、数据表列、JSON扩展字段)、从 Doris 拉取元数据与至少 100 行样本,并由脚本或 --llm 补全说明时启用。.

opsrobot-ai/opsrobot · 64 tokens

datamodel-gen

生成三个一级标题内容:基本信息、数据字段、使用示例 1.基本信息包括: 数据名称、原始路径(OpenClaw原始数据来源)、数据内容、数据库、数据表、用途定位、应用场景, 表格形式展示 2.数据字段包括两个子标题:数据表列和JSON扩展字段.

opsrobot-ai/opsrobot · 0 tokens

review-logging-patterns

Review code for logging patterns and suggest evlog adoption. Optionally use @evlog/cli (evlog init to wire evlog, evlog agents to write the conventions into AGENTS.md, evlog map to score entry-point coverage, --baseline to gate regressions in CI) on Nuxt, Nitro, Next.js, TanStack Start, and Hono. Guides setup on those…

HugoRCD/evlog · 197 tokens

build-audit-logs

Build or review audit trails in TypeScript/JavaScript apps using evlog (pipelines, typed actions, denials, retention, compliance-style reviews). For application code, not for extending the evlog package.

HugoRCD/evlog · 49 tokens