database-design SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

database-design from projanvil/mindforge is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add projanvil/mindforge/database-design@git:20261016.6f8a292

Pins git:20261016.6f8a292 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
projanvil/mindforge
Path
plugins/mindforge-zh-cn/skills/database-design/SKILL.md
Versions recorded
1
Latest version
git:20261016.6f8a292, committed Oct 16, 2026
Size
14,671 bytes
Repository stars
3
License
MIT

数据库设计和优化技能,涵盖 ER 图、规范化、索引、分片、查询优化和数据库最佳实践。使用此技能设计数据库架构、优化查询、规划数据架构,或需要数据库扩展和性能调优指导时使用。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 数据库设计技能 - 系统提示词

你是一位拥有 15 年以上经验的专家级数据库架构师,精通设计高性能、可扩展和可维护的数据库系统。你专注于关系型数据库设计、ER 建模、规范化、索引优化、分片、数据迁移和灾难恢复。

## 何时使用

触发场景:当用户提出以下请求时,使用本 skill:

- 当需要设计数据库表结构或数据模型时
- 当需要优化慢查询或规划索引时
- 当用户要求制定迁移、分库分表或备份方案时

## 你的专业领域

### 核心数据库技术领域
- **ER 图设计**: 实体关系建模、基数、弱/强实体
- **数据库规范化**: 1NF 到 5NF、BCNF、反规范化策略
- **索引优化**: B-Tree、哈希、全文、空间索引、查询优化
- **分片与分区**: 水平/垂直分片、分区策略、分布式数据库
- **数据迁移**: 在线/离线迁移、双写、CDC、验证策略
- **备份与恢复**: 全量/增量备份、PITR、灾难恢复、RTO/RPO
- **查询优化**: EXPLAIN 分析、慢查询优化、执行计划
- **Schema 设计**: 表设计、约束、关系、数据类型
- **性能调优**: 查询调优、服务器配置、缓存策略

### 技术深度
- SQL(MySQL、PostgreSQL、Oracle、SQL Server)
- NoSQL(MongoDB、Redis、Cassandra、DynamoDB)
- 时序数据库(InfluxDB、TimescaleDB)
- 列式数据库(ClickHouse、Druid)
- 图数据库(Neo4j、JanusGraph)
- 数据库内部原理(存储引擎、事务处理、MVCC)
- 分布式系统(CAP 定理、一致性模型、复制)

## 你遵循的核心原则

### 1. 数据库规范化

#### 第一范式 (1NF)
```
规则: 每列包含原子值,无重复组

❌ 不良设计:
users
| id | name | phones               |
|----|------|----------------------|
| 1  | John | 123-456, 789-012    |

✅ 良好设计:
users
| id | name |
|----|------|
| 1  | John |

user_phones
| id | user_id | phone    |
|----|---------|----------|
| 1  | 1       | 123-456  |
| 2  | 1       | 789-012  |
```

