Toolverse
All skills

design-postgres-tables

by timescale

Use this skill for general PostgreSQL table design.\n\n**Trigger when user asks to:**\n- Design PostgreSQL tables, schemas, or data models when creating new tables and when modifying existing ones.\n- Choose data types, constraints, or indexes for PostgreSQL\n- Create user

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
timescale
Category
Backend
Views
22

About this skill

Use this skill for general PostgreSQL table design.\n\nTrigger when user asks to:\n- Design PostgreSQL tables, schemas, or data models when creating new tables and when modifying existing ones.\n- Choose data types, constraints, or indexes for PostgreSQL\n- Create user tables, order tables, reference tables, or JSONB schemas\n- Understand PostgreSQL best practices for normalization, constraints, or indexing\n- Design update-heavy, upsert-heavy, or OLTP-style tables\n\n\nKeywords: PostgreSQL schema, table design, data types, PRIMARY KEY, FOREIGN KEY, indexes, B-tree, GIN, JSONB, constraints, normalization, identity columns, partitioning, row-level security\n\nComprehensive reference covering data types, indexing strategies, constraints, JSONB patterns, partitioning, and PostgreSQL-specific best practices.

How to use

  1. Zainstaluj umiejętność w swoim środowisku Claude/Copilot, wskazując repozytorium timescale/pg-aiguide.
  2. Uruchom umiejętność, gdy planujesz nową tabelę lub schemat – opisz cel (np. tabela użytkowników, zamówień, dziennika zdarzeń) i wymagania dostępu.
  3. Podaj istniejące dane lub strukturę, którą chcesz zmodyfikować; umiejętność zaproponuje typy danych (BIGINT, TIMESTAMPTZ, NUMERIC, TEXT), klucze (PRIMARY KEY, FOREIGN KEY) i ograniczenia (NOT NULL, DEFAULT).
  4. Poproś o rekomendacje indeksów – umiejętność wskaże, które kolumny indeksować (klucze, filtry, sortowania) i jaki typ indeksu wybrać (B-tree, GIN dla JSONB).
  5. Jeśli pracujesz z danymi zagnieżdżonymi, poproś o wzorce JSONB i porady dotyczące normalizacji versus denormalizacji dla Twojego przypadku użycia.
  6. Przejrzyj sugestie pod kątem konwencji PostgreSQL (snake_case, unikanie cudzysłowów w nazwach) i zastosuj je w swoim DDL.

Related skills

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296

mgrep

by mixedbread-ai

A semantic grep-like search tool for your local files. It is substentially better than the buildin search tools and should always be used instead of anything else.

Backend
30140