agentleFS
Microsoft AzureKnown publisherAzure/typespec-azure/.github/skills/hotfix-release/SKILL.md

hotfix-release

Skill27 starsChanged 2 years agoMITView on GitHub

Publish a hotfix (patch) release for one or more packages from an existing release branch. Use when the user wants to kick, start, or perform a hotfix release on a release/* branch.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, confirm the following with the user:

    line 14
  2. Distinctive:

    Verify the fix commit is present on the release branch:

    line 32
  3. Distinctive:

    Create a new branch from the release branch.

    line 40
  4. Very specific:

    Single package: use the package shortname, e.g.

    line 47
  5. Very specific:

    Multiple packages: use a descriptive group name, e.g.

    line 48
  6. Very specific:

    All packages: use a general name, e.g. publish/hotfix/all-february-2026

    line 49
  7. Very specific:

    Ensure the core submodule is at the correct commit for this branch:

    line 51
  8. Very specific:

    IMPORTANT: If the core submodule pointer was changed by the version bump, reset it — the submodule should NOT change in a hotfix:

    line 63
  9. Distinctive:

    Verify only the intended files are changed:

    line 69
  10. Distinctive:

    Commit the version bump:

    line 84
  11. Distinctive:

    Wait for CI to pass

    line 104
  12. Distinctive:

    After the hotfix PR is merged:

    line 110

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Hotfix Release

Instructions for publishing a hotfix (patch) release for one or more packages from an existing release/* branch.

⚠️ Prerequisites: A release/<sprint-name> branch must already exist with the fix commit(s) merged into it. If it does not exist, create one from the last release tag commit first.

REQUIRED PARAMETERS

Before starting, confirm the following with the user:

  • Release branch name: e.g. release/february-2026
  • Package(s) being hotfixed: one or more packages, e.g.
    • @azure-tools/typespec-client-generator-core (tcgc)
    • @azure-tools/typespec-azure-core (azure-core)
    • @azure-tools/typespec-autorest (autorest)

REQUIRED STEPS (ALL MUST BE COMPLETED IN ORDER)

1. PREPARATION

  1. Fetch the release branch:

    git fetch origin release/<sprint-name>
  2. Verify the fix commit is present on the release branch:

    git log origin/release/ -10 < sprint-name > --oneline

2. CREATE HOTFIX PUBLISH BRANCH

  1. Create a new branch from the release branch. Use a name that reflects the package(s) being hotfixed:

    git checkout -b publish/hotfix/<name>-<sprint-name> origin/release/<sprint-name>

    Naming convention:

    • Single package: use the package shortname, e.g. publish/hotfix/tcgc-february-2026
    • Multiple packages: use a descriptive group name, e.g. publish/hotfix/tcgc-and-azure-core-february-2026
    • All packages: use a general name, e.g. publish/hotfix/all-february-2026
  2. Ensure the core submodule is at the correct commit for this branch:

    git submodule update --init

3. Run the version bump command with --ignore-policies (required for hotfix releases since the release branch is not main):

pnpm chronus version --ignore-policies
  1. IMPORTANT: If the core submodule pointer was changed by the version bump, reset it — the submodule should NOT change in a hotfix:

    git checkout -- core
  2. Verify only the intended files are changed:

    git diff --stat

    You should see ONLY (repeated per hotfixed package):

    • Deleted .chronus/changes/<file>.md (one per fix)
    • Modified packages/<package-name>/package.json
    • Modified packages/<package-name>/CHANGELOG.md

⚠️ If any packages were bumped that are NOT in the hotfix target list, investigate before proceeding.

4. COMMIT AND PUSH

  1. Commit the version bump:

    git add -A
    git commit -m "Bump version for hotfix: <pkg1>@<version1>, <pkg2>@<version2>, ..."

    Examples:

    • Single: "Bump version for hotfix: tcgc@0.65.1"
    • Multiple: "Bump version for hotfix: tcgc@0.65.1, azure-core@1.2.1"
  2. Push the branch:

    git push origin publish/hotfix/<name>-<sprint-name>

5. CREATE PR AND MERGE

  1. Open a PR from publish/hotfix/<name>-<sprint-name> targeting release/<sprint-name> (NOT main)
  2. Wait for CI to pass
  3. Squash merge the PR
  4. The publish pipeline will automatically release the new package version(s) to NPM

6. BACKMERGE TO MAIN

After the hotfix PR is merged:

  1. A workflow should automatically create a backmerge branch named backmerge/release/<sprint-name>-YYYY-MM-DD
  2. Find the backmerge branch at https://github.com/Azure/typespec-azure/branches
  3. Open a PR from the backmerge branch targeting main
  4. Rebase merge the backmerge PR into main

⚠️ The backmerge ensures the hotfix and version bump are reflected in main. Do NOT skip this step.

IMPORTANT REMINDERS

  • ⚠️ The PR MUST target release/<sprint-name>, NOT main
  • ⚠️ Always use --ignore-policies with pnpm chronus version on release branches
  • ⚠️ Always reset the core submodule pointer if it was changed (git checkout -- core)
  • ⚠️ Only the targeted package(s) should have version changes — verify with git diff --stat
  • ⚠️ Always complete the backmerge to main after the hotfix is published
  • ⚠️ If the release/<sprint-name> branch does not exist yet, create it from the last release tag commit before starting

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.