data-query
Write and refine optimized, connector-specific SQL — BigQuery or DuckDB — following best practices for readability, performance, and correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write and refine optimized, connector-specific SQL — BigQuery or DuckDB — following best practices for readability, performance, and correctness.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Plan, review, and then assemble a stakeholder-ready dashboard package from the current analysis run, with a native interactive canvas experience.
Data analysis skill hub. Routes to the right specialist subskill depending on the request — exploration, query writing, end-to-end analysis, visualization, validation, dashboard planning plus assembly, or recurring snapshot refresh.
End-to-end data analysis — from a quick metric lookup to a formal stakeholder report. Combines schema discovery, SQL execution, optional visualization, and an evidence-based summary. Use for general "analyze / what's happening with…" requests.
Create, edit, redline, comment on, and visually verify `.docx`, Word, and Google Docs-targeted document artifacts. Use for Word documents, `.docx` files, document creation, document edits, tracked changes, comments, render QA, and Google Docs-ready local DOCX generation.
Create stunning, animation-rich browser-native HTML presentations. Use only when the user explicitly wants an HTML/web presentation or animated interactive browser deck. Do not use for `.ppt`, `.pptx`, PowerPoint, Google Slides, native deck creation, native deck editing, deck templates, or PPTX conversion/export requests; use the `pptx` skill for those.
Work with PDF documents safely, including querying existing PDFs and creating simple image-based PDFs from workspace images.
| name | data/query |
| description | Write and refine optimized, connector-specific SQL — BigQuery or DuckDB — following best practices for readability, performance, and correctness. |
| plugin | data-analytics |
| inherits_plugin_defaults | true |
Write the best SQL for the specific connector in use. Understand the request, discover the schema, write the query, and offer to execute it.
| Condition | Connector |
|---|---|
| Request targets warehouse datasets or large managed tables | BigQuery MCP (toolbox-bq-demo) |
| Request targets local CSV / Parquet / JSON files in the workspace | run_skill_python_script with data_workspace |
Default to DuckDB for workspace files unless the user names a warehouse table.
Identify from the user's description:
DATE_TRUNC, SAFE_DIVIDE, partitioned tables.data_workspace script; use
explicit column names for durable queries.bq_list_datasets → bq_list_tables → bq_get_table_info
for the relevant tables. Check partition keys, clustering, and views.run_skill_python_script with
script_name="data_workspace" and {"action":"schema"} before writing local SQL.Follow these practices:
Structure:
WITH) for multi-step queries — one CTE per logical transformation.daily_signups, active_users, revenue_by_product).Performance:
SELECT * in production queries — name only needed columns.EXISTS over IN for large subqueries.Readability:
DuckDB-specific:
LIMIT 1000 unless aggregating to a small result.data_workspace script applies a bounded row_limit when executing local
query previews.Provide:
bq_execute_sql on the written query.data_workspace with {"action":"query","sql":"...","row_limit":1000}
to execute and return results.SELECT * in any executed query.