·postgres-drizzle
</>

postgres-drizzle

ccheney/robust-skills

PostgreSQL 和 Drizzle ORM 最佳实践。触发器:PostgreSQL、Postgres、Drizzle、数据库、 模式、表、列、索引、查询、迁移、ORM、关系、连接、事务、SQL、 drizzle-kit、连接池、N+1、JSONB、RLS。 使用场合:编写数据库模式、查询、迁移或任何与数据库相关的代码。 创建 API、后端或数据模型时主动应用。

164安装·9热度·@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