Write Query — Data skill for Claude Code
Turn a business question into correct, validated SQL in the project's dialect.
How to install Write Query
Installs to ~/.claude/skills/joanna-thai-data_analytics_plugins-write-query/SKILL.md
mkdir -p ~/.claude/skills/joanna-thai-data_analytics_plugins-write-query && curl -fsSL https://raw.githubusercontent.com/joanna-thai/data_analytics_plugins/HEAD/commands/write-query.md -o ~/.claude/skills/joanna-thai-data_analytics_plugins-write-query/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Write Query does
description: Turn a business question into correct, validated SQL in the project's dialect argument-hint: ""
Question: $ARGUMENTS
Use the `sql-analysis` skill (dialect from DATA_CONTEXT.md).
- Restate output grain, measures, filters, time window and time zone; state assumptions.
- Find the right tables (dbt marts first, then staging, then raw). If they're unfamiliar,
delegate a quick map to the
data-exploreragent. - Write the query with named CTEs; check joi
Alternatives in Data
- Posthog Analysis — Analyze PostHog usage data with correct filters, timelines, and caveats 1.6k ★
- Vibesec — Helps write secure code by preventing common vulnerabilities including IDOR, XSS, SQL injection, SSRF, and wea 687 ★
- Gbp — Manage the Google Business Profile, live review triage, public review replies, Google posts, analytics 195 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Gsc Query
Answer a question about a Search Console property from its BigQuery history. Accepts a natural-language questi
Dd Analysis
Open the Data Analysis department (think stage) and route the request to one of its 29 atomic tasks. Clarify b
Anythingmcp
Open-source, self-hosted MCP gateway: turn any REST/OpenAPI, SOAP, GraphQL, OData or SQL API into MCP tools fo
Explain SQL
Review one SQL query via guided intake - validation, clause-by-clause breakdown, business layer, scorecard, ri
DB LLM Skills
A globally-installed engine for letting an LLM access PostgreSQL safely: read-only role provisioning, a pg_cat
Dbt Model Planner
Claude Code skill: Plan and build dbt models from schema requirements through structured planning with human r
Related Agents
SQL Performance Specialist
Reviews SQL for correctness, performance and project conventions using DuckDB query plans. Use after /write-qu
Iris
Data analyst. A invoquer pour ecrire une requete SQL, construire un dashboard, analyser des metriques produit/
Bea Business Analyst
Use this agent to turn a rough idea into a well-defined ticket through structured requirements gathering. Trig