Skip to content
Back to skills

preset-sql-execution

ASecurity

Run or route SQL Lab execution, result retrieval, exports, query stop, saved-query mutation, and permalink workflows through direct Superset API calls. Use only for direct API workflows; Do not use for MCP-only work.

  • 13 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 5, 2026
ai-agentssqlapidatabase

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned June 5, 2026

npx -y skills add preset-io/agent-skills --skill preset-sql-execution --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of preset-sql-execution?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for preset-sql-execution
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/preset-io-preset-sql-execution/badge)](https://www.skillsdirectory.com/skills/preset-io-preset-sql-execution)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: preset-sql-execution
description: Run or route SQL Lab execution, result retrieval, exports, query stop, saved-query mutation, and permalink workflows through direct Superset API calls. Use only for direct API workflows; Do not use for MCP-only work.
---

# preset-sql-execution

Use for high-impact SQL execution and SQL Lab mutation workflows. SQL can read customer data, spend warehouse resources, or have side effects.

## Always

- Use `preset-api`, `preset-workspaces`, `preset-superset`, and `preset-sqllab` first.
- Load approval guidance before SQL execution, result retrieval/export, query stop, saved-query mutation, or permalink creation.
- Require explicit confirmation of exact SQL text or payload, target workspace/database/object, expected effect, row/result handling, endpoints, and rollback when applicable.
- Do not assume SQL is read-only.

## Decision Rules

- Distinguish SQL Lab metadata from query execution.
- Classify SQL execution, result handling, query stop, saved-query mutation, and permalink creation as approval-gated.
- Require query, target, row limit, result handling, endpoint, and no-mutation summary.
- Stop before any SQL execution, result retrieval/export, query stop, saved-query mutation, or permalink creation.

## Workflow Order

1. Inspect SQL Lab bootstrap metadata.
2. Prepare approval summary for execution, result handling, stop, saved-query, or permalink workflow.
3. Request explicit approval.
4. Stop before SQL execution, result retrieval/export, query stop, saved-query mutation, or permalink creation.

## Retrieve

- SQL approval routing: [references/sql-execution-approval.md](references/sql-execution-approval.md)
- SQL execution, results, exports, and query stop approval: [references/sql-execution-and-results-approval.md](references/sql-execution-and-results-approval.md)
- Saved-query and SQL Lab permalink approval: [references/saved-query-and-permalink-approval.md](references/saved-query-and-permalink-approval.md)
- SQL execution payload examples: [examples/sql_execution.py](examples/sql_execution.py)
- Global sensitive-operation policy: load `preset-api` and then `references/safety-policy.md`.

Files in this skill

  • SKILL.md2.1 KB
  • examples/sql_execution.py1.6 KB
  • references/saved-query-and-permalink-approval.md1.3 KB
  • references/sql-execution-and-results-approval.md1.4 KB
  • references/sql-execution-approval.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.