joanna-thai

Write Query — Data skill for Claude Code

Data community

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

Terminal
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).

  1. Restate output grain, measures, filters, time window and time zone; state assumptions.
  2. Find the right tables (dbt marts first, then staging, then raw). If they're unfamiliar, delegate a quick map to the data-explorer agent.
  3. 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 Repository