postgres
Skill0 starsChanged yesterdayMITView on GitHub
Change or diagnose PostgreSQL schemas, queries, indexes, locks, migrations, backups, or upgrades.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- swap-cameroon/kuro-antigravity-configtheir own version, first seen Nov 15, 2026
- ericwood8/skillstheir own version, first seen Nov 1, 2026
- BaratovSokhibjon/skillstheir own version, first seen Oct 25, 2026
- base58ed/claude_code_filestheir own version, first seen Oct 20, 2026
- chenwei791129/agent-skillstheir own version, first seen Oct 19, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
Used with
Projects with it also use mysql, redis and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
planetscaleSkillmysql
Plan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; diagnosing slow/locking behavior; planning migrations; or troubleshooting replication and connection issues. Load when using a MySQL database.
Also in 6 projects that use this
Sorcha-PlatformSkillredis
Implements Redis caching, session management, and distributed coordination for the Sorcha platform. Use when: Adding caching layers, token revocation, rate limiting, SignalR backplane, or distributed state.
Also in 3 projects that use this
OpenAISkillsentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry CLI; perform read-only queries using the `sentry` command.
Also in 3 projects that use this
OpenAISkilllinear
Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.
Also in 3 projects that use this
NVIDIASkilldeep-research
Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- mfts/papermark★ 9.2ksame name
- papermark/papermark★ 9.2ksame name
- timescale/pg-aiguide★ 1.9ksame name
- planetscale/database-skills★ 711same name
- sanjay3290/ai-skills★ 452same name
- magnus919/agent-skills★ 172same name
- damusix/skills★ 61same name
- nahid-sparktales/agent-dispatcher★ 59same name
- digitalocean-labs/do-app-platform-skills★ 38same name
- nimadorostkar/Claude-Skills-collection★ 33same name
13 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- astroSkill
- bun-standardsSkill
- react-engineeringSkill
- rust-standardsSkill
- spring-bootSkill
- tailwind-v4Skill
- typescript-standardsSkill
- vitest-testingSkill
- api-designSkill
- architecture-reviewSkill
- benchmark-readiness-reviewSkill
- cli-designSkill
- codebase-scoutingSkill
- code-review-findingsSkill
- config-projection-reviewSkill
- documentation-hygieneSkill
- domain-modelingSkill
- formal-verificationSkill
- implementation-planningSkill
- orchestration-workflowSkill
- problem-clarificationSkill
- product-copySkill
- refactorSkill
- repository-text-hygieneSkill
- researchSkill
- security-scope-reviewSkill
- setup-canastaSkill
- system-designSkill
- task-closeoutSkill
- tddSkill
- technical-writingSkill
- upstream-contributionSkill
- writing-issuesSkill
- writing-prSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep the schema simple, enforce cross-process invariants in the database, and optimize from measured plans rather than folklore.
- Distinctive: line 15
Use that active major for changes and tests unless an explicit upgrade slice changes it, and take the target major from that slice.
- Distinctive: line 17
Read references/postgres-practice.md for modeling, query, migration, and operational guidance.
- Very specific: line 27
Use TIMESTAMPTZ for instants, exact numeric types for money, and JSONB only for data whose shape or querying justifies it.
- Very specific: line 29
Use NOT NULL, foreign keys, unique/check/exclusion constraints, and ranges for invariants that must survive concurrent processes.
- Distinctive: line 31
Add supporting indexes for real predicates, joins, ordering, tenant filters, and foreign keys.
- Distinctive: line 38
Prefer keyset pagination for deep ordered traversal.
- Distinctive: line 42
Keep transactions short and make lock ordering, retry behavior, and timeout handling explicit.
- Distinctive: line 47
Write forward migrations that are deterministic and safe for the deployment sequence.
- Distinctive: line 50
Add preflight queries for legacy values, nullability, duplicates, enum/state changes, ownership keys, and expensive rewrites.
- Distinctive: line 60
Run migration-from-baseline and migration-from-supported-production-state.
- Distinctive: line 61
Use Testcontainers for dialect, constraint, JSONB, range, lock, isolation, generated-column, and Flyway behavior.
- Distinctive: line 63
Verify hot plans, concurrency cases, backup/restore evidence, and monitoring.
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PostgreSQL
Keep the schema simple, enforce cross-process invariants in the database, and optimize from measured plans rather than folklore.
Establish The Database Contract
- Identify the production major, extensions, collation, driver, pooler, migration tool, backup/restore path, replicas, and Testcontainers image.
- Use that active major for changes and tests unless an explicit upgrade slice changes it, and take the target major from that slice.
- Read references/postgres-practice.md for modeling, query, migration, and operational guidance.
- Separate application migration, database-major upgrade, and production data repair into independently verifiable slices.
Modeling And Integrity
- Normalize first; denormalize only for a measured access path with an owner.
- Choose identifiers from domain and distribution requirements. Do not mandate UUIDs or sequences universally.
- Use
TIMESTAMPTZfor instants, exact numeric types for money, and JSONB only for data whose shape or querying justifies it. - Use
NOT NULL, foreign keys, unique/check/exclusion constraints, and ranges for invariants that must survive concurrent processes. - Add supporting indexes for real predicates, joins, ordering, tenant filters, and foreign keys. Every index adds write and maintenance cost.
Queries And Concurrency
- Capture representative parameters and use
EXPLAIN (ANALYZE, BUFFERS)for high-cost or high-volume queries in a safe environment. - Prefer keyset pagination for deep ordered traversal; use offset pagination when bounded pages and totals are genuinely required.
- Address races with constraints, atomic statements, locks, isolation, or idempotency keys. An application check followed by a write is not protection.
- Keep transactions short and make lock ordering, retry behavior, and timeout handling explicit.
Migrations And Operations
- Write forward migrations that are deterministic and safe for the deployment sequence. Operational recovery comes from rehearsed backup/restore or rollout strategy, not a fictional universal down migration.
- Add preflight queries for legacy values, nullability, duplicates, enum/state changes, ownership keys, and expensive rewrites.
- Rehearse risky migrations on production-shaped isolated data and record duration, locks, storage growth, and recovery behavior.
- A major upgrade requires extension/driver review, backup and restore or
pg_upgraderehearsal, collation/index checks, replication review, and observed application compatibility.
Verification
- Run migration-from-baseline and migration-from-supported-production-state.
- Use Testcontainers for dialect, constraint, JSONB, range, lock, isolation, generated-column, and Flyway behavior.
- Verify hot plans, concurrency cases, backup/restore evidence, and monitoring.
- Report exactly what was exercised; do not equate compilation with database readiness.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

