跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Postgresql Table Design

技能 已验证 活跃

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

目的

To provide expert-level, actionable advice for creating robust, performant, and maintainable PostgreSQL database schemas, guiding users through best practices and potential pitfalls.

功能

  • Detailed PostgreSQL data type recommendations
  • Guidance on indexing, constraints, and partitioning
  • Coverage of PostgreSQL-specific "gotchas" and advanced features
  • Best practices for schema normalization and denormalization
  • Includes practical SQL examples for common table designs

使用场景

  • Designing new PostgreSQL tables and schemas
  • Reviewing and optimizing existing PostgreSQL schemas
  • Understanding PostgreSQL data type nuances and recommendations
  • Implementing efficient indexing and constraint strategies for PostgreSQL

非目标

  • Providing general SQL advice
  • Automating schema creation or modification
  • Covering non-PostgreSQL database systems
  • Troubleshooting runtime query performance issues

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install database-design@claude-code-workflows

质量评分

已验证
98 /100
13 days ago 分析

信任信号

最近提交15 days ago
星标35.3k
许可证MIT
状态
查看源代码

类似扩展

DBHub Database Query Guide

100

DBHub MCP 服务器查询数据库指南。每当您需要通过 DBHub 的 MCP 工具(search_objects、execute_sql)来探索数据库模式、检查表或运行 SQL 查询时,请使用此技能。在任何数据库查询任务、模式探索、数据检索或通过 MCP 执行 SQL 时激活,即使用户只说“检查数据库”或“为我查找一些数据”。此技能可确保您遵循正确的先探索后查询的工作流程,而不是猜测表结构。

技能
bytebase

Dsql

100

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL migration, DDL operations, query plan explainability, and SQL compatibility validation. Triggers on phrases like: DSQL, Aurora DSQL, create DSQL table, DSQL schema, migrate to DSQL, distributed SQL database, serverless PostgreSQL-compatible database, DSQL query plan, DSQL EXPLAIN ANALYZE, why is my DSQL query slow.

技能
awslabs

Migrate Validate

100

Validate pending migrations for foreign key consistency, rollback safety, and best practices

技能
ruvnet

Azure Postgres Ts

100

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL connection", "PostgreSQL TypeScript", "pg Pool", "passwordless postgres".

技能
microsoft

Sql Optimization

100

Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.

技能
github

Senior Backend Engineer

100

Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.

技能
alirezarezvani