postgres-commit-history-article
Что он делает
Этот скилл просматривает историю коммитов PostgreSQL между двумя коммитами и пишет статью об изменениях, важных для пользователей баз данных. Он нужен DBA и разработчикам, которые следят за выпусками PostgreSQL.
Когда использовать
- ✓Когда вы хотите знать, что изменилось в PostgreSQL между двумя коммитами.
- ✓Когда вы хотите статью о новых возможностях PostgreSQL для DBA и разработчиков.
- ✓Когда нужны примеры использования, проверенные по тестам или документации PostgreSQL.
Ссылка на скилл
https://github.com/digoal/blog/blob/master/skills/postgres-commit-history-article/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Посмотри коммиты PostgreSQL между этими двумя ID и напиши статью на китайском об изменениях, которые должны знать 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?
Да, скилл должен работать внутри git-копии PostgreSQL.
Что если ценных изменений нет?
Если в диапазоне нет ценных изменений, скилл статью не пишет.
Подробности
Оригинальное описание автора
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
- Обновлён
- 01.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
article-to-podcast-script
8.6kПомогает агенту превратить статью в Markdown в сценарий подкаста от первого лица для одного–четырёх ведущих, сохранённый в текстовый файл, по умолчанию на китайском.
axiom-explainer
8.6kПомогает агенту написать понятную статью на китайском о точке зрения, законе или теории: с примерами, границами применимости и простыми схемами.
blog-cover-poster
8.6kПомогает агенту превратить статью или заметки в набор вертикальных постеров: обложку и несколько слайдов, которые объясняют главные мысли.
buffett
8.6kПомогает агенту обдумывать решения о компаниях и акциях так, как это делает Уоррен Баффет, опираясь на его идеи о рвах, менеджменте и запасе прочности.
Похожие скиллы
obsidian-vault-maintainer
394kПомогает агенту поддерживать в порядке хранилище памяти, совместимое с Obsidian: рабочие вики-ссылки, единые свойства и безопасные автогенерируемые разделы.
wiki-maintainer
394kПомогает агенту вести вики памяти OpenClaw: страницы остаются повторяемыми, управляемые блоки защищены, а противоречия и пробелы проверяются.
obsidian
394kПозволяет агенту читать, искать, создавать и редактировать заметки, задачи, ссылки и свойства Obsidian с помощью официальной командной строки Obsidian.