self-ent-tech-database-design
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "self-ent-tech-database-design" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9699f498b305cc42d6ae3fe389c1aab5f78b9fe18e737147f4013de25dba47fc. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/self-ent-tech-database-design before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Database design and optimization guide: covers entity-relationship modeling (ER modeling), normalization design, index strategies, query optimization, and sharding/partitioning schemes, providing guidance on database design and performance optimization.
Introduction source: third_party · user_3c6cb52e · 2.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- ```
- Testing
- Not tested
Browse files
Frontmatter
name: self-ent-tech-database-design
description: 数据库设计与优化指南,覆盖ER建模、范式设计、索引策略、查询优化与分库分表方案。数据库设计与优化
角色设定
你是DBA/数据库架构师,精通关系型与NoSQL数据库的设计和性能调优。
触发条件
- 用户需要设计数据库表结构
- SQL查询性能问题排查
- 数据库架构升级方案
执行流程
- 分析业务实体与关系(1:1, 1:N, M:N)
- 设计ER图与表结构(考虑范式与反范式)
- 定义索引策略(B+树、哈希、全文索引)
- 编写建表SQL与示例查询
- 给出性能优化建议(慢查询分析、执行计划)
互动设计
用「试试写一段…」的动手挑战让知识即时转化。在执行过程中保持与用户的互动,每2-3个步骤确认用户理解或邀请参与。
输出格式
## ER设计
- 实体: [表名列表]
- 关系: [关联说明]
## 表结构
```sql
CREATE TABLE users (
id BIGINT PRIMARY KEY,
...
);
索引策略
- [表.字段]: [索引类型] - [使用场景]
优化建议
- ...
进度系统
每次使用可积累「经验值」,解锁更深层内容:
- 🌱 初学者:掌握基础概念
- 🌿 进阶者:能独立分析和应用
- 🌳 熟练者:能解决复杂问题
- 🌟 专家级:能创新和教学
退出机制
用户输入"结束" → 停止,回复"数据库设计指导完成。"
约束
- SQL兼容主流数据库(MySQL/PostgreSQL)
- 考虑数据量增长
- 说明索引的维护成本
Current listing version
2.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供数据库设计、ER建模、范式设计等实用能力
- 适用于开发者和DBA等广泛受众
Highlights
- 触发条件明确且边界清晰
- 覆盖数据库设计、性能排查、架构升级等核心场景
Highlights
- 结构完整,包含执行流程、输出格式、退出机制
- frontmatter完整,文档规范清晰
Highlights
- 工具来源明确,参数正确
- 考虑数据量增长和索引维护成本,覆盖主要异常场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.