jgamaraalv/ts-dev-kit/postgresql
Claude Code and agent skill by jgamaraalv/ts-dev-kit
- community
Checking that the SKILL.md file is still in the repository.
PostgreSQL 16+ reference for writing queries, designing schemas, managing indexes, and optimizing performance. Use when: (1) writing SQL queries (SELECT, INSERT, UPDATE, DELETE, CTEs, window functions, subqueries), (2) designing or altering table schemas (CREATE TABLE, constraints, sequences, data types), (3) choosing or creating indexes (B-tree, GIN, GiST, BRIN, partial, expression), (4) managing transactions and isolation levels (BEGIN/COMMIT, savepoints, MVCC), (5) working with JSONB data and jsonpath, (6) analyzing query performance with EXPLAIN ANALYZE, or (7) using the psql CLI.
Install
npx vskill@latest install jgamaraalv/ts-dev-kit/postgresqlSKILL.md
PostgreSQL 16+ Reference
Version: 16+. All syntax is standard; most features apply to PostgreSQL 13+.
<quick_reference>
Quick patterns
</quick_reference>
<rules>
Key non-obvious facts
- Every statement runs in a transaction. Without
BEGIN, each statement auto-commits. jsonbstores parsed binary (faster queries);jsonstores raw text (exact input preserved). Preferjsonb.LIKE 'foo%'can use B-tree;LIKE '%foo'cannot — usepg_trgmGIN for suffix search.CREATE INDEX CONCURRENTLYavoids table lock but cannot run inside a transaction block.EXPLAINwithoutANALYZEshows the planner's _estimate_. Always useEXPLAIN (ANALYZE, BUFFERS)for real data.- Null values are stored in indexes by B-tree (unlike some other databases).
IS NULLcan use an index. SERIAL/BIGSERIALare shorthand for sequence + default; preferGENERATED ALWAYS AS IDENTITY(SQL standard).- Default isolation level is Read Committed.
SERIALIZABLEprevents all anomalies but may abort transactions.
</rules>
<references>
Reference files
Load the relevant file when working on a specific topic:
| Topic | File | When to read | |
|---|---|---|---|
| SELECT, JOINs, CTEs, window functions | references/queries.md | Writing or debugging any query | |
| CREATE TABLE, ALTER TABLE, constraints | references/ddl-schema.md | Designing or modifying schemas | |
| Index types, creation, strategy | references/indexes.md | Adding indexes or fixing slow queries | |
| Transactions, savepoints, isolation | references/transactions.md | Concurrency, locking, isolation issues | |
| JSONB operators, GIN, jsonpath | references/jsonb.md | Working with JSON/JSONB columns | |
| EXPLAIN output, VACUUM, stats | references/performance.md | Query tuning or performance analysis | |
| psql meta-commands | references/psql-cli.md | Working interactively in psql |
</references>
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/postgresql/SKILL.md
Popularity
- Repository stars
- 12
- Repository npm downloads, 7 days
- 17
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jgamaraalv/ts-dev-kit/postgresql)