·postgres-drizzle
</>

postgres-drizzle

ccheney/robust-skills

PostgreSQL 和 Drizzle ORM 最佳實踐。觸發器:PostgreSQL、Postgres、Drizzle、數據庫、 模式、表、列、索引、查詢、遷移、ORM、關係、連接、事務、SQL、 drizzle-kit、連接池、N+1、JSONB、RLS。 使用場合:編寫數據庫模式、查詢、遷移或任何與數據庫相關的代碼。 創建 API、後端或數據模型時主動應用。

160安裝·7熱度·@ccheney

安裝

$npx skills add https://github.com/ccheney/robust-skills --skill postgres-drizzle

SKILL.md

| CRITICAL | Index all foreign keys | Prevents full table scans on JOINs | | CRITICAL | Use relational queries for nested data | Avoids N+1 | | HIGH | Connection pooling in production | Reduces connection overhead | | HIGH | EXPLAIN ANALYZE slow queries | Identifies missing indexes | | MEDIUM | Partial indexes for filtered subsets | Smaller, faster indexes |

| MEDIUM | UUIDv7 for PKs (PG18+) | Better index locality |

| No FK index | Slow JOINs, full scans | Add index on every FK column | | N+1 in loops | Query per row | Use with: relational queries | | No pooling | Connection per request | Use @neondatabase/serverless or similar | | push in prod | Data loss risk | Always use generate + migrate |

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/ccheney/robust-skills --skill postgres-drizzle
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 postgres-drizzle?

PostgreSQL 和 Drizzle ORM 最佳實踐。觸發器:PostgreSQL、Postgres、Drizzle、數據庫、 模式、表、列、索引、查詢、遷移、ORM、關係、連接、事務、SQL、 drizzle-kit、連接池、N+1、JSONB、RLS。 使用場合:編寫數據庫模式、查詢、遷移或任何與數據庫相關的代碼。 創建 API、後端或數據模型時主動應用。 來源:ccheney/robust-skills。

如何安裝 postgres-drizzle?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ccheney/robust-skills --skill postgres-drizzle 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/ccheney/robust-skills

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-01