Agent skill
hotfix
Quick patch release for urgent fixes. Use /hotfix or /hotfix "description of the fix".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/hotfix-corbat-tech-coco
SKILL.md
Hotfix Release
Streamlined release workflow for urgent patch fixes. Skips README updates and uses abbreviated changelog entries.
Input
$ARGUMENTS= optional description of what was fixed (used in changelog and commit)
Pre-flight
git branch --show-current
git status --porcelain
gh auth status
- Must NOT be on main/master
- Working tree must be clean (all fix commits already made)
- If working tree is dirty, STOP and ask user to commit pending changes first
Step 1: Version bump (always patch)
# Current version
node -e "console.log(require('./package.json').version)"
Calculate new patch version (e.g., 1.7.0 → 1.7.1).
npm version patch --no-git-tag-version
Step 2: Quick changelog update
Read CHANGELOG.md. Add a minimal entry under a new version section:
## [X.Y.Z] - YYYY-MM-DD
### Fixed
- **Description of the fix** (from $ARGUMENTS or from recent commit messages)
Step 3: Run checks
pnpm check
If checks fail, fix and retry (max 3 attempts). This is a hotfix - speed matters but quality is non-negotiable.
Step 4: Commit and push
git add CHANGELOG.md package.json pnpm-lock.yaml
git commit -m "chore(release): hotfix vX.Y.Z"
git push origin $(git branch --show-current)
Do NOT add Co-Authored-By.
Step 5: Create PR
gh pr create --base main --title "hotfix: vX.Y.Z" --body "## Hotfix vX.Y.Z
### Fixed
- DESCRIPTION
### Checklist
- [x] Fix verified locally
- [x] Tests passing
- [ ] CI passing
"
Step 6: Wait for CI and merge
gh pr checks --watch
If checks pass:
gh pr merge --squash --delete-branch
If checks fail, fix → commit → push → retry (max 3 cycles).
Step 7: Tag and push
git checkout main
git pull origin main
git tag vX.Y.Z
git push origin vX.Y.Z
Final report
## Hotfix vX.Y.Z released
- Fix: DESCRIPTION
- PR: #NUMBER (merged)
- Tag: vX.Y.Z
- npm publish: triggered (release.yml)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?