boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Deploy critical hotfixes quickly
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/hotfix-deployContext preview
What this command does when you run it.
Deploy critical hotfixes quickly
Deploy critical hotfixes quickly
Follow this emergency hotfix deployment process: **$ARGUMENTS**
1. **Emergency Assessment and Triage**
2. **Incident Response Setup**
3. **Branch and Environment Setup**
# Create hotfix branch from production tag git fetch --tags git checkout tags/v1.2.3 # Latest production version git checkout -b hotfix/critical-auth-fix # Alternative: Branch from main if using trunk-based development git checkout main git pull origin main git checkout -b hotfix/critical-auth-fix
4. **Rapid Development Process**
5. **Accelerated Testing**
# Run focused tests related to the fix npm test -- --testPathPattern=auth npm run test:security # Manual testing checklist # [ ] Core functionality works correctly # [ ] Hotfix resolves the critical issue # [ ] No new issues introduced # [ ] Critical user flows remain functional
6. **Fast-Track Code Review**
7. **Version and Tagging**
# Update version for hotfix # 1.2.3 -> 1.2.4 (patch version) # or 1.2.3 -> 1.2.3-hotfix.1 (hotfix identifier) # Commit with detailed message git add . git commit -m "hotfix: fix critical authentication vulnerability - Fix password validation logic - Resolve security issue allowing bypass - Minimal change to reduce deployment risk Fixes: #1234" # Tag the hotfix version git tag -a v1.2.4 -m "Hotfix v1.2.4: Critical auth security fix" git push origin hotfix/critical-auth-fix git push origin v1.2.4
8. **Staging Deployment and Validation**
# Deploy to staging environment for final validation
./deploy-staging.sh v1.2.4
# Critical path testing
curl -X POST staging.example.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"test@example.com","password":"testpass"}'
# Run smoke tests
npm run test:smoke:staging9. **Production Deployment Strategy**
**Blue-Green Deployment:**
# Deploy to blue environment ./deploy-blue.sh v1.2.4 # Validate blue environment health ./health-check-blue.sh # Switch traffic to blue environment ./switch-to-blue.sh # Monitor deployment metrics ./monitor-deployment.sh
**Rolling Deployment:**
# Deploy to subset of servers first ./deploy-rolling.sh v1.2.4 --batch-size 1 # Monitor each batch deployment ./monitor-batch.sh # Continue with next batch if healthy ./deploy-next-batch.sh
10. **Pre-Deployment Checklist**
# Verify all prerequisites are met
# [ ] Database backup completed successfully
# [ ] Rollback plan documented and ready
# [ ] Monitoring alerts configured and active
# [ ] Team members standing by for support
# [ ] Communication channels established
# Execute production deployment
./deploy-production.sh v1.2.4
# Run immediate post-deployment validation
./validate-hotfix.sh11. **Real-Time Monitoring**
# Monitor key application metrics
watch -n 10 'curl -s https://api.example.com/health | jq .'
# Monitor error rates and logs
tail -f /var/log/app/error.log | grep -i "auth"
# Track critical metrics:
# - Response times and latency
# - Error rates and exception counts
# - User authentication success rates
# - System resource usage (CPU, memory)12. **Post-Deployment Validation**
# Run comprehensive validation tests
./test-critical-paths.sh
# Test user authentication functionality
curl -X POST https://api.example.com/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"test@example.com","password":"testpass"}'
# Validate security fix effectiveness
./security-validation.sh
# Check overall system performance
./performance-check.sh13. **Communication and Status Updates**
14. **Rollback Procedures**
# Automated rollback script
#!/bin/bash
PREVIOUS_VERSION="v1.2.3"
if [ "$1" = "rollback" ]; then
echo "Rolling back to $PREVIOUS_VERSION"
./deploy-production.sh $PREVIOUS_VERSION
./validate-rollback.sh
echo "Rollback completed successfully"
fi
# Manual rollback steps if automation fails:
# 1. Switch load balancer back to previous version
# 2. Validate previous version health and functionality
# 3. Monitor system stability after rollback
# 4. Communicate rollback status to team1
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Repo: qdhenry/Claude-Command-Suite
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Evaluate the current risk level and provide detailed analysis of potential hallucination or reasoning failure.
Find and construct semantic bridges to safely navigate from current position to target concept without crossing dangerous boundaries.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles:…