postgres-commit-history-article
하는 일
이 스킬은 두 커밋 사이의 PostgreSQL 커밋 기록을 검토하고, 데이터베이스 사용자에게 중요한 변경에 대한 글을 씁니다. PostgreSQL 릴리스를 따라가는 DBA와 개발자를 위한 것입니다.
사용하는 경우
- ✓두 커밋 사이에서 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에게 요청하는 예시
“이 두 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.6kMarkdown 글을 1인칭 팟캐스트 대본으로 바꿔, 화자 1명부터 4명까지 텍스트 파일로 저장하도록 돕습니다. 기본 언어는 중국어입니다.
axiom-explainer
8.6k하나의 관점, 법칙, 이론을 설명하는 명확한 중국어 글을 쓰도록 돕습니다. 예시, 한계, 간단한 다이어그램을 포함합니다.
blog-cover-poster
8.6k글이나 메모를 세로형 포스터 이미지 묶음으로 바꿉니다. 표지와 핵심 내용을 설명하는 여러 장의 슬라이드를 포함합니다.
buffett
8.6k워런 버핏의 해자, 경영진, 안전마진에 대한 생각을 활용해 기업과 주식에 대한 결정을 신중하게 검토하도록 돕습니다.