Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

postgresql-data-engineering

/postgresql-data-engineering

Projektuje, sprawdza i naprawia schematy, zapytania, migracje i pule połączeń w PostgreSQL, także w przypadku awarii produkcji.

Licencja
MIT
Ostatnia zmiana repozytorium
30.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
9
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 30.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje, sprawdza i naprawia schematy, zapytania, migracje i pule połączeń w PostgreSQL, także w przypadku awarii produkcji.

Oryginalny opis (EN)

Design, review, troubleshoot, or improve PostgreSQL schemas, queries, transactions, migrations, pooling, security, and production recovery. Use for PostgreSQL engineering decisions; skip unrelated backend work and trivial SQL or text edits.

Jak działa

  1. Establish the decision context
  2. Read the guidance relevant to the task
  3. Keep guarantees and side effects explicit
  4. Verify the actual invariant
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 722 słów
Podgląd SKILL.md
---
name: postgresql-data-engineering
description: Design, review, troubleshoot, or improve PostgreSQL schemas, queries, transactions, migrations, pooling, security, and production recovery. Use for PostgreSQL engineering decisions; skip unrelated backend work and trivial SQL or text edits.
---

# PostgreSQL Data Engineering

Preserve the application's data invariants, tenant boundaries, durability, and recoverability while solving the requested problem with the least necessary complexity. Explicit user requirements and repository instructions take precedence over this skill's recommendations.

## Establish the decision context

Identify the task: modeling, query diagnosis, concurrency repair, migration review, integration/pooling, incident response, or recovery planning. Follow a targeted issue through its actual application/worker transaction and generated SQL; do not expand every SQL change into a full database audit.

Inspect relevant instructions, schema and migrations, constraints/indexes, query plans, driver/ORM transaction APIs, pool settings, consumers, tests, and deployment topology. Establish the server major/minor version, extensions, provider restrictions, driver and pooler versions. Use authorized metadata or configuration; do not expose credentials while collecting evidence. Check whether reads reach a primary or replica and which role really executes them.

For consequential decisions, state the business invariant, observed failure/evidence, chosen mechanism, and main tradeoff. Establish relevant workload/skew, contention, latency, data size, availability and recovery requirements. Infer from evidence and ask only for unresolved facts that materially affect correctness, authorization, or operational impact. Keep independent work moving while answers are pending.

Reuse sound schema, drivers, migration tools, observability, and application boundaries. Do not prescribe RLS, SERIALIZABLE, PgBouncer, partitioning, sharding, Redis, new extensions, or microservices without evidence of a benefit that justifies their costs. A slow request can be a pool or application problem rather than a database configuration problem.

## Read the guidance relevant to the task

| Decision | Reference |
| --- | --- |
| Data modeling, types, constraints, tenant relationships, roles/RLS/functions | [Schema and security](references/schema-security.md) |
| MVCC, invariants under concurrency, retries, job claiming, driver ownership and pool state | [Transactions and connections](references/transactions-connections.md) |
| Slow SQL, plans/statistics, index design, measured read/write costs | [Queries and indexes](references/queries-indexes.md) |
| DDL/backfills, mixed application versions, concurrent indexes, upgrades/recovery of migrations | [Migrations](references/migrations.md) |
| Incidents, vacuum/storage/WAL, replicas, backup/restore and failover | [Operations and recovery](references/operations-recovery.md) |
| Source authority, version differences, disputed or evolving behavior | [Source register](references/sources.md) |

Load only the relevant references. Verify significant or unfamiliar PostgreSQL, driver, pooler, and provider behavior against the installed version's official manual/release notes. These references are a dated synthesis; current/development docs do not establish support on an older production server. Disclose missing runtime or research access rather than inventing behavior or execution evidence.

## Keep guarantees and side effects explicit

Separate statement atomicity, multi-statement isolation, committed local effects, external effects, replica visibility, and recoverability. A transaction wrapper does not prove correct connection ownership or prevent every race. An acknowledged commit, lost connection, or timed-out request has different implications for retry safety. Never infer an external payment/message was rolled back by PostgreSQL.

Treat proposed SQL, plans, and live execution as different deliverables. EXPLAIN ANALYZE executes SQL, including functions and triggers; rollback does not undo every side effect. Use disposable/appropriate environments for experiments. Keep live investigation bounded and read-only unless changes are authorized. Destructive DDL, irreversible backfills, disruptive maintenance, restore and failover require explicit authorized scope and a concrete recovery path; skill invocation alone does not authorize them. Prepare reviewable commands and impact before seeking any missing approval; preserve authorization already given.

Own PostgreSQL guarantees and their application integration. Coordinate API behavior or cross-service workflow changes explicitly; use complementary engineering skills only when that work is in scope, without depending on them.

## Verify the actual invariant

Implement the focused change through affected schema, SQL, integration, migration and operational documentation. For reviews, lead with actionable findings tied to evidence, impact and a practical correction. Preserve data and supported consumers; do not break them for naming or stylistic consistency.

Use normal project checks and focused PostgreSQL tests appropriate to the risk. Exercise real independent connections for a concurrency claim, the actual runtime role for RLS, representative distributions for plans, migration interruption/lock impact when relevant, and an isolated restore for recoverability. Inspect durable state and effect counts, not only returned rows or success codes. Mocks, SQL parsing, SQLite, and one sequential request cannot prove PostgreSQL isolation, planner behavior, or recovery.

Compare before/after correctness, latency/resource use, and compatibility where affected. Stop expanding tests once meaningful checks pass unless a new change, failure, or unresolved risk warrants more. Report what changed, why, executed evidence, rollout/recovery implications, and genuine limitations. Proposed checks and plausible SQL are not executed tests or proof of production readiness.
Pliki w paczce (9)
  • LICENSE 1 KB
  • SKILL.md 6 KB
  • agents/openai.yaml 1 KB
  • references/migrations.md 6 KB
  • references/operations-recovery.md 9 KB
  • references/queries-indexes.md 7 KB
  • references/schema-security.md 7 KB
  • references/sources.md 9 KB
  • references/transactions-connections.md 7 KB

Wersje

W bazie nie ma innych skilli o nazwie postgresql-data-engineering.

Migawka bazy z 13.11.2026 · wersja paczki c6bc4bd57903 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100database-engineering
    Projektuje, zapytuje i optymalizuje relacyjne bazy, zwłaszcza PostgreSQL: schematy, indeksy, transakcje, kopie zapasowe i produkcyjne migracje.
  • 90postgres-drizzle
    Pisze i przegląda schematy PostgreSQL, zapytania, migracje i kod Drizzle ORM, dbając o relacje, indeksy i wydajność połączeń.
  • 100postgresql
    Pomaga przy zmianach w PostgreSQL: schematy, SQL, indeksy, transakcje, migracje, role i wydajność bazy.
  • 100postgresql
    Pomaga projektować schematy PostgreSQL, optymalizować zapytania, indeksować i administrować: JSONB, partycjonowanie, RLS, CTE, funkcje okna, EXPLAIN ANALYZE i pule połączeń.
  • 100database-design
    Projektuje schematy, migracje i optymalizuje zapytania w PostgreSQL, MySQL i bazach NoSQL.
  • 90go-backend-engineering
    Buduje, przegląda i naprawia backendy i workery w Go: współbieżność, konteksty, HTTP, integracje i odzyskiwanie po awariach.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.