agentleFS
Microsoft AzureKnown publisherAzure/kubelogin/.github/skills/update-changelog/SKILL.md

update-changelog

Skill586 starsChanged 9 months agoMITView on GitHub

Generate and update CHANGELOG.md for a new kubelogin release. Use this when asked to prepare release notes or update the changelog for a new version. Fetches merged pull requests since the previous release, categorizes them, identifies new contributors, and prepares a formatted entry for CHANGELOG.md.

  • Reads credentials

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the previous tag is not provided, the tool will auto-detect the latest stable release.

    line 34
  2. Very specific:

    Run make changelog to generate the changelog entry:

    line 37
  3. Distinctive:

    When running locally, insert the content manually:

    line 51
  4. Distinctive:

    After the changelog is merged to the default branch, trigger the Release workflow to create the GitHub release and build binaries.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

The make changelog target runs hack/changelog-generator/main.go, which:

  1. Calls gh api repos/Azure/kubelogin/releases/latest to determine the previous release tag (when SINCE_TAG is not supplied).
  2. Calls gh api repos/Azure/kubelogin/commits/<tag> to get the tag date.
  3. Fetches all merged pull requests since that date via gh api --paginate repos/Azure/kubelogin/pulls?state=closed&....
  4. Categorizes each PR by GitHub label, then by title prefix:
    • Bug Fixes — label bug/fix; prefix fix:, bugfix:, hotfix:
    • Enhancements — label enhancement/feature; prefix feat:
    • Maintenance — label dependencies/chore; prefix bump , update
    • Doc Update — label documentation/docs; prefix docs:
    • What's Changed — everything else
  5. Identifies first-time contributors by comparing PR authors against all prior merged PR authors.
  6. Writes a formatted entry to changelog-entry.md.

Steps to follow

  1. Determine the new version number (e.g. 0.2.15) and, optionally, the previous tag to compare from (e.g. v0.2.14).
    • If the previous tag is not provided, the tool will auto-detect the latest stable release.
  2. Run make changelog to generate the changelog entry:

    # SINCE_TAG is optional – omit to auto-detect the latest release tag
    VERSION=0.2.15 make changelog
    # or explicitly:
    VERSION=0.2.15 SINCE_TAG=v0.2.14 make changelog

    This writes the formatted entry to changelog-entry.md. When using the GitHub Actions workflow, the workflow then inserts changelog-entry.md after the header of CHANGELOG.md and opens a pull request automatically.

    When running locally, insert the content manually:

    # Insert after the "# Change Log" header
    {
      head -n 2 CHANGELOG.md
      echo ""
      cat changelog-entry.md
      echo ""
      tail -n +3 CHANGELOG.md
    } > CHANGELOG.md.new && mv CHANGELOG.md.new CHANGELOG.md
    rm changelog-entry.md

    Authentication is handled automatically by the gh CLI. Ensure you are authenticated (gh auth login) or that GH_TOKEN/GITHUB_TOKEN is set in the environment.

  3. Review the updated CHANGELOG.md and edit entries as needed for clarity before committing.
  4. After the changelog is merged to the default branch, trigger the Release workflow to create the GitHub release and build binaries.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.