postgresql-expert
Skill5 starsChanged 21 days agoMITView on GitHub
Use when PostgreSQL-specific schema, query-plan, indexing, MVCC, maintenance, replication, recovery, pooling, or migration judgment is central.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iwritec0de/app-devtheir own version, first seen Apr 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- iwritec0de/app-dev★ 3same name
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 repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-md-fixerSkill
- arch-docsSkill
- book-to-markdownSkill
- docset-updaterSkill
- humanizerSkill
- news-release-docsSkill
- pdf-guideSkill
- readme-docsSkill
- screenshot-docsSkill
- see-also-docsSkill
- setup-install-usage-docsSkill
- bptools-writer-expertSkill
- color-accessibility-expertSkill
- css-creative-expertSkill
- game-design-expertSkill
- geometry-expertSkill
- glass-expertSkill
- hic-human-interact-expertSkill
- openscad-3d-printing-expertSkill
- podman-expertSkill
- pyside6-engineerSkill
- rust-code-expertSkill
- solid-js-expertSkill
- svg-creator-expertSkill
- typescript-engineerSkill
- ui-ux-engineerSkill
- vision-expertSkill
- wasm-rust-expertSkill
- webwork-writer-expertSkill
- delegate-manager-to-subagentsSkill
- gas-town-workflowSkill
- hang-checkSkill
- html-game-parallel-builderSkill
- parallel-planSkill
- stay-busySkill
- repo-rules-readerSkill
- blueprint-plan-drafterSkill
- ideonomy-plainSkill
- ideonomy-richSkill
- make-goalSkill
- modest-plan-drafterSkill
- audit-code-reviewerSkill
- old-python-code-reviewSkill
- prune-testsSkill
- unit-test-starterSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to make PostgreSQL changes from a stated workload, data model, and operational constraint.
- Distinctive: line 14
Keep application contracts, database schema, migration, query, and operations concerns explicit.
- Distinctive: line 26
Read references/task_selection.md when the work crosses an application or front-end boundary.
- Distinctive: line 35
Read references/project_workflow.md for both project shapes.
- Distinctive: line 49
Read references/local_books.md and references/reference_survey.md when the local corpus is present.
- Distinctive: line 56
Read references/testing_and_oracles.md.
- Distinctive: line 67
Add an index only for a measured workload and keep its write and maintenance cost visible.
- Very specific: line 68
Use EXPLAIN (ANALYZE, BUFFERS) on representative data to justify query-plan changes.
- Distinctive: line 69
Keep transactions short, choose isolation deliberately, and monitor long-running transactions.
- Distinctive: line 72
Use a bounded pool and verify the pooler's transaction semantics before relying on session state.
- Distinctive: line 73
Treat extension installation and upgrades as versioned cluster changes with a tested migration path.
- Distinctive: line 85
When using this skill, aim to produce:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PostgreSQL expert
Overview
Use this skill to make PostgreSQL changes from a stated workload, data model, and operational constraint. Start with the query, schema, cluster role, or recovery objective that the user needs to improve, then gather measured evidence before choosing a database change.
Keep application contracts, database schema, migration, query, and operations concerns explicit. Choose PostgreSQL-native types, constraints, transactions, and indexes that fit the observed access pattern. Treat a replica, a backup, and a tested recovery procedure as separate capabilities.
Workflow
- Classify the PostgreSQL task and select its evidence route.
- Name the affected schema, query, migration, cluster, pooler, or recovery target.
- For base-schema QC or SQL production-readiness audits, read references/schema_qc.md and keep the authorized audit scope explicit.
- Consult references/topic_index.md for the current-documentation route and executable oracle.
- Read references/task_selection.md when the work crosses an application or front-end boundary.
- Detect the project shape and establish a database contract.
- Decide whether the target is an existing service or a greenfield database-backed project.
- Existing: inventory migrations, schema definitions, queries, connection settings, monitoring, backup jobs, and deployment runbooks before changing behavior.
- Greenfield: write the data model, invariants, transaction boundaries, access patterns, and recovery objective before selecting an ORM, pooler, or index set.
- Read references/project_workflow.md for both project shapes.
- Capture a baseline that represents the workload.
- Reproduce the relevant query, write path, maintenance symptom, or recovery procedure with representative data and a recorded environment.
- Capture
EXPLAIN (ANALYZE, BUFFERS)before plan-affecting schema, statistics, or index changes. - Inspect transaction age, locks, table and index growth, replication state, or backup artifacts when the task concerns cluster operations.
- Implement one bounded PostgreSQL change.
- Express data invariants with types, constraints, foreign keys, and transaction boundaries.
- Select indexes from predicates, joins, ordering, selectivity, write cost, and measured plans.
- Make migration steps reversible or explicitly operational, and preserve a rollback or recovery route for production work.
- Read references/local_books.md and references/reference_survey.md when the local corpus is present.
- Validate with a database oracle and preserve evidence.
- Capture
EXPLAIN (ANALYZE, BUFFERS)after the change on the same representative workload. - Compare correctness results, latency, rows, buffer activity, lock behavior, recovery output, or replica state with the baseline and the stated goal.
- Read references/testing_and_oracles.md.
- Review the production path before rollout.
- Confirm current upstream PostgreSQL documentation for release-sensitive syntax and behavior.
- Confirm current upstream PgBouncer documentation for pooler-specific settings and modes.
- Roll out the bounded change in a staging environment, monitor its evidence, and expand it after the bounded check passes.
Implementation defaults
- Model stable concepts with PostgreSQL types and declarative constraints before application checks.
- Add an index only for a measured workload and keep its write and maintenance cost visible.
- Use
EXPLAIN (ANALYZE, BUFFERS)on representative data to justify query-plan changes. - Keep transactions short, choose isolation deliberately, and monitor long-running transactions.
- Tune autovacuum from observed churn and table behavior; schedule disruptive maintenance explicitly.
- Design replication, backups, WAL archiving, restore verification, and failover as tested operations.
- Use a bounded pool and verify the pooler's transaction semantics before relying on session state.
- Treat extension installation and upgrades as versioned cluster changes with a tested migration path.
Quality bar
- State the workload, data distribution, PostgreSQL version, and deployment constraints.
- Preserve correctness before optimizing cost, latency, or capacity.
- Compare plans before and after changes and use the observed differences as improvement evidence.
- Preserve a safe production procedure, including access controls, rollback, and recovery evidence.
- Report assumptions, measurements, and limits that need production confirmation.
Output expectations
When using this skill, aim to produce:
- A classified PostgreSQL task with the selected topic-index route and current documentation source.
- A schema, query, migration, or operational recommendation tied to the target artifact.
- A representative-data baseline and after-change
EXPLAIN (ANALYZE, BUFFERS)comparison when a plan can change. - An executable correctness, maintenance, replication, backup, or recovery oracle with its result.
- A rollout, rollback, or restoration path appropriate to the environment.
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.

