資料庫表結構設計最佳化生成|簡詩 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 和遷移指令碼的完整方案。

  • 預設先在回覆中交付分析、方案、草稿、程式碼建議或檢查清單,不主動讀取任務範圍外的檔案、賬號和資料。
  • 資訊不足時先標記缺口並向用戶確認,不用猜測內容填補事實、數字、姓名、結論或許可權。
  • 涉及傳送、釋出、上傳、刪除、支付、投放、部署、同步或其他外部寫入時,先展示目標、內容和影響,獲得使用者對該次動作的明確確認後再執行。
  • 不要求使用者在對話裡貼上密碼、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.

    本技能來自小蔥技能站7w4.net。

  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