跳到正文
Skillpedia
写作8.6k · #12355

database-foundation-course-writer

它能做什么

这个技能撰写深入的中文文章,讲解数据库功能如何运作、各自的取舍,以及在实践中如何使用。适合数据库架构师、DBA 和应用开发人员。

适用场景

  • ✓你想写一篇关于数据库某项功能工作原理的技术文章的时候。
  • ✓你需要一份带图示和 SQL 示例的实践指南的时候。
  • ✓你手上有官方文档或源代码,想把它们整理成清晰文章的时候。

技能链接

https://github.com/digoal/blog/blob/master/skills/database-foundation-course-writer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/digoal/blog/blob/master/skills/database-foundation-course-writer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我写一篇关于 PostgreSQL B-tree 索引的中文数据库课程文章,附上 SVG 图和实用示例。”

每周 5 个新技能,1 分钟读完。

工作原理

它先收集官方文档、源代码等第一手资料,然后撰写一篇结构完整的文章,图示则另存为独立的 SVG 文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Database Foundation Course Writer

Overview

Write a publishable Chinese Markdown article in the "数据库筑基课" style. The article must help database architects, DBAs, and application developers understand the mechanism, tradeoffs, practice path, and operational boundaries of a database technology. Default to GitHub-renderable Markdown plus referenced SVG figure files.

Inputs

Require or infer:

  • Article title.
  • Reference materials: official docs, product manuals, source repositories, DeepWiki pages, papers, source code, existing local articles, SQL examples, benchmark data, or issue discussions.
  • Target technology category: table storage, index structure, data type/operator, optimizer scan algorithm, execution operator, maintenance mechanism, or scenario practice.

If key references are missing, search primary sources first. Prefer official docs, source code, papers, and project README over secondary summaries.

Output

Save the final article as a .md file. Use the current project's markdown folder when that is the established article-output convention; otherwise use an existing article/output folder if the repository clearly has one. Use a filename derived from the title when no filename is provided, or follow the repository's existing naming convention if obvious.

Save SVG figures as standalone .svg files in a sibling asset directory such as <article-slug>-assets/, unless the repository has an established image/asset convention. Reference them from Markdown with relative image syntax:

![图 1:页面、元组与可见性信息的关系](./<article-slug>-assets/page-tuple-visibility.svg)

Do not save until the article has passed the validation checklist.

Workflow

  1. Parse the title and references.
  2. Classify the topic as table storage, index structure, data type/operator, scan/execution algorithm, or scenario practice.
  3. Read primary references and extract mechanisms, terminology, examples, limits, and source-backed claims.
  4. Build the article around "background pain -> definition -> principle -> tradeoff -> comparison -> practice -> boundary".
  5. Add explanatory diagrams with standalone GitHub-renderable SVG files as the default format; use Markdown tables for compact comparisons and existing reference images only when allowed and source-relevant.
  6. Write runnable examples when possible. Never invent execution output.
  7. Validate logic, examples, citations, Markdown rendering, relative image links, and SVG visibility.
  8. Save the final .md file and its SVG assets.

Article Structure

Use this structure unless the topic strongly requires a different order.

# 数据库筑基课 - <主题>

作者:digoal

日期:<YYYY-MM-DD>

标签:PostgreSQL , PolarDB , DuckDB , 应用开发者 , 数据库筑基课 , <分类标签>

---

## 背景

链接或引用数据库筑基课大纲。说明本节属于哪一类基础能力,并从业务或工程痛点切入。

## 一、它解决什么问题?

说明技术点出现的背景、原问题、传统做法的不足、转化后的问题,以及牺牲的代价。

## 二、它是什么?

给出简洁定义,解释逻辑模型、物理模型、关键术语和适用层次。

## 三、核心原理

解释内部结构、关键算法、数据布局、读写路径、生命周期、复杂度、维护机制。

![图 1:<图名>](./<article-slug>-assets/<figure-name>.svg)

图 1 说明:解释读者应该从图中看到的结构、路径、状态变化或代价关系。

## 四、横向对比

和竞品、相邻技术或不同实现比较,并解释原因。

## 五、效果如何?

说明收益和代价,例如 IO、block/page、压缩比、延迟、吞吐、召回率、误判率、读写空间放大。

## 六、实操 DEMO

给出最小可验证实验、SQL、配置、EXPLAIN 或同类验证。无法执行时明确说明。

## 七、最佳实践

分别面向数据库架构师、DBA、业务开发者给出推荐做法、原因、风险和验证方式。

## 八、适合与不适合场景

绑定 workload 写清楚适合和不适合的原因。

## 九、常见坑

列出真实工程风险和规避方法。

## 十、扩展问题

提出能帮助读者迁移到其他技术的思考题。

## 十一、扩展阅读

列出官方文档、论文、源码、DeepWiki、项目 README、已有相关文章和高质量二手资料。

Topic Guidance

For table storage topics, cover file/page/block/row/column layout, insert/update/delete/read, MVCC or visibility, vacuum/compaction, compression, encoding, cold storage, and read/write/space amplification.

For index topics, cover data organization, build, insert, delete, update, vacuum/merge, search/scan algorithm, complexity, space cost, recall or false positives, and how the optimizer/executor uses the index.

For data type and operator topics, cover representation, operator semantics, index support, selectivity estimation, optimizer impact, and modeling patterns.

For scan and execution topics, cover seq scan, index scan, index only scan, bitmap scan, skip scan, sampling, joins, sort, aggregate, CTE, subquery, parallelism, JIT, vectorized execution, cost model, statistics, memory/disk behavior, and EXPLAIN verification.

For scenario practice topics, cover business model, schema, indexes, partitions, hot/cold split, SQL, bottleneck diagnosis, observability, and evolution path.

Comparison Table

Use a Markdown comparison table when there are meaningfu

常见问题

它使用什么输出格式?

它会保存为一篇 Markdown 文章,并附带独立的 SVG 图文件。

它更倾向于哪些来源?

它优先使用官方文档、源代码和项目说明文件,而不是二手摘要。

我需要提供标题吗?

需要。你提供文章标题,如果没有指定文件名,技能会用它来命名文件。

详情

作者的原始描述

Write Chinese "数据库筑基课" Markdown articles for database architects, DBAs, and application developers. Use when the user provides a database foundation article title and references such as technical docs, product manuals, open-source repositories, DeepWiki pages, papers, source code, or related blog posts, and wants a rigorous, SVG-rich, practice-oriented GitHub-renderable Markdown article saved as a .md file.

repo: digoal/blog

热度

GitHub 星标
8.6k
排名
#12355
许可证
GPL-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能