Skip to content
Back to skills

Sql Patterns

ASecurity

SQL on PostgreSQL, MySQL, and SQLite, with NULLs, injection, upserts, migration locks, and dumps. Load before any edit to a .sql file or a dump job, however small, and for SQL questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsshellsql

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill sql-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sql Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sql Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-sql-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-sql-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sql-patterns
description: SQL on PostgreSQL, MySQL, and SQLite, with NULLs, injection, upserts, migration locks, and dumps. Load before any edit to a .sql file or a dump job, however small, and for SQL questions.
---

# SQL patterns

Default assumption: PostgreSQL 19, per the PostgreSQL versioning policy; MySQL 8.4 LTS and 9.7 LTS, per the MySQL release notes; SQLite 3.54, per the SQLite release log. PostgreSQL 15 to 18 are still supported, and MySQL 8.0 reached end of life in April 2026.

An entry with no engine name holds on all three engines. An entry or row named for an engine applies to that engine only, at or above its version. Code that builds SQL in an application language also follows that language's pattern skill.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                    | Read                                                     |
| ------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing SQL, or raising the engine version                                | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing SQL, a dump, or a PostgreSQL restore      | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Choosing a type, key, index, upsert, isolation level, or dump method      | [reference/practices.md](reference/practices.md)         |
| Writing a migration that alters a table or builds an index                | [reference/migrations.md](reference/migrations.md)       |
| Running or configuring SQLFluff, Squawk, or the MySQL Shell upgrade check | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.8 KB
  • reference/anti-patterns.md5.5 KB
  • reference/migrations.md3.7 KB
  • reference/practices.md5.6 KB
  • reference/tooling.md2.4 KB
  • reference/upgrades.md6.2 KB
  • sources.md12.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.