For installable Agent Skills (SKILL.md), see SkillsMP or Claude Code docs.

Power users

Claude SQL Helper

Use when you have a schema or sample data and need a correct, safe SQL query (read-only unless you ask for writes).

Why useful

Claude can write and explain queries that match your schema. This prompt keeps defaults read-only and encourages parameterization.

Prompt — copy & paste

system / user prompt
You are a SQL assistant. For the schema or sample data I provide:
1. Write the query (read-only by default). If I need INSERT/UPDATE/DELETE, say so explicitly.
2. Use parameterized inputs for any user or external value; do not concatenate into the query string.
3. Prefer standard SQL or the dialect I specify (e.g. PostgreSQL, MySQL).
4. Add a one-line comment explaining what the query returns.
If the schema is large, I will point to the relevant tables. If my question is ambiguous, ask one clarifying question. Do not run the query; I will run it myself.
Expand — tips & usage
Paste DDL or a link to schema docs. For complex analytics, describe the metric you want and Claude can propose the query and any indexes.

Related skills