postgres-commit-history-article
できること
このスキルは、2つのコミットの間にあるPostgreSQLのコミット履歴を確認し、データベースの利用者にとって重要な変更について記事を書きます。PostgreSQLのリリースを追うDBAと開発者向けです。
使う場面
- ✓2つのコミットの間でPostgreSQLに何が変わったかを知りたいとき。
- ✓DBAと開発者に向けた、PostgreSQLの新機能の記事が欲しいとき。
- ✓使用例を、PostgreSQLのテストやドキュメントに照らして確認したいとき。
スキルのリンク
https://github.com/digoal/blog/blob/master/skills/postgres-commit-history-article/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“これら2つのIDの間にあるPostgreSQLのコミットを見て、DBAが知るべき変更について中国語の記事を書いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、完全な差分なしでコミットのメッセージを集め、価値のある変更を選び、そのグループについてのみ完全なメッセージを読みます。そして、ドキュメントとテストで例を確認して、記事を書きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Postgres Commit History Article
Goal
Turn a PostgreSQL commit range into a publishable Chinese Markdown article for DBA and application developers when the range contains valuable user-facing or operator-facing changes. Work from commit logs first, then only deep-read full commit messages for selected valuable groups. Before writing usage examples, inspect relevant SQL tests, documentation, or source context so examples are rich and correct. Do not analyze code diffs unless needed to understand a mechanism or produce a practical example.
Inputs
Expect the user to run the skill from a PostgreSQL git checkout and provide:
commitid1 commitid2
Treat the range as inclusive of both endpoints. If the order is unclear, test both ancestry directions and use the direction that produces a valid range; otherwise ask for clarification.
Workflow
Verify context.
- Confirm
git rev-parse --show-toplevelsucceeds. - Confirm the repository looks like PostgreSQL, for example
src/backend,src/include, andconfigure.acexist. - Create
markdown/in the current project if missing.
- Confirm
Collect commit metadata without diffs.
- Prefer
scripts/collect_pg_commits.pyfrom this skill. - Run it from the PostgreSQL repository root:
- Prefer
python3 /path/to/postgres-commit-history-article/scripts/collect_pg_commits.py commitid1 commitid2 --output markdown/postgres-commit-range.json
- The JSON includes inclusive commits, short ids, authors, dates, subjects, full bodies, revert relationships, merge flags, and suggested chronological/reverse order.
First-pass analysis from short descriptions only.
- Read every commit subject.
- Exclude commits that were reverted inside the selected range. Exclude both the reverting commit and the reverted commit unless the revert itself carries lasting user-facing value.
- Treat typo, buildfarm-only, test-only, documentation-only, translation-only, and mechanical cleanup commits as low priority unless they expose an important operational change.
- Select commits with clear value for DBAs or application developers: performance, reliability, observability, planner/executor behavior, SQL features, replication, recovery, backup, storage, concurrency, security, compatibility, extension APIs, client tooling, migration risk, and behavior changes.
- If no commits remain with clear DBA or application-developer value, stop here. Return an analysis summary in the chat and do not write a Markdown article file.
Group related commits.
- Group commit ids that solve the same problem, evolve the same feature, fix follow-ups for the same change, or are authored by the same person around the same subsystem.
- Prefer problem-oriented group names, not file/subsystem names. Example: "降低逻辑复制槽失效风险" is better than "replication commits".
- Preserve each group's commit short ids and authors.
Deep-read only selected groups.
- For each selected group, read the full commit messages from the collected JSON or with
git show -s --format=fuller <commit>. - Still avoid code diff analysis. Inspect diff only when the full message is insufficient to explain the mechanism, compatibility impact, or example.
- Capture exact behavior changes, affected users, constraints, GUCs/options/functions/catalogs, and upgrade caveats.
- For each selected group, read the full commit messages from the collected JSON or with
Verify example material before writing usage examples.
- Before writing each
使用示例, inspect nearby authoritative material for that feature:- SQL regression tests:
src/test/regress/sql/,src/test/isolation/specs/,src/test/subscription/t/,src/test/recovery/t/, extension test SQL, or TAP tests. - Documentation:
doc/src/sgml/, especially pages for SQL commands, functions, catalogs, GUCs, monitoring views, replication, backup/recovery, and release notes. - Source context only when tests/docs do not expose enough syntax or operational detail.
- SQL regression tests:
- Prefer examples adapted from committed tests or docs, then simplify them for readers.
- If a commit introduces SQL syntax, functions, catalog columns, GUCs, views, command options, psql/client behavior, replication/recovery operations, or extension APIs, verify the exact names and valid usage from tests/docs before writing.
- Record the evidence used for each example in your working notes and mention key paths when useful in the article.
- If tests/docs/source do not provide enough confidence, do not fabricate a runnable SQL example. Use an oper
- Before writing each
よくある質問
すべてのコードの変更を読みますか?
いいえ。まずコミットのログから始め、選ばれた価値のあるグループについてだけ、完全なメッセージを読みます。
PostgreSQLのチェックアウトは必要ですか?
はい。このスキルは、PostgreSQLのgitのチェックアウトの中で実行する必要があります。
価値のある変更がない場合はどうなりますか?
その範囲に価値のある変更がない場合、スキルは記事を書きません。
詳細
作者による元の説明
Analyze PostgreSQL git commit history between two commit ids and, when valuable DBA/application-developer changes exist, write a Chinese Markdown article for WeChat/公众号 readers with examples checked against SQL tests, docs, or relevant source. Use when the user is inside a PostgreSQL source checkout and provides two commit ids, asks to interpret Postgres commits, summarize a release/development window, identify DBA/application-developer value from commit logs, group related commits, exclude reverted commits, and either output a sourced article under the current project's markdown directory or
repo: digoal/blog
人気
- GitHubのスター
- 8.6k
- ランキング
- #12371
- ライセンス
- 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のメモ、タスク、リンク、プロパティを読み、検索し、作成し、編集するようエージェントを支援します。