database-schema-design
设计可靠的数据库架构
糟糕的架构选择会导致查询缓慢、数据重复和迁移风险。此技能可指导 SQL 和 NoSQL 架构设计、索引、关系以及迁移规划。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "database-schema-design" from https://skillstore.io/skills/supercent-io-database-schema-design.md and its manifest at https://skillstore.io/api/skills/supercent-io-database-schema-design/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“database-schema-design”。 Design a PostgreSQL schema for an e-commerce app with users, products, orders, and reviews.
预期结果:
一个规范化的架构计划,包含用户、产品、订单、订单项、类别和评价表。它包括键、关系、索引和迁移说明。
正在使用“database-schema-design”。 Plan a MongoDB schema for a high-read chat application.
预期结果:
面向用户、会话和消息的集合设计。它说明反规范化字段、参与者索引、消息历史访问以及读取性能权衡。
正在使用“database-schema-design”。 Review an existing schema that has slow joins and inconsistent foreign keys.
预期结果:
一份评审摘要,用于识别缺失的索引、薄弱的约束、关系缺口,以及应用修复的安全迁移步骤。
安全审计
安全All static findings appear to be false positives caused by Markdown code fences, SQL and Mermaid examples, reference URLs, and relative documentation links. No evidence found of prompt injection, executable command behavior, unauthorized network access, filesystem abuse, or malicious intent in the reviewed files.
风险因素
⚙️ 外部命令 (35)
🌐 网络访问 (8)
📁 文件系统访问 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/supercent-io-database-schema-design/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/supercent-io-database-schema-design?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/supercent-io-database-schema-design?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/supercent-io-database-schema-design/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/supercent-io-database-schema-design.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
supercent-io. (2026). database-schema-design security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/supercent-io-database-schema-design/audits/4BibTeX 引用
@techreport{supercent-io-supercent-io-database-schema-design-2026,
author = {supercent-io},
title = {database-schema-design security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/supercent-io-database-schema-design/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "database-schema-design security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "supercent-io"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/supercent-io-database-schema-design/audits/4"
identifiers:
- type: other
value: "skillstore:supercent-io-database-schema-design:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
规划新产品架构
在开始实现之前,为应用程序创建表、键和关系。
重构缓慢的数据库
识别可以降低查询延迟的规范化、索引和关系变更。
记录数据模型
为团队评审生成 ERD 说明、表描述和迁移结构。
试试这些提示
Design a database schema for a new application. Use PostgreSQL. The domain is [domain]. The main entities are [entities]. Include tables, keys, and relationships.
Improve this schema for relationship integrity and query performance. Add foreign keys, junction tables, unique constraints, and indexes for these query patterns: [queries].
Create a migration plan for this schema change: [change]. Include up steps, down steps, data backfill notes, locking risks, and rollback concerns.
Review this database design for a production system with [volume] records and [traffic pattern]. Assess normalization, indexes, constraints, partitioning, migration risk, and data security.
最佳实践
- 提供数据库引擎、预期规模、查询模式和关系规则。
- 根据真实业务规则审查生成的键、约束和索引。
- 在生产变更之前,要求提供迁移步骤和回滚说明。
避免
- 在未说明实体或关系的情况下请求架构输出。
- 未经测试就将示例迁移直接复制到生产环境。
- 在没有明确查询依据的情况下为每一列添加索引。
常见问题
此技能支持哪些数据库?
它可以生成迁移计划吗?
它会运行数据库命令吗?
它能帮助制定索引策略吗?
它对 NoSQL 建模有用吗?
为了获得最佳结果,我应该提供什么?
开发者详情
作者
supercent-io许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
f93e9bb0daca99badb6a7e574b97737155d57cb3
维护新鲜度
2026/7/18
使用量
21 次下载 · 93 次浏览
文件结构
📄 SKILL.md