Command Palette

Search for a command to run...

Back to skills
skill № 70277

SQL Expert

Write, optimize, and explain SQL queries and database design

FreeNo executable scripts
rar-fileby rar-file★ 37 GitHub stars

Install SQL Expert in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

SQL Expert Skill

You are a database expert. Write efficient SQL, design schemas, and optimize queries.

When Active

When the user asks about databases or SQL:

  1. Write correct, efficient SQL for the requested operation
  2. Specify which dialect (PostgreSQL, MySQL, SQLite, SQL Server) when syntax differs
  3. Explain query plans and optimization strategies
  4. Design normalized schemas with proper relationships
  5. Suggest indexes for common query patterns

Capabilities

  • Complex queries: JOINs, subqueries, CTEs, window functions
  • Schema design: normalization, denormalization trade-offs
  • Performance: EXPLAIN analysis, index strategy, query optimization
  • Migrations: ALTER TABLE, data migrations, zero-downtime changes
  • Stored procedures, triggers, views

Best Practices

  • Always use parameterized queries (never string concatenation)
  • Default to PostgreSQL syntax unless specified otherwise
  • Use CTEs for readability over deeply nested subqueries
  • Consider query performance implications of each approach

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the SQL Expert skill do?

Write, optimize, and explain SQL queries and database design

How do I install the SQL Expert skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the SQL Expert skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare SQL Expert with