postgresql
Skill0 starsChanged 34 days agoMITView on GitHub
Use when an application uses PostgreSQL
21 other projects use a version of this.
Adopted by
Most recently taken up by
- iliaal/ai-skillstheir own version, first seen Nov 7, 2026
- speakeasy-api/gramtheir own version, first seen Nov 6, 2026
- lawless-m/claude-skillstheir own version, first seen Nov 6, 2026
- malinskibeniamin/skillstheir own version, first seen Oct 17, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use redis, mongodb and 1 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.
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
hoodiniSkillmongodb
Work with MongoDB databases using best practices. Use when designing schemas, writing queries, building aggregation pipelines, or optimizing performance. Triggers on MongoDB, Mongoose, NoSQL, aggregation pipeline, document database, MongoDB Atlas.
Also in 3 projects that use this
wrsmith108Skilldocker
Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.
Also in 3 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- speakeasy-api/gram★ 277same name
- kid-sid/claude-spellbook★ 190same name
- iliaal/ai-skills★ 45same name
- kumaran-is/claude-code-onboarding★ 35same name
- G1Joshi/Agent-Skills★ 15same name
- xfstudio/skills★ 9same name
- lawless-m/claude-skills★ 6same name
- malinskibeniamin/skills★ 4same name
- stonegiantstudio/skills★ 3same name
- ai4brands-design/claude-skills★ 2same name
11 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 repository7 other files it gives its agents.
- doctrineSkill
- phinxSkill
- phpSkill
- richSkill
- symfony-aiSkill
- symfonySkill
- web-designSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Do not set default values for any timestamps
“Common” is measured: kept by at least 6 in 10 of the 20 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 Skill
Overview
This skill outlines how to use PostgreSQL, table structure, and how to write migrations. It is important that a database is well designed, structured, and maintained. After a certain size, it is much easier to change code than it is to change a database.
Table Structure
Tables should almost always use the following structure unless sufficient reason not to is provided:
- Identity primary key with type
bigintand namedid - Metadata timestamps with types
timestamptz- Non-null columns
created_atandupdated_atare required - Do not set default values for any timestamps
- Any other metadata timestamp columns
- Non-null columns
- Foreign keys, roughly ordered by importance
- Entity date and timestamp columns
- Non-required entity metadata columns
- Required entity columns
- Error and metrics columns
Metadata Timestamps
The columns created_at and updated_at must be placed immediately after the id column. These should be NOT NULL and should not have a default value.
Foreign Keys
Foreign keys must be placed immediately after all metadata timestamp columns. They should be ordered by "importance" where importance is defined by how required the column is for a row in the table to exist. For example, in a multi-tenant application, the column that represents the tenant would come before a column that represents the user that created the record. Knowing what tenant the record belongs to is necessary for the row to exist, but knowing who created it isn't.
The CASCADE operation should be set for all foreign keys. If a foreign key is NOT NULL, the CASCADE operation should be DELETE.
Entity Date and Timestamp Columns
Non-required Entity Metadata Columns
Required Entity Columns
Error and Metrics Columns
Examples
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.

