From nexus-agents
Guides hotfix workflow for critical production issues like security vulnerabilities or core bugs: branch from latest release tag, minimal fix, fast-track review, pnpm quality gates, patch release with changeset.
npx claudepluginhub williamzujkowski/nexus-agentsThis skill is limited to using the following tools:
<!-- CANONICAL SOURCE: docs/development/CONTRIBUTION_GUIDE.md -->
Applies minimal targeted fixes for emergency bugs using git hotfix branches. Enforces triage, codebase exploration, testing, and review without planning phases.
Starts git-flow hotfix branch from production tag, bumps version in files like package.json/Cargo.toml, commits, and pushes to origin. Use for urgent prod fixes.
Analyzes urgent online defects via root cause analysis (RCA/5 Whys), builds minimal reproduction paths, defines safe fix boundaries, and hands off to implementation without writing code.
Share bugs, ideas, or general feedback.
If criteria not met: Use the bug-fix skill instead.
Create branch from latest release tag:
git tag --sort=-v:refname | head -5 # Find latest tag
git checkout -b hotfix/<issue>-description <latest-tag>
Implement fix with minimal changes — no refactoring, no extras
Fast-track review: Security label + P1 = single-reviewer approval sufficient
Quality gates:
pnpm lint && pnpm typecheck && pnpm test
Merge to main AND cherry-pick to release branch
Immediate release with patch version bump:
# Add changeset for patch bump
pnpm changeset # select patch
git add . && git commit -m "chore: changeset for hotfix"
git push origin main --tags
# CI handles npm publish via OIDC trusted publishing
# Or trigger manually: gh workflow run publish.yml
npm unpublish nexus-agents@<version> # Within 72 hours only
git tag -d v<version> && git push --delete origin v<version>
| Excuse | Counter |
|---|---|
| "Skip tests, it's an emergency" | A hotfix without tests becomes the next regression. Add at least the failing-test-then-fix (Prove-It Pattern). |
| "Bypass the lint gate just this once" | Hotfix bypass is the most expensive shortcut: the next change you ship inherits the broken state. Lint stays. |
| "Skip the PR review, just push" | Hotfix PR review can be quick (one trusted reviewer + admin merge), but the second pair of eyes catches the wrong-fix-for-the-symptom mistake. |
| "Roll forward later, no need for proper rollback plan" | Production users can't wait. Either the hotfix works or there's a rollback plan; "we'll figure it out" is not a plan. |
security-advisory-response instead)pnpm lint && pnpm typecheck && pnpm test pass before merge