数据库表结构设计优化生成|简诗 AI

👤 公众号:简诗AI 📦 v1.0.2 ⭐ 4.5 ⬇️ 79 下载
💻 开发编程 免费

📖 技能介绍


name: database-schema-designer-builder slug: database-schema-designer-builder version: 1.0.2 displayName: "数据库表结构设计优化生成|简诗 AI" summary: "设计优化的可扩展数据库模式,包含正确的表关系、索引和约束,输出含 ASCII ERD 和迁移脚本的完整方案。" description: "设计优化的可扩展数据库模式,包含正确的表关系、索引和约束,输出含 ASCII ERD 和迁移脚本的完整方案。" tags: ["设计创意", "内容创作"]


Database Schema Designer

使用范围与安全规则

本 Skill 只用于“数据库表结构设计优化生成”场景,围绕用户当前提供或明确授权处理的材料完成任务。功能目标:设计优化的可扩展数据库模式,包含正确的表关系、索引和约束,输出含 ASCII ERD 和迁移脚本的完整方案。

  • 默认先在回复中交付分析、方案、草稿、代码建议或检查清单,不主动读取任务范围外的文件、账号和数据。
  • 信息不足时先标记缺口并向用户确认,不用猜测内容填补事实、数字、姓名、结论或权限。

    来源于7w4.net。

  • 涉及发送、发布、上传、删除、支付、投放、部署、同步或其他外部写入时,先展示目标、内容和影响,获得用户对该次动作的明确确认后再执行。
  • 不要求用户在对话里粘贴密码、Cookie、Token、API Key 或私钥;凭据仅用于用户指定的对应官方服务,不回显、不记录、不写入交付物,也不转发到无关地址。
  • 交付前复核事实依据、隐私、版权、平台规则和可执行边界;发现高风险或越权请求时停止相关动作,并给出合规替代方案。

Design optimized, scalable database schemas with proper relationships and indexes.

Contents

  • references/schema-templates.md — SQL/NoSQL schema templates, ASCII ERD, and migration script templates.
  • references/output-format.md — labeled section structure for the final deliverable.
  • references/best-practices.md — naming, data types, indexes, relationships, SQL/NoSQL design rules, and the output quality checklist.

Workflow

  1. Gather requirements. Determine the database engine (PostgreSQL, MySQL, MongoDB, etc.), application domain, main entities, most common queries, expected data volume and growth, performance requirements, and any compliance constraints.

  2. Design the schema. Apply the engine-appropriate rules in references/best-practices.md (SQL Database Design or NoSQL Database Design).

  3. Generate the complete schema. Produce CREATE TABLE statements or collection documents using the templates in references/schema-templates.md.

  4. Create the entity relationship diagram in text format following the ERD template in references/schema-templates.md.

  5. Provide migration scripts with both up and down (rollback) paths, per the migration template in references/schema-templates.md.

  6. Format the complete output using the labeled sections in references/output-format.md.

  7. Verify the result against the output quality checklist in references/best-practices.md.

Example Triggers

  • "Design a database schema for an e-commerce platform"
  • "Create SQL tables for a blog system"
  • "Help me design a MongoDB schema for a social network"
  • "Optimize this database schema for performance"
  • "Generate migration scripts for my schema"

Generate production-ready, optimized database schemas that scale.

🤖 AI 评测

这个 Skill 质量不错,文档结构清晰、模板齐全,能较好地指导数据库设计工作。它覆盖了 SQL 和 NoSQL 两种数据库类型,提供了完整的设计流程和丰富的模板参考。不足之处是示例内容偏少、深度有限,对于复杂场景的指导可能不够深入。总体来说,作为基础工具够用,但想用它处理更专业的需求可能还需要补充资料。

📊 多维度评分

适应性4.4
规范性4.3
有效性4.7
可靠性4.3
可信度4.7

📁 包含文件 (8 个)

📄 DERIVATIVE_NOTICE.md 459 B
📄 LICENSE.md 1 KB
📄 ORIGIN.json 1.2 KB
📄 SKILL.md 3.4 KB
📄 agents/openai.yaml 388 B
📄 references/best-practices.md 2.1 KB
📄 references/output-format.md 732 B
📄 references/schema-templates.md 2.5 KB