Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bitcoin-minor-release-skill

БесплатноБез исполняемых скриптовНе проверен

Automatically generate minor release notes based on the PRs merged into this branch since the last version.

glozowот glozow★ 138 звёзд на GitHub18 установок в других каталогах

Об этом скилле

Bitcoin Core minor release notes

Extract GitHub Pull Request numbers from backport commits and format them for release notes.

Identify Current Release Version

Check CMakeLists.txt to determine what release is being prepared and what BASE_VERSION tag to use.

grep -E "CLIENT_VERSION_(MAJOR|MINOR|BUILD|RC)" CMakeLists.txt | head -4

Example output:

set(CLIENT_VERSION_MAJOR 29)
set(CLIENT_VERSION_MINOR 3)
set(CLIENT_VERSION_BUILD 0)
set(CLIENT_VERSION_RC 1)

This means we're preparing v29.3rc1. The previous release tag to diff from is v29.2.

Determining the BASE_VERSION tag

Find the most recent non-release-candidate tag on the X.x branch:

git tag --list 'vX.*' --sort=-v:refname | grep -v "rc" | head -1

Example for v29.3:

git tag --list 'v29.*' --sort=-v:refname | grep -v "rc" | head -1

This handles cases like:

  • Preparing v29.3 → finds v29.2 (or v29.2.1 if a patch release exists)
  • Preparing v30.1 → finds v30.0.1 if it exists, otherwise v30.0
  • Release candidates use the same BASE_VERSION tag as the final release (e.g. v29.3rc2 and v29.3rc1 should both use v29.2)

Extract PR Numbers

The Github-Pull field in commit messages can use inconsistent formats, so handle all three:

  • Github-Pull: #XXXXX
  • Github-Pull: XXXXX (no #)
  • Github-Pull: bitcoin/bitcoin#XXXXX

Get all unique PR numbers between a tag and HEAD

git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq

Example:

git log v29.2..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq

View all Github-Pull lines (to debug format issues)

git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sort | uniq

Find PRs merged directly to the release branch (not backported from master)

In rare cases, a PR may be merged directly into the X.x branch rather than being backported from master. These appear as merge commits in the subject line and usually don't mention "backport".

git log <tag>..HEAD --oneline | grep "Merge bitcoin/bitcoin#" | grep -iv "backport"

Example:

git log v29.2..HEAD --oneline | grep "Merge bitcoin/bitcoin#" | grep -iv "backport"

Look Up PR Titles from Master

This is much faster than looking them up through github. Merge commits in master use the format: Merge bitcoin/bitcoin#XXXXX: <title>

Search for specific PR numbers

git log master --oneline | grep -E "bitcoin/bitcoin#(PR1|PR2|PR3|...)"

Example:

git log master --oneline | grep -E "bitcoin/bitcoin#(31423|32473|33050|33105)"

Formatting for Release Notes

1. Generate the PR list with titles

Combine the above commands to get a formatted list:

# First, get the PR numbers
prs=$(git log <tag>..HEAD --pretty=format:"%b" | grep -i "github-pull" | sed 's/.*#//' | sed 's/Github-Pull: //' | sort -n | uniq | tr '\n' '|' | sed 's/|$//')

# Then look up titles
git log master --oneline | grep -E "bitcoin/bitcoin#($prs)"

2. Format as markdown table

The output from the merge commit search can be transformed into a markdown table:

PR Number Title Backport?
#XXXXX Description of the change Yes/No

3. Categorize for release notes

Group PRs by type based on their title prefixes. Default to Misc:

  • Validation: validation, consensus
  • P2P Network: net, p2p
  • Mempool: mempool, tx relay policy, policy, fee est
  • Wallet: wallet, wallettool
  • Mining: miner, mining
  • Build: build, guix, depends
  • Tests: test, qa
  • Docs: doc, docs
  • Misc: ci, contrib

4. Get contributors for credits section

git log --format='- %aN' <tag>..HEAD | grep -v 'merge-script' | sort -fiu

5. Get supported systems

Find the supported systems string from the BASE_VERSION's historical release notes:

grep -A2 "is supported and" doc/release-notes/release-notes-<BASE_VERSION>.md | tail -2 | tr '\n' ' '

Example for v29.3rc1 (BASE_VERSION is v29.2):

grep -A2 "is supported and" doc/release-notes/release-notes-29.2.md | tail -2 | tr '\n' ' '

This extracts the line like Linux Kernel 3.17+, macOS 13+, and Windows 10+.

Release notes format

See release-notes-template.md for the full template structure. Copy it to doc/release-notes.md and fill in:

  • Replace <VERSION> with the version number (e.g., 30.1 or 29.3rc1)
  • Replace <DIRNAME> with the download directory path:
    • Final releases: bitcoin-core-X.Y/
      • Example: v28.3 → `bitcoin
Полный SKILL.md на GitHub

Установить bitcoin-minor-release-skill в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

release-notes-template.md

FAQ

Что делает скилл bitcoin-minor-release-skill?

Automatically generate minor release notes based on the PRs merged into this branch since the last version.

Как установить скилл bitcoin-minor-release-skill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bitcoin-minor-release-skill запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bitcoin-minor-release-skill с