SQL Database Assistant Claude Skill
SQL Database Assistant is a Claude skill by Alireza Rezvani, and this page shows how to install it. Use when the user asks to write SQL queries, optimize database performance, generate migrations, explore database schemas, or work with ORMs like Prisma, Drizzle, TypeORM, or SQLAlchemy.
See all 388 skills by Alireza Rezvani in alirezarezvani/claude-skills.
What It Does
The operational companion to database design. While database-designer focuses on schema architecture and database-schema-designer handles ERD modeling, this skill covers the day-to-day: writing queries, optimizing performance, generating migrations, and bridging the gap between application code and database engines. Every migration must have a reversible down script.
This quote comes from the skill's SKILL.md.
When To Use It
- Use when the user asks to write SQL queries, optimize database performance, generate migrations, explore database schemas, or work with ORMs like Prisma, Drizzle, TypeORM, or SQLAlchemy.
Install
git clone --depth 1 https://github.com/alirezarezvani/claude-skills.git /tmp/claude-skills mkdir -p ~/.claude/skills/ cp -r /tmp/claude-skills/engineering/skills/sql-database-assistant ~/.claude/skills/sql-database-assistant
The command copies the skill from the author's repo. SkillTrove does not host it.
Are you new to skills? Read How to Use Claude Skills: Install in Claude Code, claude.ai and Codex or browse the Claude Code skills.
Files
- SKILL.md (16 KB)
- references/optimization_guide.md (10 KB)
- references/orm_patterns.md (12 KB)
- references/query_patterns.md (9.6 KB)
- scripts/migration_generator.py (16 KB)
- scripts/query_optimizer.py (11 KB)
- scripts/schema_explorer.py (14 KB)
We last checked this skill against its source on 2026-10-13.
Questions
How Do I Install This Skill?
Copy the engineering/skills/sql-database-assistant folder from https://github.com/alirezarezvani/claude-skills into your agent's skills folder. For Claude Code that folder is ~/.claude/skills/sql-database-assistant. The install block on this page has the full commands for each agent.
What License Does This Skill Use?
The license listed for this skill is MIT. Read the license in the source repo before you reuse it.
Where Is The Source For This Skill?
The source is on GitHub at https://github.com/alirezarezvani/claude-skills/tree/main/engineering/skills/sql-database-assistant. It is part of the alirezarezvani/claude-skills repo.
Related Skills
Market Research
Use when doing upstream market-research methodology - sizing a market as TAM/SAM/SOM computed BOTH top-down and bottoms-up (never a single unsourced number...
Meta Research
Use when a wrong answer is expensive: strategy research, comparing several products or markets, validating a hypothesis with outside data. Fans out searches ...
Migration Architect
Zero-downtime migration planning, compatibility validation, and rollback strategy generation. Tools for system, database, and infrastructure migrations with ...
Pricing Strategist
Use when designing or revisiting product pricing - selecting a pricing model (subscription seat-based, usage-based, value-based, freemium, or hybrid), runn...
Last30days
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, G...
Xlsx
The xlsx skill helps your agent build and fix spreadsheet files. CSV and TSV files work too. The agent puts formulas in the cells and never types in a total ...
More by Alireza Rezvani: rfp-responder, roast, senior-fullstack