Skip to content
Development
Skill

/preset-sqllab

Inspect Preset SQL Lab bootstrap, query history, saved queries, result/export routing, query control, and SQL execution routing through direct Superset API calls. Use only for direct API workflows; Do not use for MCP-only work.

From plugin
agent-skills
1329 skills

Claude Code

$ npx -y skills add preset-io/agent-skills --skill preset-sqllab --agent claude-code

SKILL.md

preset-sqllab.SKILL.md
name: preset-sqllab
description: Inspect Preset SQL Lab bootstrap, query history, saved queries, result/export routing, query control, and SQL execution routing through direct Superset API calls. Use only for direct API workflows; Do not use for MCP-only work.

preset-sqllab

Use for SQL Lab capability and query metadata workflows in a resolved Preset workspace.

Always

  • Auth and conventions come from `preset-api` (JWT exchange, base URLs, Rison); resolve the workspace hostname through the Management API when it is not already known. Consult `preset-superset` only when permissions drift matters.
  • Run SQL Lab bootstrap/capability metadata reads directly.
  • Run the user's own query history and saved-query reads directly when they asked in their own message AND current-user/owner filtering is applied before SQL-bearing fields are fetched (default page 25 records, hard cap 100 without explicit confirmation). If an endpoint returns SQL text before ownership is proven, keep the read confirmation-gated as SQL-text disclosure.
  • Route execution, result retrieval/export, query stop, saved-query mutation, and permalinks to `preset-sql-execution`.

Decision Rules

  • Distinguish query history metadata from SQL text, result retrieval, and execution to pick the right endpoint and filters.
  • Other users' history or SQL text, and any history read where owner filtering cannot be applied first, require confirmation.
  • Route saved query, history, result, stop, permalink, and execution requests separately.
  • Avoid SQL execution from this skill.

Workflow Order

1. Inspect SQL Lab bootstrap state. 2. Route history, saved query, result, stop, permalink, and execution request. 3. Fetch owner-filtered history or saved queries the user asked for with parameterized page limits. 4. Confirm before unowned SQL-text reads; route execution-family operations to `preset-sql-execution`.

Retrieve

  • Combined SQL Lab routing and approval essentials: [references/routing-essentials.md](references/routing-essentials.md)
  • SQL Lab availability, database options, UI defaults: [references/sqllab-bootstrap.md](references/sqllab-bootstrap.md)
  • Query history reads and SQL text exposure: [references/query-history.md](references/query-history.md)
  • Saved query reads, mutations, permalinks: [references/saved-queries.md](references/saved-queries.md)
  • SQL execution routing: [references/sql-execution.md](references/sql-execution.md)
  • Result retrieval and exports: [references/query-results-and-exports.md](references/query-results-and-exports.md)
  • Query stop/cancel: [references/query-control.md](references/query-control.md)
Read more
@preset-io
Ships withagent-skills

Agent guidance for working with Preset, Apache Superset, and Superset MCP tools. The skills are authored once and load across every supported agent client — see Supported clients.

Stars on GitHub

Momentum

stars in total
13
Star history of preset-io/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

preset-admin

preset-admin

Manage Preset teams, workspaces, memberships, invites, role identifiers, seat checks, and audit logs through direct Management…

preset-api

preset-api

Prepare direct Preset API access: auth, JWT exchange, base URLs, pagination, Rison parameters, response handling, and shared API…

preset-dashboards

preset-dashboards

Inspect Preset workspace dashboards, charts, dashboard composition, screenshots, thumbnails, chart data, and chart/dashboard…

preset-datasets

preset-datasets

Inspect Preset workspace datasets, database metadata, schemas, tables, columns, metrics, and dataset/database workflow routing…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about preset-sqllab.

Which coding agents can use preset-sqllab?
preset-sqllab 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.