#### 第二范式 (2NF)
```
规则: 1NF + 无部分依赖(非键属性依赖于整个主键)

❌ 不良设计(部分依赖):
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add projanvil/mindforge/database-design@sha256:1ccb0e1108b026b9

The line at the top of this page pins the label git:20261016.6f8a292, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_tco3z4njwfiok4zp.svg)](https://markdownregistry.com/a/art_tco3z4njwfiok4zp)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 16, 2026.

versioncommittedcommitsizeaudit
git:20261016.6f8a292 latest2026-10-16 6f8a292 14,671 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (14671 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

projanvil/mindforge · 3 stars · license MIT · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_tco3z4njwfiok4zp
GET https://markdownregistry.com/api/v1/resolve?ref=projanvil/mindforge/database-design
GET https://markdownregistry.com/api/v1/blob/1ccb0e1108b026b931d5f0979fff8417dcc2421ef711b53fc4408adcafe7acb2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from projanvil/mindforge

api-design SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/api-design/SKILL.md · Professional API design skill covering RESTful APIs, GraphQL, API versioning, authentication, idempotency, and API…
git:20261016.6f8a292 · audit A · 3 stars
database-design SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/database-design/SKILL.md · Database design and optimization skill covering ER diagrams, normalization, indexing, sharding, query optimization, and…
git:20261016.6f8a292 · audit A · 3 stars
design-pattern SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/design-pattern/SKILL.md · Expert knowledge in software design patterns covering GoF patterns, architectural patterns, and modern design…
git:20261016.6f8a292 · audit A · 3 stars
enterprise-java SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/enterprise-java/SKILL.md · Enterprise Java development skill covering Spring ecosystem, microservices, design patterns, performance optimization…
git:20261016.6f8a292 · audit A · 3 stars
frontend-react SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-react/SKILL.md · Professional React development skill covering Next.js, React Server Components, Tailwind CSS, and the React ecosystem…
git:20261016.6f8a292 · audit A · 3 stars
frontend-svelte SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-svelte/SKILL.md · Professional frontend development skill covering Svelte, SvelteKit, shadcn-svelte, and Bun ecosystem. Use this skill…
git:20261016.6f8a292 · audit B · 3 stars
frontend-vue SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/frontend-vue/SKILL.md · Professional Vue.js development skill covering Nuxt 3, Vue 3 Composition API, Tailwind CSS, and the Vue ecosystem. Use…
git:20261016.6f8a292 · audit B · 3 stars
git-guru SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/git-guru/SKILL.md · Expert Git skills covering interactive rebase, worktree management, reflog recovery, bisect debugging, advanced…
git:20261016.6f8a292 · audit A · 3 stars
go-development SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/go-development/SKILL.md · Go language development skill focusing on Fiber web framework, Cobra CLI, GORM ORM, Clean Architecture, and concurrent…
git:20261016.6f8a292 · audit A · 3 stars
javascript-typescript SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/javascript-typescript/SKILL.md · Professional JavaScript and TypeScript development skill covering modern ES6+, TypeScript, Node.js, Express, React…
git:20261016.6f8a292 · audit A · 3 stars
product-management SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/product-management/SKILL.md · Expertise in product management lifecycle, from ideation to launch. Covers requirements gathering, user story creation…
git:20261016.6f8a292 · audit A · 3 stars
python-development SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/python-development/SKILL.md · Professional Python development skill covering modern Python 3.10+, FastAPI, Django, Flask, async programming, data…
git:20261016.6f8a292 · audit A · 3 stars

Every file in projanvil/mindforge

Other files named database-design

database-design SKILL.md skill
vodailocz/kilo-kit-mcp · skills/engineering/database-design/SKILL.md · Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
git:20260502.38d5305 · audit A · 28 stars
database-design SKILL.md skill
svngoku/coding-agents-skills · skills/database-design/SKILL.md · Design relational database schemas (and choose when to go NoSQL) that stay maintainable and fast. Use this skill…
git:20260813.4b33420 · audit A · 12 stars
database-design SKILL.md skill
hybridlabor-api/bdb-dev-optimized-agent-skills · skills/global_config/database-design/SKILL.md · Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
git:20260827.e9312a3 · audit A · 6 stars
database-design SKILL.md skill
hybridlabor-api/aos · skills/global_config/database-design/SKILL.md · Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
git:20260827.e9312a3 · audit A · 6 stars
database-design SKILL.md skill
fabioc-aloha/alex_skill_mall · plugins/data-analytics/database-design/skills/database-design/SKILL.md · Schema design, normalization, query optimization, and data modeling patterns
git:20260728.80a7ab6 · audit A · 5 stars
database-design SKILL.md skill
atnexuslab/tightship · content/skills/database-design/SKILL.md
git:20261015.8e86e2c · audit C · 4 stars
database-design SKILL.md skill
projanvil/mindforge · skills/zh-cn/database-design/SKILL.md · 数据库设计和优化技能,涵盖 ER 图、规范化、索引、分片、查询优化和数据库最佳实践。使用此技能设计数据库架构、优化查询、规划数据架构,或需要数据库扩展和性能调优指导时使用。
git:20261009.b4230f2 · audit A · 3 stars
database-design SKILL.md skill
projanvil/mindforge · plugins/mindforge-en/skills/database-design/SKILL.md · Database design and optimization skill covering ER diagrams, normalization, indexing, sharding, query optimization, and…
git:20261016.6f8a292 · audit A · 3 stars

Browse by kind, by grade A, or by owner.