siniyayousuf/everything_claudecode/postgres-patterns
Claude Code and agent skill by siniyayousuf/everything_claudecode
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
쿼리 최적화, 스키마 설계, 인덱싱, 보안을 위한 PostgreSQL 데이터베이스 패턴. Supabase 모범 사례 기반.
Install
npx vskill@latest install siniyayousuf/everything_claudecode/postgres-patternsSKILL.md
The same SKILL.md was published earlier as lakhanpatil99/claude-setup/postgres-patterns.
PostgreSQL 패턴
PostgreSQL 모범 사례 빠른 참조. 자세한 가이드는 database-reviewer 에이전트를 사용하세요.
활성화 시점
- SQL 쿼리 또는 마이그레이션을 작성할 때
- 데이터베이스 스키마를 설계할 때
- 느린 쿼리를 문제 해결할 때
- Row Level Security를 구현할 때
- 커넥션 풀링을 설정할 때
빠른 참조
인덱스 치트 시트
| 쿼리 패턴 | 인덱스 유형 | 예시 | |
|---|---|---|---|
WHERE col = value | B-tree (기본값) | 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) | |
| 시계열 범위 | BRIN | CREATE INDEX idx ON t USING brin (col) |
데이터 타입 빠른 참조
| 사용 사례 | 올바른 타입 | 지양 | |
|---|---|---|---|
| ID | bigint | int, random UUID | |
| 문자열 | text | varchar(255) | |
| 타임스탬프 | timestamptz | timestamp | |
| 금액 | numeric(10,2) | float | |
| 플래그 | boolean | varchar, int |
일반 패턴
복합 인덱스 순서:
커버링 인덱스:
부분 인덱스:
RLS 정책 (최적화):
UPSERT:
커서 페이지네이션:
큐 처리:
안티패턴 감지
구성 템플릿
관련 항목
- 에이전트:
database-reviewer- 전체 데이터베이스 리뷰 워크플로우 - 스킬:
clickhouse-io- ClickHouse 분석 패턴 - 스킬:
backend-patterns- API 및 백엔드 패턴
Supabase Agent Skills 기반 (크레딧: Supabase 팀) (MIT License)
Security
- Security scanPassed, 90 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 repositoryCheckingdocs/ko-KR/skills/postgres-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
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/siniyayousuf/everything_claudecode/postgres-patterns)