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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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:

Do not save until the article has passed the validation checklist.
Workflow
- Parse the title and references.
- Classify the topic as table storage, index structure, data type/operator, scan/execution algorithm, or scenario practice.
- Read primary references and extract mechanisms, terminology, examples, limits, and source-backed claims.
- Build the article around "background pain -> definition -> principle -> tradeoff -> comparison -> practice -> boundary".
- 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.
- Write runnable examples when possible. Never invent execution output.
- Validate logic, examples, citations, Markdown rendering, relative image links, and SVG visibility.
- Save the final
.mdfile 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 说明:解释读者应该从图中看到的结构、路径、状态变化或代价关系。
## 四、横向对比
和竞品、相邻技术或不同实现比较,并解释原因。
## 五、效果如何?
说明收益和代价,例如 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図のファイルを保存します。
どの情報源を優先しますか?
二次的な要約よりも、公式ドキュメント、ソースコード、プロジェクトのreadmeを優先します。
タイトルを指定する必要がありますか?
記事のタイトルを指定します。ファイル名が指定されていない場合は、そのタイトルを使ってファイル名を付けます。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
article-to-podcast-script
8.6kエージェントが、Markdownの記事を、1〜4人の話し手による一人称のポッドキャストの台本に変え、テキストファイルとして保存できるよう支援します。既定は中国語です。
axiom-explainer
8.6kエージェントが、一つの見解、法則、理論を説明する、わかりやすい中国語の記事を書けるよう支援します。例、限界、簡単な図を含みます。
blog-cover-poster
8.6kエージェントが、記事やメモを、表紙と、要点を説明するいくつかのスライドからなる縦型のポスター画像のセットに変えられるよう支援します。
buffett
8.6kエージェントが、ウォーレン・バフェットの考え方(参入障壁、経営陣、安全域)を使って、企業や株式の判断を検討できるよう支援します。
似ているスキル
obsidian-vault-maintainer
394kObsidianと相性のよいメモリボールトを整理して、動くウィキリンク、統一されたプロパティ、安全に生成されるセクションを保つようエージェントを支援します。
wiki-maintainer
394k同じ内容を繰り返し保てるページ、安全な管理ブロック、矛盾や抜けの確認を使って、OpenClawのメモリウィキを維持するようエージェントを支援します。
obsidian
394k公式のObsidianコマンドラインを使って、Obsidianのメモ、タスク、リンク、プロパティを読み、検索し、作成し、編集するようエージェントを支援します。