romankovsv/claude-code-python-devops-mlops/postgres-patterns
Claude Code and agent skill by romankovsv/claude-code-python-devops-mlops
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
PostgreSQL database patterns for query optimization, schema design, indexing, and security.
Install
npx vskill@latest install romankovsv/claude-code-python-devops-mlops/postgres-patternsSKILL.md
The same SKILL.md was published earlier as izangi2714/claude-code-python-stack/postgres-patterns.
PostgreSQL Patterns
Quick reference for PostgreSQL best practices.
When to Activate
- Writing SQL queries or migrations
- Designing database schemas
- Troubleshooting slow queries
- Implementing Row Level Security
Index Cheat Sheet
| Query Pattern | Index Type | Example | |
|---|---|---|---|
WHERE col = value | B-tree (default) | CREATE INDEX idx ON t (col) | |
WHERE col > value | B-tree | CREATE INDEX idx ON t (col) | |
WHERE a = x AND b > y | Composite | CREATE INDEX idx ON t (a, b) | |
WHERE jsonb @> '{}' | GIN | CREATE INDEX idx ON t USING gin (col) | |
WHERE tsv @@ query | GIN | CREATE INDEX idx ON t USING gin (col) | |
| Time-series ranges | BRIN | CREATE INDEX idx ON t USING brin (col) |
Data Type Quick Reference
| Use Case | Correct Type | Avoid | |
|---|---|---|---|
| IDs | bigint | int, random UUID | |
| Strings | text | varchar(255) | |
| Timestamps | timestamptz | timestamp | |
| Money | numeric(10,2) | float | |
| Flags | boolean | varchar, int |
Common Patterns
Anti-Pattern Detection
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/postgres-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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/romankovsv/claude-code-python-devops-mlops/postgres-patterns)