SkillCheatSheet
How to install
Skills by tool

AI skills for SQL and databases

Skills that write and review SQL, design schemas and work with Postgres, MySQL or SQLite. Each one is scored out of 100 by fixed code checks, no AI, so the same files always get the same score.

155 skills · 4 verified · average code score 63 · Snapshot of 2026-11-23

How this list is made

A skill is on this page when its name, or the start of its description, names SQL and databases. Skills named for it come first, then the highest code score.

The score says how well a SKILL.md is written: its description, steps, checks, scripts and safety rules. It does not say the result is right, so read a skill before you install it.

The install command uses the open skills CLI and works for Claude Code, Codex, Cursor and other agents.

readonly-sql-guard

Unverified
davila7/claude-code-templates / cli-tool/components/skills/database/readonly-sql-guard
34k

Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production/ERP/analytics database (a "query" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write/DDL/side-effect/transaction-escape risks. Checks what a statement CALLS, not just its shape.

BCode 79/100Builder 3/10
npx skills add davila7/claude-code-templates --skill readonly-sql-guard

bigquery-migration-sql-translator

Unverified
google/skills / skills/cloud/bigquery-migration-sql-translator
25k

Translates SQL queries, DDL schemas, and stored procedures from legacy database dialects (Teradata, Oracle, Redshift, Snowflake, SparkSQL, HiveQL) to BigQuery GoogleSQL using the BigQuery Migration Service (BQMS) MCP server. Use when translating legacy SQL queries, migrating schemas or metadata zip archives, or configuring BigQuery Migration Service (BQMS) YAML translation settings. Don't use for…

BCode 76/100Builder 2/10
npx skills add google/skills --skill bigquery-migration-sql-translator

sql-object-impact-analysis

Unverified
github/awesome-copilot / skills/sql-object-impact-analysis
41k

Before modifying a table, column, stored procedure, view, or trigger in a legacy codebase, trace every place that references it — across other SQL objects (procs, views, triggers) AND application code (C#, Angular/TypeScript, JS, or any language in the repo) — and produce a structured blast-radius report so you know what breaks before you change it. Use when the user asks 'what uses this column/t…

BCode 74/100Builder 1/10
npx skills add github/awesome-copilot --skill sql-object-impact-analysis

sql-database-assistant

Unverified
alirezarezvani/claude-skills / engineering/skills/sql-database-assistant
30k

Write, fix and speed up SQL: slow queries, EXPLAIN plans, indexes, ORM migrations (Prisma, Drizzle, SQLAlchemy). Load whenever a query is slow or wrong, the user needs SQL written, or an ORM migration.

BCode 73/100Builder 3/10
npx skills add alirezarezvani/claude-skills --skill sql-database-assistant

scaffolding-oracle-to-postgres-migration-test-project

Unverified
github/awesome-copilot / skills/scaffolding-oracle-to-postgres-migration-test-project
41k

Scaffolds an xUnit integration test project targeting Oracle in .NET solutions. Creates the test project, transaction-rollback base class, and seed data manager. Use only during Phase 3, before writing Oracle baseline integration tests. Do not invoke during Phase 6 — the PostgreSQL test project is produced by migrating this project, not by running this skill again.

BCode 71/100Builder 1/10
npx skills add github/awesome-copilot --skill scaffolding-oracle-to-postgres-migration-test-project

sql-queries

Unverified
phuryn/pm-skills / pm-data-analytics/skills/sql-queries
28k

Generate SQL queries from natural language descriptions. Supports BigQuery, PostgreSQL, MySQL, and other dialects. Reads database schemas from uploaded diagrams or documentation. Use when writing SQL, building data reports, exploring databases, or translating business questions into queries.

BCode 71/100Builder 1/10
npx skills add phuryn/pm-skills --skill sql-queries

azure-resource-manager-sql-dotnet

Unverified
microsoft/skills / .github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-sql-dotnet
3.2k

Azure Resource Manager SDK for Azure SQL in .NET. Use for MANAGEMENT PLANE operations: creating/managing SQL servers, databases, elastic pools, firewall rules, and failover groups via Azure Resource Manager. NOT for data plane operations (executing queries) - use Microsoft.Data.SqlClient for that. Triggers: "SQL server", "create SQL database", "manage SQL resources", "ARM SQL", "SqlServerResource…

BCode 71/100Builder 2/10
npx skills add microsoft/skills --skill azure-resource-manager-sql-dotnet

sql-reporting

Unverified
apache/airflow / providers/common/ai/src/airflow/providers/common/ai/example_dags/skills/sql-reporting
48k

Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.

BCode 70/100Builder 2/10
npx skills add apache/airflow --skill sql-reporting

migrating-oracle-to-postgres-stored-procedures

Unverified
github/awesome-copilot / skills/migrating-oracle-to-postgres-stored-procedures
41k

Migrates Oracle PL/SQL stored procedures to PostgreSQL PL/pgSQL. Translates Oracle-specific syntax, preserves method signatures and type-anchored parameters, leverages orafce where appropriate, and applies explicit collation mapping (`COLLATE "C"` only when appropriate, locale collations when required). Use when converting Oracle stored procedures or functions to PostgreSQL equivalents during a d…

BCode 70/100Builder 1/10
npx skills add github/awesome-copilot --skill migrating-oracle-to-postgres-stored-procedures

planning-oracle-to-postgres-migration-integration-testing

Unverified
github/awesome-copilot / skills/planning-oracle-to-postgres-migration-integration-testing
41k

Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Analyzes a single project to identify repositories, DAOs, and service layers that interact with the database, then produces a structured testing plan. Use when planning integration test coverage for a migrated project, identifying which data access methods need tests, or preparing f…

BCode 70/100Builder 1/10
npx skills add github/awesome-copilot --skill planning-oracle-to-postgres-migration-integration-testing

postgresql

Unverified
davila7/claude-code-templates / cli-tool/components/skills/database/postgresql
34k

Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

CCode 69/100Builder 1/10
npx skills add davila7/claude-code-templates --skill postgresql

postgres-pro

Unverified
Jeffallan/claude-skills / skills/postgres-pro
12k

Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.

CCode 69/100Builder 1/10
npx skills add Jeffallan/claude-skills --skill postgres-pro

neon-postgres

Unverified
midudev/autoskills / packages/autoskills/skills-registry/neon-postgres
7k

Guides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching, autoscaling, scale-to-zero, instant restore, read replicas, IP allow lists, logical replication, and Lakebase Search. Use when the work is an existing DATABASE_URL, SQL, schema, inspect, or search. New backends, Auth, files, Functions, and LLM calls go to the parent `…

CCode 69/100Builder 1/10
npx skills add midudev/autoskills --skill neon-postgres

neon-postgres

Unverified
neondatabase/agent-skills / skills/neon-postgres
118

Guides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching (including schema-only, reset-from-parent, and branch-per-PR workflows), autoscaling, scale-to-zero, instant restore, read replicas, IP allow lists, logical replication, egress optimization, and Lakebase Search. Use when the work is an existing DATABASE_URL, SQL, schem…

CCode 69/100Builder 1/10
npx skills add neondatabase/agent-skills --skill neon-postgres

sql-queries

Unverified
anthropics/knowledge-work-plugins / data/skills/sql-queries
37k

Write correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.). Use when writing queries, optimizing slow SQL, translating between dialects, or building complex analytical queries with CTEs, window functions, or aggregations.

CCode 68/100Builder 0/10
npx skills add anthropics/knowledge-work-plugins --skill sql-queries

migrating-oracle-to-postgres-data-access-code

Unverified
github/awesome-copilot / skills/migrating-oracle-to-postgres-data-access-code
41k

Migrates .NET/C# data access code from Oracle to PostgreSQL (Npgsql). Replaces Oracle NuGet packages, rewrites OracleConnection/OracleCommand/OracleDataReader usage, fixes DbType mappings, updates stored procedure invocation patterns, and adapts connection string configuration. Use when migrating the application code layer of a .NET project during an Oracle-to-PostgreSQL database migration.

CCode 67/100Builder 1/10
npx skills add github/awesome-copilot --skill migrating-oracle-to-postgres-data-access-code

reviewing-oracle-to-postgres-migration

Unverified
github/awesome-copilot / skills/reviewing-oracle-to-postgres-migration
41k

Identifies Oracle-to-PostgreSQL migration risks by cross-referencing code against known behavioral differences (empty strings, refcursors, type coercion, sorting/collations, UNION ALL planner risks, materialized-view refresh requirements, timestamps, concurrent transactions, etc.). Use when planning a database migration, reviewing migration artifacts, or validating that integration tests cover Or…

CCode 67/100Builder 4/10
npx skills add github/awesome-copilot --skill reviewing-oracle-to-postgres-migration

sql-server-table-reconciliation

Unverified
github/awesome-copilot / skills/sql-server-table-reconciliation
41k

Use when: comparing SQL Server tables across instances, data migration validation, ETL verification, row mismatch detection, schema drift, reconciliation report, production vs staging comparison. Uses mssql-python driver with Apache Arrow for fast columnar data transfer and comparison.

CCode 67/100Builder 1/10
npx skills add github/awesome-copilot --skill sql-server-table-reconciliation

sql-injection-testing

Unverified
davila7/claude-code-templates / cli-tool/components/skills/security/sql-injection-testing
34k

This skill should be used when the user asks to "test for SQL injection vulnerabilities", "perform SQLi attacks", "bypass authentication using SQL injection", "extract database information through injection", "detect SQL injection flaws", or "exploit database query vulnerabilities". It provides comprehensive techniques for identifying, exploiting, and understanding SQL injection attack vectors ac…

CCode 67/100Builder 2/10
npx skills add davila7/claude-code-templates --skill sql-injection-testing

cloud-sql-basics

Unverified
google/skills / skills/cloud/cloud-sql-basics
25k

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source MySQL instance, the resulting resource is a Cloud SQL for MySQL instance that Go…

CCode 67/100Builder 0/10
npx skills add google/skills --skill cloud-sql-basics

sql-pro

Unverified
Jeffallan/claude-skills / skills/sql-pro
12k

Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries,…

CCode 67/100Builder 1/10
npx skills add Jeffallan/claude-skills --skill sql-pro

azure-postgres-ts

Unverified
microsoft/skills / .github/plugins/azure-sdk-typescript/skills/azure-postgres-ts
3.2k

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL connection", "PostgreSQL TypeScript", "pg Pool", "passwordless postgres".

CCode 67/100Builder 1/10
npx skills add microsoft/skills --skill azure-postgres-ts

postgres-adopt

Unverified
garrytan/gbrain / skills/postgres-adopt
33k

Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASE_ACCESS_TOKEN, local Postgres, opt-in Docker), and move an existing PGLite brain to Postgres with its history (plan, ask, run). Detection is one engine-free command; the install ladder is one flag.

CCode 66/100Builder 1/10
npx skills add garrytan/gbrain --skill postgres-adopt

postgresql-code-review

Unverified
github/awesome-copilot / skills/postgresql-code-review
41k

PostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usage, custom types, schema design, function optimization, and PostgreSQL-exclusive security features like Row Level Security (RLS).

CCode 65/100Builder 0/10
npx skills add github/awesome-copilot --skill postgresql-code-review

sql-code-review

Unverified
github/awesome-copilot / skills/sql-code-review
41k

Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for complete development coverage.

CCode 65/100Builder 0/10
npx skills add github/awesome-copilot --skill sql-code-review

sql-optimization

Unverified
github/awesome-copilot / skills/sql-optimization
41k

Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.

CCode 65/100Builder 0/10
npx skills add github/awesome-copilot --skill sql-optimization

postgresql

Unverified
2025Emma/vibe-coding-cn / i18n/zh/skills/postgresql
23k

PostgreSQL database documentation - SQL queries, database design, administration, performance tuning, and advanced features. Use when working with PostgreSQL databases, writing SQL, or managing database systems.

CCode 65/100Builder 0/10
npx skills add 2025Emma/vibe-coding-cn --skill postgresql

prisma-postgres-setup

Unverified
prisma/skills / prisma-postgres-setup
80

Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), runs or mentions `create-db` or `npx create-db`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-s…

CCode 65/100Builder 0/10
npx skills add prisma/skills --skill prisma-postgres-setup

mysql-patterns

Unverified
affaan-m/ECC / skills/mysql-patterns
309k

MySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends. Use when designing MySQL or MariaDB schemas and indexes, or when a query, transaction, or replica lags.

CCode 64/100Builder 0/10
npx skills add affaan-m/ECC --skill mysql-patterns

detecting-sql-injection-via-waf-logs

Unverified
mukul975/Anthropic-Cybersecurity-Skills / skills/detecting-sql-injection-via-waf-logs
37k

Analyze WAF (ModSecurity/AWS WAF/Cloudflare) logs to detect SQL injection attack campaigns. Parses ModSecurity audit logs and JSON WAF event logs to identify SQLi patterns (UNION SELECT, OR 1=1, SLEEP(), BENCHMARK()), tracks attack sources, correlates multi-stage injection attempts, and generates incident reports with OWASP classification.

CCode 64/100Builder 1/10
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill detecting-sql-injection-via-waf-logs

All tools and file typesBuild your own skill