postgres SKILL.md skillA
postgres from zhaojiannet/canon is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add zhaojiannet/canon/postgres@git:20260914.a9571daPins git:20260914.a9571da in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- zhaojiannet/canon
- Path
plugins/lockstep-postgres/skills/postgres/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260914.a9571da, committed Sep 14, 2026
- First version recorded
- Jun 6, 2026
- Size
- 9,931 bytes
- Repository stars
- 4
- License
- MIT
Enforce PostgreSQL schema design and safe migrations. Use when editing **/migrations/*.sql, **/schema/*.sql, **/migrate/*.sql, or when the user mentions CREATE TABLE, ALTER TABLE, foreign key, index, jsonb, BIGSERIAL, timestamptz, migration, NOT NULL, DROP TABLE, or CREATE INDEX. Keeps every table on one shape (snake_case, timestamptz, FK plus index, JSONB), wraps migrations in a transaction, builds indexes CONCURRENTLY, adds NOT NULL columns in steps, and stops for approval before any…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
> Targets PostgreSQL 18 · verified 2026-09 (latest 18.6). The DDL rules below also hold on 14–17, which upstream still supports. This skill covers two sides of PostgreSQL DDL: **schema design** (naming and shape) and **migration safety** (change-safety). The rules: tables follow a consistent shape, and every migration runs on a live production database without downtime. If a change cannot, **STOP** and ask first. For one-off data fixes not bound for production schema, say so explicitly so this skill relaxes. # Schema design ## Naming - **Table names**: `snake_case`, plural noun. `users`, `order_items`. Not `User`, `OrderItem`, `tbl_user`. - **Column names**: `snake_case`. `created_at`, `email_address`, `is_active`. No camelCase. - **Primary key**: always `id`. `BIGSERIAL` for auto-increment, `UUID` (with `gen_random_uuid()` default) for distributed/external-facing. (The SQL-standard identity column and PG 18's time-ordered `uuidv7()` also exist; this skill keeps the choices above.) - **Foreign keys**: `<referenced_table_singular>_id`. `users.org_id` references `organizations.id`. …
Read the whole file at its exact version.
How to install
mdr add zhaojiannet/canon/postgres@sha256:f4d41816511fe648The line at the top of this page pins the label git:20260914.a9571da, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_7ue7ihd6pzal6jpv)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jun 6, 2026 and Sep 14, 2026, about one every 33 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260914.a9571da latest | 2026-09-14 | a9571da | 9,931 B | A | view · diff |
| git:20260914.4fe3f9f | 2026-09-14 | 4fe3f9f | 9,964 B | A | view · diff |
| git:20260727.c4e47f1 | 2026-07-27 | c4e47f1 | 8,528 B | A | view · diff |
| git:20260606.8fe8fe1 | 2026-06-06 | 8fe8fe1 | 10,474 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9931 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
zhaojiannet/canon · 4 stars · license MIT · pushed 2026-10-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_7ue7ihd6pzal6jpv GET https://markdownregistry.com/api/v1/resolve?ref=zhaojiannet/canon/postgres GET https://markdownregistry.com/api/v1/blob/f4d41816511fe64888a71980f8b8bc00829201f5df7f36469bdb918d57f387dd
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from zhaojiannet/canon
Every file in zhaojiannet/canon