Skip to content
Data
Skill

/bydbql

Generate, validate, and optionally execute read-only BanyanDB BydbQL for STREAM, MEASURE, TRACE, and PROPERTY resources. Use when the user asks to query BanyanDB, translate natural language to BydbQL, inspect BanyanDB schema or data, validate BydbQL, or fetch raw BanyanDB

From plugin
banyandb-bydbql
3555 skills1 MCP

Claude Code

$ npx -y skills add apache/skywalking-banyandb --skill bydbql --agent claude-code

SKILL.md

bydbql.SKILL.md
name: bydbql
description: Generate, validate, and optionally execute read-only BanyanDB BydbQL for STREAM, MEASURE, TRACE, and PROPERTY resources. Use when the user asks to query BanyanDB, translate natural language to BydbQL, inspect BanyanDB schema or data, validate BydbQL, or fetch raw BanyanDB records.

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.

The host model performs natural language to BydbQL translation using these references and live schema discovery. Promote `get_generate_bydbql_prompt` to a required step whenever ranking or sorting is involved (or once schema has been fetched), because it carries the only index-rule `ORDER BY` check; `validate_bydbql` is parse-only and cannot catch a sort on a non-indexed field.

Output

For generation-only BydbQL requests, return the single BydbQL statement and state that it was not executed.

For BydbQL execution requests, show the BydbQL statement, then summarize the returned data or error concisely.

Read more
@apache
Ships withbanyandb-bydbql

BanyanDB, as an observability database, aims to ingest, analyze and store Metrics, Tracing and Logging data. It's designed to handle observability data generated by observability platform and APM system, like Apache SkyWalking etc.

3555 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
355
Star history of apache/skywalking-banyandb on GitHub, a chart by star-history.com

Other skills on banyandb-bydbql.

compiling

compiling

Compile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project.

gh-issue

gh-issue

Size-audit, write, and split BanyanDB issues that somebody else or an automated TDD workflow can implement. Use whenever the user…

gh-pull-request

gh-pull-request

Create a GitHub pull request for SkyWalking BanyanDB. Use when the user asks to create a PR, submit changes, or open a pull…

vendor-update

vendor-update

Upgrade Go/Node.js vendor dependencies and sync tool versions. Use whenever the user says "upgrade dependencies", "update…

More skills from other plugins.

context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem06d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog12d41k
@posthog@posthogInstall Skill

Questions about bydbql.

Which coding agents can use bydbql?
bydbql installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.