postgres-commit-history-article
Skill này làm gì
Skill này xem lịch sử commit PostgreSQL giữa hai commit và viết bài về những thay đổi có ích cho người dùng cơ sở dữ liệu. Skill dành cho DBA và lập trình viên theo dõi các bản phát hành PostgreSQL.
Khi nào nên dùng
- ✓Khi bạn muốn biết PostgreSQL đã thay đổi gì giữa hai commit.
- ✓Khi bạn muốn có bài về tính năng mới của PostgreSQL cho DBA và lập trình viên.
- ✓Khi bạn cần ví dụ sử dụng được đối chiếu với test hoặc tài liệu PostgreSQL.
Liên kết skill
https://github.com/digoal/blog/blob/master/skills/postgres-commit-history-article/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xem các commit PostgreSQL giữa hai ID này và viết bài tiếng Trung về những thay đổi mà DBA cần biết.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill thu thập thông điệp commit mà không đọc toàn bộ diff, chọn các thay đổi có giá trị, đối chiếu tài liệu và test để lấy ví dụ, rồi viết bài.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có đọc mọi thay đổi mã không?
Không. Skill bắt đầu từ nhật ký commit và chỉ đọc đầy đủ thông điệp của các nhóm có giá trị đã chọn.
Skill có cần bản checkout PostgreSQL không?
Có. Skill phải chạy bên trong một bản checkout git của PostgreSQL.
Nếu không có thay đổi nào có giá trị thì sao?
Khi khoảng commit không có thay đổi đáng giá nào, skill sẽ không viết bài.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12371
- Giấy phép
- GPL-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
article-to-podcast-script
8.6kGiúp agent của bạn biến bài viết Markdown thành kịch bản podcast cho một đến bốn người nói, lưu thành file văn bản, mặc định bằng tiếng Trung.
axiom-explainer
8.6kGiúp agent của bạn viết bài tiếng Trung rõ ràng, giải thích một quan điểm, định luật hoặc lý thuyết, kèm ví dụ, giới hạn và sơ đồ đơn giản.
blog-cover-poster
8.6kGiúp agent của bạn biến bài viết hoặc ghi chú thành bộ ảnh poster dọc gồm ảnh bìa và nhiều slide giải thích các ý chính.
buffett
8.6kGiúp agent của bạn suy nghĩ về quyết định công ty và cổ phiếu theo cách Warren Buffett, dựa trên ý tưởng về lợi thế cạnh tranh, quản trị và biên an toàn.
Skill tương tự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.