Hotfix Workflow
Emergency fix process for production issues
CLAUDE.md
When deploying an emergency hotfix:
- Create a hotfix branch from the current production tag or release branch:
git checkout -b hotfix/description vX.Y.Z. - Make the minimal fix. This is not the time for refactoring or additional improvements.
- Write a test that reproduces the production bug and verifies the fix.
- Run the full test suite to verify no regressions.
- Open a PR with an expedited review — tag it as urgent.
- After merge, deploy to production and monitor for the issue to confirm it’s resolved.
- Cherry-pick or merge the hotfix back into main so it isn’t lost.
Copy this workflow into your CLAUDE.md or agent config file so your agent follows this process automatically.