hotfix-release
Skill646 starsChanged 24 days agoMITView on GitHub
Create a hotfix release branch, cherry-pick commits, bump the version, and open a draft PR. Use when: hotfix, patch release, cherry-pick to release, hotfix nuget, hotfix npm, release branch fix, backport fix.
- Commits and pushes
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 11 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Create a hotfix release for a previously published NuGet or npm package.
- Distinctive: line 21
If any input is missing, use the AskUserQuestion tool to collect it:
- Very specific: line 23
If package type is unclear, ask: nuget or npm?
- Very specific: line 24
If version is missing, list recent tags with git tag -l "nuget/v*" --sort=-version:refname | head -10 (or npm/v*) and let the user pick
- Distinctive: line 25
If commits are missing, ask for the commit SHAs or PR numbers to cherry-pick
- Distinctive: line 36
If the tag doesn't exist, stop and tell the user.
- Distinctive: line 40
NuGet: Use 4-part versioning. Check for existing hotfix tags:
- Very specific: line 46
If no prior hotfix: new version is {{version}}.1
- Very specific: line 47
If {{version}}.N exists: new version is {{version}}.N+1
- Distinctive: line 49
npm: Use semver patch bump. Parse the version parts and increment patch:
- Very specific: line 52
If npm/v1.31.1 exists, use 1.31.2, etc.
- Distinctive: line 75
If a cherry-pick conflicts:
- Distinctive: line 78
Ask them to resolve
- Distinctive: line 79
After resolution, run git cherry-pick --continue
- Very specific: line 104
Create a draft PR targeting release/{{type}}-v{{version}} (not main):
- Distinctive: line 112
After creating the PR, print a summary:
- Distinctive: line 135
Branch already exists: Ask the user if they want to use the existing branch or create a new one
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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.
Files
Create a hotfix release for a previously published NuGet or npm package.
Input: The user provides:
- Package type:
nugetornpm - Version to patch: The published version to hotfix (e.g.,
0.0.45for NuGet,1.31.0for npm) - Commits to cherry-pick: One or more commit SHAs, PR numbers, or branch names containing the fix
If any input is missing, use the AskUserQuestion tool to collect it:
- If package type is unclear, ask:
nugetornpm? - If version is missing, list recent tags with
git tag -l "nuget/v*" --sort=-version:refname | head -10(ornpm/v*) and let the user pick - If commits are missing, ask for the commit SHAs or PR numbers to cherry-pick
Steps
1. Validate the tag exists
git fetch origin --tags
git rev-parse "{{type}}/v{{version}}" >/dev/null 2>&1If the tag doesn't exist, stop and tell the user. List available tags for that package type to help them.
2. Determine the hotfix version
NuGet: Use 4-part versioning. Check for existing hotfix tags:
git tag -l "nuget/v{{version}}.*" --sort=-version:refname- If no prior hotfix: new version is
{{version}}.1 - If
{{version}}.Nexists: new version is{{version}}.N+1
npm: Use semver patch bump. Parse the version parts and increment patch:
1.31.0→1.31.1- If
npm/v1.31.1exists, use1.31.2, etc.
Announce the computed hotfix version to the user before proceeding.
3. Create the release branch
git checkout -b release/{{type}}-v{{version}} {{type}}/v{{version}}
git push origin release/{{type}}-v{{version}}4. Create the fix branch and cherry-pick
git checkout -b fix/hotfix-{{type}}-v{{hotfix_version}} release/{{type}}-v{{version}}Cherry-pick each provided commit:
git cherry-pick {{commit_sha}}If a cherry-pick conflicts:
- Show the conflicting files to the user
- Ask them to resolve
- After resolution, run
git cherry-pick --continue
5. Bump the version
NuGet: Edit packages/host/Version.props — set <VersionPrefix> to the hotfix version:
<VersionPrefix>{{hotfix_version}}</VersionPrefix>npm: Edit packages/typescript-sdk/core/package.json and any other affected packages — set "version" to the hotfix version. Rush version policies apply to all packages in the typescript-sdk policy, so update each affected package.
6. Commit the version bump
git add -A
git commit -m "chore(host): bump {{type}} version to {{hotfix_version}} for hotfix" --no-verify7. Push and create a draft PR
git push origin fix/hotfix-{{type}}-v{{hotfix_version}}Create a draft PR targeting release/{{type}}-v{{version}} (not main):
- Title:
fix({{type}}): hotfix v{{hotfix_version}} - Body: List the cherry-picked commits and the version bump
- Draft: true
8. Summary
After creating the PR, print a summary:
✅ Hotfix prepared
Package type: {{type}}
Base version: {{version}}
Hotfix version: {{hotfix_version}}
Release branch: release/{{type}}-v{{version}}
Fix branch: fix/hotfix-{{type}}-v{{hotfix_version}}
PR: {{pr_url}}
Next steps:
1. Review and merge the PR
2. Queue the rayfin.official pipeline on release/{{type}}-v{{version}}
- Set Publish{{Type}}: true
3. Pipeline will publish and tag {{type}}/v{{hotfix_version}}Error Handling
- Tag not found: List available tags and ask the user to pick the correct version
- Cherry-pick conflict: Show conflicting files, let the user resolve, then continue
- Branch already exists: Ask the user if they want to use the existing branch or create a new one
- Version already tagged: Increment to the next available revision and confirm with the user
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Azure/typespec-azure★ 27same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- common/config/typedoc/AGENTS.mdAGENTS.md
- docs/site/AGENTS.mdAGENTS.md
- .github/skills/react-best-practices/AGENTS.mdAGENTS.md
- packages/docgen/AGENTS.mdAGENTS.md
- packages/guide/AGENTS.mdAGENTS.md
- packages/host-docs/AGENTS.mdAGENTS.md
- packages/tools/AGENTS.mdAGENTS.md
- packages/tools/cli/AGENTS.mdAGENTS.md
- packages/tools/cli/assets/agent-files/AGENTS.mdAGENTS.md
- packages/tools/common/AGENTS.mdAGENTS.md
- packages/tools/docs-lib/AGENTS.mdAGENTS.md
- packages/tools/mcp/AGENTS.mdAGENTS.md
- packages/tools/vscode/AGENTS.mdAGENTS.md
- packages/typescript-sdk/AGENTS.mdAGENTS.md
- packages/typescript-sdk/auth/AGENTS.mdAGENTS.md
- packages/typescript-sdk/core/AGENTS.mdAGENTS.md
- packages/typescript-sdk/data/AGENTS.mdAGENTS.md
- packages/typescript-sdk/storage/AGENTS.mdAGENTS.md
- packages/udf/udf-worker-extension/AGENTS.mdAGENTS.md
- samples/data-app/AGENTS.mdAGENTS.md
- samples/getting-started-auth/AGENTS.mdAGENTS.md
- samples/notes-app/AGENTS.mdAGENTS.md
- samples/todo-app/AGENTS.mdAGENTS.md
- samples/universal-app/template/AGENTS.mdAGENTS.md
- samples/welcome-app-react-auth/AGENTS.mdAGENTS.md
- samples/welcome-app-react-no-auth/AGENTS.mdAGENTS.md
- samples/welcome-app-typescript/AGENTS.mdAGENTS.md
- launch-vscode-extensionSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-bulk-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-ff-changeSkill
- openspec-new-changeSkill
- openspec-onboardSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- privacy-dfdSkill
- rayfin-cli-uxSkill
- vercel-react-best-practicesSkill
- react-clean-architectureSkill
- run-cli-e2e-locallySkill
- vscode-react-webview-architectureSkill
- vscode-webview-trpc-messagingSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
- rayfin-getting-startedSkill
- app-designSkill
- app-validationSkill
- dax-authoringSkill
- fabric-cliSkill
- fabric-sdkSkill
- playwright-cliSkill
- query-designSkill
- schema-discoverySkill
- visualsSkill
- analyticsSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

