epam/timebase-agent-plugins/qql-generator

Claude Code and agent skill by epam/timebase-agent-plugins

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use for TimeBase queries, views, stream schemas, and schema migrations. Generate, repair, review, or explain QQL and DDL, including creating or changing streams and views. Return small MCP-backed results directly, use the Python client skill when the task needs a script, local export, large result set, or Python processing.

Install

npx vskill@latest install epam/timebase-agent-plugins/qql-generator

SKILL.md

QQL Generator

Mission

Generate QQL that is task-correct, schema-grounded, and safe to execute. Start from user intent, compose only the needed concept modules, and never treat parser success as semantic correctness.

How to Route Requests

  1. Identify the request type:
  • build a new query,
  • repair a broken query,
  • create/alter/modify/drop schema,
  • explain QQL behavior.
  1. Detect data shape needs:
  • polymorphic/PackageHeader/array payloads,
  • simple fixed-schema tabular projections.
  1. Open the smallest set of relevant references:
  • start with one main workflow file,
  • add concept references only when needed,
  • use recipes only as compact starters.
  1. Decide whether Python is needed:
  • Stay in this skill when the deliverable is QQL, a small MCP execution preview, or a direct answer from QQL plus MCP.
  • Do not switch to the Python client skill when the final Python would only connect and execute the same QQL and return the same result.
  • Escalate to Python only when the deliverable changes: local file persistence, large result extraction, reusable script, app/service, or downstream Python computation or visualization.

Mandatory Policy

  • Ground schema-dependent QQL from MCP schema/message evidence when available.
  • If MCP is unavailable or unreachable, include this exact warning in user-facing output:

Warning: TimeBase MCP is not available, results are expected to be significantly worse than MCP-grounded output.

  • compile_query is parser-only (syntax/parse diagnostics). Compile success does not prove class/field/type or other semantic correctness.
  • execute_query is non-default and potentially mutating. Use it only when explicitly needed/requested by the user.
  • When the user asks which QQL functions are available, or a function call fails because the function may be unknown or unsupported on the connected server, inspect server capabilities before proposing a fix. Prefer the TimeBase MCP list_qql_functions tool (v0.2.0+) when available, if the installed MCP server is older and lacks that tool, fall back to QQL introspection via stateless_functions() and/or stateful_functions(). Treat the connected server as the source of truth for availability. See references/mcp-workflow.md and references/concepts/stateless-functions.md.
  • Never invent final schema facts (classes, fields, enum values, entry types). Ask for schema or clearly mark assumptions.

Style and Safety Rules

  • Quote stream/class/field identifiers with double quotes.
  • Use single quotes for string literals.
  • Use == for equality and === for strict equality.
  • Stateful functions use braces (avg{}(...)); stateless functions do not (abs(...)).
  • Keep clause order valid (WITH, SELECT, FROM, ARRAY JOIN, OVER, WHERE, GROUP BY, HAVING, LIMIT, UNION).
  • OVER TIME(...) / OVER COUNT(...) must appear before WHERE.
  • Do not use SQL-only constructs (ORDER BY, SQL JOIN, SQL window OVER (PARTITION BY ...), CREATE TABLE).
  • Do not declare built-in identity fields (timestamp, symbol, type) in DDL.
  • Never output schema-dependent queries when schema is unknown.
  • Distinguish parser validity from semantic validity in notes.
  • Keep destructive DDL and confirm modes explicit and user-intent driven.

Pre-Output Safety Gates

Before finalizing any answer, verify all applicable gates:

  1. Relevant references are loaded for the detected task.
  2. Schema/source grounding is confirmed (MCP evidence or explicit assumptions).
  3. Query shape follows the style and safety rules above.
  4. If compile_query is available, parser diagnostics are addressed.
  5. Semantic uncertainty is surfaced (no false “validated” claims).
  6. For DDL or risky execution, explicit user intent is present.
  7. Python was not introduced without a real Python requirement such as local persistence, large result handling, reusable code, or post-processing.

If a gate fails, output an assumption-labeled template or ask for missing schema instead of a false-final query.

Capability Map

Use this map to fetch only what is needed:

Output Style

Return QQL first, then short notes on assumptions, validation scope, or unresolved semantic risks. Keep teaching detail concise unless user asks for deeper explanation.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/epam/timebase-agent-plugins/qql-generator/badge)](https://verified-skill.com/skills/epam/timebase-agent-plugins/qql-generator)

Something wrong with this skill or its page? Tell us.