Update changelog

From quickwit-oss/tantivy · View interactive version

Update changelog is an AI agent skill from the GitHub repository quickwit-oss/tantivy. Update CHANGELOG.md with merged PRs since the last changelog update, categorized by type

How to use this skill

Skill file

Update Changelog

This skill updates CHANGELOG.md with merged PRs that aren't already listed.

Step 1: Determine the changelog scope

Read CHANGELOG.md to identify the current unreleased version section at the top (e.g., Tantivy 0.26 (Unreleased)).

Collect all PR numbers already mentioned in the unreleased section by extracting #NNNN references.

Step 2: Find merged PRs not yet in the changelog

Use gh to list recently merged PRs from the upstream repo:

gh pr list --repo quickwit-oss/tantivy --state merged --limit 100 --json number,title,author,labels,mergedAt

Filter out any PRs whose number already appears in the unreleased section of the changelog.

Step 3: Consolidate related PRs

Before categorizing, group PRs that belong to the same logical change. This is critical for producing a clean changelog. Use PR descriptions, titles, cross-references, and the files touched to identify relationships.

Merge follow-up PRs into the original:

Filter out bugfixes on unreleased features:

Step 4: Review the actual code diff

Do not rely on PR titles or descriptions alone. For every candidate PR, run gh pr diff <number> --repo quickwit-oss/tantivy and read the actual changes. PR titles are often misleading — the diff is the source of truth.

What to look for in the diff:

Skip PRs where the diff reveals the change is not meaningful enough for the changelog — e.g., cosmetic renames, trivial visibility tweaks, test-only changes, etc.

Step 5: Categorize each PR group

For each PR (or consolidated group) that survived the diff review, determine its category:

If a PR doesn't clearly fit any category (e.g., CI-only changes, internal refactors with no user-facing impact, dependency bumps with no behavior change), skip it — not everything belongs in the changelog.

When unclear, use your best judgment or ask the user.

Step 6: Format entries

Each entry must follow this exact format:

- Description [#NUMBER](https://github.com/quickwit-oss/tantivy/pull/NUMBER)(@author)

Rules:

Step 7: Present changes to the user

Show the user the proposed changelog entries grouped by category before editing the file. Ask for confirmation or adjustments.

Step 8: Update CHANGELOG.md

Insert the new entries into the appropriate sections of the unreleased version block. If a section doesn't exist yet, create it following the order: Bugfixes, Features/Improvements, Performance.

Append new entries at the end of each section (before the next section header or version header).

Step 9: Verify

Read back the updated unreleased section and display it to the user for final review.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.