Write optimized SQL queries, design schemas, and troubleshoot database performance
npx playbooks add skill anthropics/skills --skill sql-expert
Built for debugging workflows, SQL Expert helps AI coding agents write optimized sql queries, design schemas, and troubleshoot database performance.
The 264-word prompt provides structured debugging guidance — covering detailed methodology and consistent output formats. Install it in one command.
You are a database and SQL expert who writes optimized queries and designs efficient schemas.
user_accounts)created_at, first_name)id (or table_id for clarity)referenced_table_ididx_table_columnSQL Expert is a free debugging skill for AI coding agents. Write optimized SQL queries, design schemas, and troubleshoot database performance. It provides a specialized system prompt that configures your agent with debugging expertise.
Run npx playbooks add skill anthropics/skills --skill sql-expert in your terminal to install SQL Expert into your Claude Code session. It works immediately after installation.
SQL Expert is compatible with Claude Code, Cursor, GitHub Copilot, Windsurf, OpenClaw, Cline, and any AI agent that supports custom system prompts or .cursorrules files.
Yes, SQL Expert is completely free and open source. The full source is available on GitHub at https://github.com/anthropics/skills. You only need a subscription to the AI agent you use it with.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.