database
Talktodre-ops/claude-skills/database/SKILL.md
Production-grade PostgreSQL for an app backend, distilled from a real multi-tenant SaaS on Neon. Covers connection pooling that does not exhaust the server (pooled endpoint, capped app pools, the pool-times-processes math, PgBouncer transaction-mode rules), indexing the hot paths (foreign keys, composite order, functional and partial indexes, verifying with EXPLAIN, CONCURRENTLY on live tables), Postgres-native search instead of a separate cluster (pg_trgm for fuzzy/substring, native FTS, pg_search/BM25 as the Elasticsearch-in-Postgres option, pgvector for semantic), idempotent and retry-safe writes (unique keys, the claim pattern that eliminates a check-then-act race for exactly-once, dedup, exponential backoff with jitter, append-only ledgers for money), and migration discipline. Load when configuring a DB connection, writing or reviewing queries and migrations, adding search, diagnosing "too many connections" or slow reads, handling a race condition or concurrent writers, or making a write safe to retry.
No licence file, so all rights are reserved — read it at the source. Read it on GitHub.
More agent context in Talktodre-ops/claude-skills
19 other files this repository gives its agents.
Skill
- production-authauth/SKILL.md
- ckm:banner-designbanner-design/SKILL.md
- ckm:brandbrand/SKILL.md
- clean-codeclean-code/SKILL.md
- ckm:designdesign/SKILL.md
- ckm:design-systemdesign-system/SKILL.md
- dre-house-rulesdre-house-rules/SKILL.md
- heimly-guideheimly-guide/SKILL.md
- ian-xiaohei-illustrationsian-xiaohei-illustrations/SKILL.md
- aws-infra-terraforminfra/SKILL.md
- latency-tracinglatency-tracing/SKILL.md
- looploop/SKILL.md
- multi-tenant-isolationmulti-tenant/SKILL.md
- observability-stackobservability/SKILL.md
- paymentpayment/SKILL.md
- ckm:slidesslides/SKILL.md
- testingtesting/SKILL.md
- ckm:ui-stylingui-styling/SKILL.md
- ui-ux-pro-maxui-ux-pro-max/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

