Workflow Git & Workflow

Hotfix Workflow

Emergency fix process for production issues

githotfixproduction
CLAUDE.md

When deploying an emergency hotfix:

  1. Create a hotfix branch from the current production tag or release branch: git checkout -b hotfix/description vX.Y.Z.
  2. Make the minimal fix. This is not the time for refactoring or additional improvements.
  3. Write a test that reproduces the production bug and verifies the fix.
  4. Run the full test suite to verify no regressions.
  5. Open a PR with an expedited review — tag it as urgent.
  6. After merge, deploy to production and monitor for the issue to confirm it’s resolved.
  7. 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.

get crystl