Skip to content
Back to skills

Data Query

ASecurity

Run analytics queries against any database using plain English — BigQuery (bq CLI), PostgreSQL, MySQL, SQLite, or any DB with a CLI/MCP/API. Use when you need to pull metrics, analyze data, or answer business questions without writing SQL.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
ai-agentsgobashsqlapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

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

Scanned October 11, 2026

npx -y skills add rajitsaha/100xprism --skill data-query --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Query?

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

Security grade badge for Data Query
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rajitsaha-data-query/badge)](https://www.skillsdirectory.com/skills/rajitsaha-data-query)

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: data-query
description: Run analytics queries against any database using plain English — BigQuery (bq CLI), PostgreSQL, MySQL, SQLite, or any DB with a CLI/MCP/API. Use when you need to pull metrics, analyze data, or answer business questions without writing SQL.
category: data
tier: on-demand
slash_command: /query
allowed-tools: Bash Read
model: sonnet
---

# Query — Plain-English Database Analytics

Describe what you want to know — Claude writes and runs the query.

## How to use
- `/query <business question>` — Claude translates to SQL, runs it, returns analysis

## Supported interfaces
- **BigQuery**: `bq` CLI — `bq query`, `bq show`, `bq ls`
- **PostgreSQL**: `psql` CLI
- **MySQL**: `mysql` CLI
- **SQLite**: `sqlite3` CLI

---

## Phase 1 — Understand the question

Restate the business question in concrete terms. If the schema is ambiguous, inspect it first:

```bash
# BigQuery — show table schema
bq show <dataset>.<table>

# PostgreSQL
PGPASSWORD="$DB_PASS" psql -h "$DB_HOST" -U "$DB_USER" -d "$DB_NAME" \
  -c "\d <table_name>"
```

---

## Phase 2 — Write and run the query

Write the SQL for the business question. Run it using the appropriate CLI. Explain the results in plain English.

---

## Phase 3 — Return results

Return:
1. The SQL written
2. A plain-English answer to the original question
3. A table of key numbers

For recurring queries: offer to save as a named script.

## Scope vs `/db`
- `/query` = analytics in plain English (you describe a business question)
- `/db` = execute specific SQL against a named connection (you write the SQL or say "migrate")

Files in this skill

  • .100xprism-generated89 B
  • SKILL.md1.6 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.