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 →

How to install a database and SQL work skill

  1. 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.
  2. 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.
  3. 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.