with one click
database-design
数据库设计原则与决策(Database design)。包含模式设计、索引策略、ORM 选择与 Serverless 数据库。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
数据库设计原则与决策(Database design)。包含模式设计、索引策略、ORM 选择与 Serverless 数据库。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
务实的编码标准—— 简洁、直接、不做过度设计、不写无用注释(Pragmatic coding standards)
性能分析原则。测量、分析与优化技术。
API design principles and decision-making(API 设计原则与决策逻辑)。REST vs GraphQL vs tRPC selection(选择)、response formats(响应格式)、versioning(版本控制)、pagination(分页)。
App Builder(应用构建编排器)主编排器。根据自然语言请求创建全栈应用,确定项目类型、选择技术栈并协调智能体。
Project scaffolding templates(项目脚手架模板)。用于从零创建新项目。包含 12 个技术栈模板。
Architectural decision-making framework(架构决策框架)。Requirements analysis(需求分析)、trade-off evaluation(权衡评估)、ADR documentation(架构决策记录)。Use when making architecture decisions or analyzing system design(用于架构决策与系统设计分析)。
| name | database-design |
| description | 数据库设计原则与决策(Database design)。包含模式设计、索引策略、ORM 选择与 Serverless 数据库。 |
| allowed-tools | Read, Write, Edit, Glob, Grep |
学习如何思考(THINK),而非机械复制 SQL 模式。
仅阅读与请求相关的文档! 查阅内容地图,找到所需信息。
| 文件 | 描述 | 阅读时机 |
|---|---|---|
database-selection.md | PostgreSQL vs Neon vs Turso vs SQLite | 选择数据库时 |
orm-selection.md | Drizzle vs Prisma vs Kysely | 选择 ORM 时 |
schema-design.md | 范式化、主键、关系设计 | 设计模式时 |
indexing.md | 索引类型、复合索引 | 性能调优时 |
optimization.md | N+1 问题、EXPLAIN ANALYZE | 查询优化时 |
migrations.md | 安全迁移、Serverless 数据库 | 模式变更时 |
在设计模式(Schema)之前:
[FAIL] 为简单应用默认使用 PostgreSQL(SQLite 可能已足够)
[FAIL] 忽略索引设计
[FAIL] 在生产环境中使用 SELECT *
[FAIL] 在结构化数据更优时强行存储 JSON
[FAIL] 忽略 N+1 查询问题