boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Create a comprehensive handoff document when your context window is getting low. This document captures everything needed to continue work seamlessly in a new session.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/handoffContext preview
What this command does when you run it.
Create a comprehensive handoff document when your context window is getting low. This document captures everything needed to continue work seamlessly in a new session.
name: handoff model: opus description: Create a comprehensive handoff document when your context window is getting low. This document captures everything needed to continue work seamlessly in a new session. author: Quintin Henry (https://github.com/qdhenry/)
Create a comprehensive handoff document when your context window is getting low. This document captures everything needed to continue work seamlessly in a new session.
Optional argument: filename for the handoff document (without path)
You are a senior engineer creating a comprehensive handoff document for your future self or another developer. You must capture ALL relevant context, decisions made, files touched, and next steps so work can continue without loss of momentum.
1. Analyze the entire conversation to extract key work context 2. Generate a comprehensive handoff document 3. Save it to the specified location (or auto-generate filename)
Analyze the conversation for:
If in a git repository, capture:
Create a structured document with all sections below.
# Handoff: [Brief Title of Work] **Created:** [timestamp] **Branch:** [current branch] **Session Duration:** [approximate time if determinable] --- ## Summary [2-3 sentence executive summary of what was being worked on and current state] --- ## Work Completed ### Changes Made - [ ] [Specific change 1 - use checkbox format for easy verification] - [ ] [Specific change 2] - [ ] [Specific change 3] ### Key Decisions | Decision | Rationale | Alternatives Considered | | ------------ | --------------------- | -------------------------- | | [Decision 1] | [Why this was chosen] | [What else was considered] | | [Decision 2] | [Why this was chosen] | [What else was considered] | --- ## Files Affected ### Created - `path/to/new/file.ext` - [purpose/description] ### Modified - `path/to/modified/file.ext` - [what was changed and why] - Lines/functions affected: [specifics] ### Read (Reference) - `path/to/reference/file.ext` - [why it was referenced] ### Deleted - `path/to/deleted/file.ext` - [why it was removed] --- ## Technical Context ### Architecture/Design Notes [Any architectural decisions, patterns used, or design considerations] ### Dependencies - [New dependencies added, if any] - [External services or APIs used] ### Configuration Changes - [Environment variables, config files, etc.] --- ## Things to Know ### Gotchas & Pitfalls - [Non-obvious behavior or edge cases discovered] - [Potential issues to watch out for] ### Assumptions Made - [Any assumptions that were made during development] ### Known Issues - [Any issues that were discovered but not fixed] - [Technical debt introduced] --- ## Current State ### What's Working - [Feature/component 1 - status] - [Feature/component 2 - status] ### What's Not Working - [Issue 1 - description and suspected cause] - [Issue 2 - description and suspected cause] ### Tests - [ ] Unit tests: [passing/failing/not written] - [ ] Integration tests: [status] - [ ] Manual testing: [what was tested] --- ## Next Steps ### Immediate (Start Here) 1. [Most critical next action with specific details] 2. [Second priority action] 3. [Third priority action] ### Subsequent - [Lower priority items] - [Nice-to-haves] ### Blocked On - [Any blockers with context on how to unblock] --- ## Related Resources ### Documentation - [Links to relevant docs, PRs, issues] ### Commands to Run ```bash # Useful commands for continuing this work [command 1] [command 2]
### Search Queries If you need to find more context: - `[grep/search pattern 1]` - finds [what] - `[grep/search pattern 2]` - finds [what] --- ## Open Questions - [ ] [Question 1 that needs answering] - [ ] [Question 2 that needs answering] --- ## Session Notes [Any additional context, observations, or notes that don't fit above] --- _This handoff was generated at context window capacity. Start a new session and use this document as your initial context._
If no filename is provided, generate one using this pattern:
Save the handoff document to: 1. `docs/handoffs/` if that directory exists 2. `docs/` if that directory exists 3. `.claude/handoffs/` if .claude directory exists (create handoffs subdir) 4. Project root as fallback
Create the directory if it doesn't exist.
Use this command when:
1. **ALWAYS save
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:…