AI agent skills for database and SQL work
SQL skills are worth installing for the parts an agent reliably gets wrong under time pressure: index-aware query shapes, migration ordering, and the difference between a query that is correct and one that will still be correct at ten million rows. Dialect matters more than it looks — Postgres, MySQL, SQLite and D1 diverge exactly where the interesting features are. Prefer skills that make the agent show the query plan before it recommends an index.
People land here searching for “claude code sql skill”, “agent skill for postgres”, “database migration skill”.
131 database and SQL work skills Refine in search →
-
majiayu000 Bundle SQL PatternsProvides SQL best practices for query optimization, schema design, migrations, transactions, and indexing. Use when writing database queries, designing schemas, creating migrations, or when user mentions 'SQL', 'database', 'query', 'schema', 'migration', 'index', 'transaction'.
567 -
tibsfox Skill SQL PatternsProvides SQL best practices for query optimization, schema design, migrations, transactions, and indexing. Use when writing database queries, designing schemas, creating migrations, or when user mentions 'SQL', 'database', 'query', 'schema', 'migration', 'index', 'transaction'.
-
majiayu000 Bundle Database ImplementationDatabase schema design, migrations, query optimization with SQL, Exposed ORM, Flyway. Use for database, migration, schema, sql, flyway tags. Provides migration patterns, validation commands, rollback strategies.
567 -
majiayu000 Bundle Database AssistantActivates when user needs help with database design, SQL queries, migrations, or ORM usage. Triggers on "database schema", "SQL query", "migration", "optimize query", "foreign key", "index", "normalize", "ORM", "Prisma", "TypeORM", "SQLAlchemy", or database-related questions.
567 -
aselimc Skill Database PatternsDatabase design. Schema normalization, indexing, migrations, query optimization. SQL and NoSQL.
-
tryboy869 Bundle Database PostgresApply for PostgreSQL schema design, queries, migrations, and performance. Covers: indexes, constraints, JSONB, migrations with Alembic, connection pooling, query optimization. Trigger for: database, PostgreSQL, SQL, schema, migration, query, index.
-
tryboy869 Bundle Database Postgres 2Apply for PostgreSQL schema design, queries, migrations, and performance. Covers: indexes, constraints, JSONB, migrations with Alembic, connection pooling, query optimization. Trigger for: database, PostgreSQL, SQL, schema, migration, query, index.
-
ravnhq Bundle Platform DatabaseSQL database design, query optimization, and migration safety. Use when writing queries, designing schemas, or planning database migrations.
-
ravnhq Bundle Platform Database 2SQL database design, query optimization, and migration safety. Use when writing queries, designing schemas, or planning database migrations.
-
aretedriver Bundle Database OpsDatabase operations — schema design, migration authoring, query optimization, and SQL/ORM patterns
-
github Skill Ssma ConsoleGenerate XML configuration files and execute SSMA Console commands for Oracle to SQL Server database migration, including schema conversion and data migration.
36.2k -
mohitagw15856 Skill Database Migration PlanWrite a safe, zero-downtime database migration plan for a schema change. Use when asked to plan a database migration, design a zero-downtime schema change, document an expand/contract migration, produce a rollback procedure for a database change, or coordinate a database schema update with a deployment. Produces a structured migration plan covering migration objectives, backward compatibility analysis, expand/contract phase breakdown, exact SQL, rollback steps per phase, data validation queries, and a deployment runbook.
-
gabrielmoreira Skill Database Migration PlanWrite a safe, zero-downtime database migration plan for a schema change. Use when asked to plan a database migration, design a zero-downtime schema change, document an expand/contract migration, produce a rollback procedure for a database change, or coordinate a database schema update with a deployment. Produces a structured migration plan covering migration objectives, backward compatibility analysis, expand/contract phase breakdown, exact SQL, rollback steps per phase, data validation queries, and a deployment runbook.
17 -
majiayu000 Bundle Database Migration PlanWrite a safe, zero-downtime database migration plan for a schema change. Use when asked to plan a database migration, design a zero-downtime schema change, document an expand/contract migration, produce a rollback procedure for a database change, or coordinate a database schema update with a deployment. Produces a structured migration plan covering migration objectives, backward compatibility analysis, expand/contract phase breakdown, exact SQL, rollback steps per phase, data validation queries, and a deployment runbook.
567 -
modiqo Skill SQL MigrationsWrite, review, and sequence database schema migrations safely, with rollback scripts and zero-downtime patterns. Use when asked to add a column, change a table, or plan a schema change on Postgres or MySQL.
-
larrysequino Bundle Schema Migrate PlanDraft a two-phase database migration plan: expand, backfill, contract, with the rollback point named at each step and the read/write path stated for both halves. Use when a column has to change shape under live traffic. NOT for writing the application query changes themselves (use sql-query-tuning rather than this).
-
corticalepilepsyladyofthehouse956 Skill SQL MigrationUse this skill when writing or reviewing a database schema migration — adding columns, changing types, backfilling data, or renaming tables on a live system. Reach for it whenever a change needs to run against a database that cannot be taken offline.
Audited -
tomevault-io Bundle Skill SQL DatabaseSQL database management — migrations, schema auto-upgrade, PostgreSQL, SQLite, optimization Use when this capability is needed.
-
jshsakura Skill SQL ProUse when a task needs SQL query design, query review, schema-aware debugging, or database migration analysis.
-
alexeykrol Skill DB MigrateМиграция схемы базы данных: SQLite → PostgreSQL/Supabase. Генерация SQL, проверка совместимости.
-
diegosouzapw Bundle Database WorkflowLanguage-agnostic database best practices covering migrations, schema design, ORM patterns, query optimization, and testing strategies. Activate when working with database files, migrations, schema changes, SQL, ORM code, database tests, or when user mentions migrations, schema design, SQL optimization, NoSQL, database patterns, or connection pooling.
54 -
asiaostrich Skill DatabaseGuide database design, migration, and query optimization. Use when: schema design, migration planning, query optimization, index strategy. Not for: application code migration or framework upgrades — use /migrate; the API contract over the data — use /api-design. Keywords: database, schema, migration, SQL, index, query.
-
omer-metin Bundle Database ArchitectDatabase design specialist for schema modeling, query optimization, indexing strategies, and data integrityUse when "database design, schema, indexes, query optimization, migrations, normalization, database scaling, foreign keys, data modeling, database, sql, postgres, mysql, mongodb, schema, indexes, migrations, normalization, optimization" mentioned.
128 -
tomevault-io Bundle Database AssistantActivates when user needs help with database design, SQL queries, migrations, or ORM usage. Triggers on "database schema", "SQL query", "migration", "optimize query", "foreign key", "index", "normalize", "ORM", "Prisma", "TypeORM", "SQLAlchemy", or database-related questions. Use when this capability is needed.
How to install a database and SQL work skill
- Compare the skills. Read the database and SQL work skills below — each page shows the full SKILL.md, its safety verdict, and the capabilities it declares.
- Install it. Run npx skillmds@latest add <owner>/<name>. The CLI writes the skill into every agent directory it detects, or use --agent to pin one.
- Use it. Restart your agent. It loads the skill on demand the next time you ask for something that matches — you do not have to name the skill.
What makes a good database and SQL work skill?
SQL skills are worth installing for the parts an agent reliably gets wrong under time pressure: index-aware query shapes, migration ordering, and the difference between a query that is correct and one that will still be correct at ten million rows. Dialect matters more than it looks — Postgres, MySQL, SQLite and D1 diverge exactly where the interesting features are. Prefer skills that make the agent show the query plan before it recommends an index.
Every skill listed here is a plain SKILL.md file in the format Anthropic documents for Agent Skills, read unchanged by Cursor, OpenAI Codex and 60+ agents. Each passes a safety review before it is publicly listed; the verdict and declared capabilities are on every skill's page.
Frequently asked questions
What is an agent skill for database and SQL work?
SQL skills are worth installing for the parts an agent reliably gets wrong under time pressure: index-aware query shapes, migration ordering, and the difference between a query that is correct and one that will still be correct at ten million rows. Dialect matters more than it looks — Postgres, MySQL, SQLite and D1 diverge exactly where the interesting features are. Prefer skills that make the agent show the query plan before it recommends an index.
Will a SQL skill run queries against my database?
Only if your agent already has that connection, and the skill page declares whether it expects one. Many are pure authoring skills: they write and explain the query, and you run it.
Which agents can use these database and SQL work skills?
Any agent that reads SKILL.md files: Claude Code, Claude.ai, Cursor, OpenAI Codex, Windsurf, OpenCode and 60+ others. The format is not vendor-specific, so the same file works everywhere — each agent just keeps its skills in a different directory, listed at /agents.
Are these database and SQL work skills free?
Yes. Searching, reading and installing skills on SkillMD is free and needs no account. Individual skills carry their own licence, shown on each skill's page.