postgres-commit-history-article
O que ela faz
Esta skill revisa o histórico de commits do PostgreSQL entre dois commits e escreve um artigo sobre mudanças que importam para os usuários do banco. Ela serve para DBAs e desenvolvedores que acompanham as versões do PostgreSQL.
Quando usar
- ✓Quando você quer saber o que mudou no PostgreSQL entre dois commits.
- ✓Quando você quer um artigo sobre novos recursos do PostgreSQL para DBAs e desenvolvedores.
- ✓Quando você precisa de exemplos de uso conferidos nos testes ou na documentação do PostgreSQL.
Link da skill
https://github.com/digoal/blog/blob/master/skills/postgres-commit-history-article/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Veja os commits do PostgreSQL entre estes dois IDs e escreva um artigo em chinês sobre as mudanças que os DBAs devem conhecer.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela coleta as mensagens dos commits sem os diffs completos, escolhe as mudanças valiosas, confere a documentação e os testes para os exemplos e escreve o artigo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ela lê todas as mudanças de código?
Não. Ela começa pelos logs de commits e lê as mensagens completas apenas dos grupos valiosos selecionados.
Preciso de um checkout do PostgreSQL?
Sim, a skill precisa ser executada dentro de um checkout git do PostgreSQL.
E se nenhuma mudança for valiosa?
Quando o intervalo não tiver mudanças valiosas, a skill não escreve nenhum artigo.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 8,6 mil
- Posição no ranking
- #12371
- Licença
- GPL-2.0
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
article-to-podcast-script
8,6 milAjuda seu agente a transformar um artigo em Markdown em roteiro de podcast para um a quatro falantes, salvo em arquivo de texto e em chinês por padrão.
axiom-explainer
8,6 milAjuda seu agente a escrever um artigo claro em chinês que explica um ponto de vista, lei ou teoria, com exemplos, limites e diagramas simples.
blog-cover-poster
8,6 milAjuda seu agente a transformar um artigo ou anotações em um conjunto de imagens verticais, com capa e vários slides que explicam os pontos principais.
buffett
8,6 milAjuda seu agente a analisar empresas e ações como Warren Buffett, usando suas ideias sobre vantagens competitivas, gestão e margem de segurança.
Skills parecidas
obsidian-vault-maintainer
394 milAjuda seu agente a manter um vault de memória compatível com o Obsidian organizado, com links funcionando, propriedades consistentes e seções seguras.
wiki-maintainer
394 milAjuda seu agente a manter uma wiki de memória do OpenClaw com páginas repetíveis, blocos gerenciados seguros e verificações de contradições ou lacunas.
obsidian
394 milPermite que seu agente leia, pesquise, crie e edite notas, tarefas, links e propriedades do Obsidian usando a linha de comando oficial do Obsidian.