boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Analyze and explain code functionality
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/explain-codeContext preview
What this command does when you run it.
Analyze and explain code functionality
Analyze and explain code functionality
Follow this systematic approach to explain code: **$ARGUMENTS**
1. **Code Context Analysis**
2. **High-Level Overview**
3. **Code Structure Breakdown**
4. **Line-by-Line Analysis**
5. **Algorithm and Logic Explanation**
6. **Data Structures and Types**
7. **Framework and Library Usage**
8. **Error Handling and Edge Cases**
9. **Performance Considerations**
10. **Security Implications**
11. **Testing and Debugging**
12. **Dependencies and Integrations**
**Explanation Format Examples:**
**For Complex Algorithms:**
This function implements a depth-first search algorithm: 1. Line 1-3: Initialize a stack with the starting node and a visited set 2. Line 4-8: Main loop - continue until stack is empty 3. Line 9-11: Pop a node and check if it's the target 4. Line 12-15: Add unvisited neighbors to the stack 5. Line 16: Return null if target not found Time Complexity: O(V + E) where V is vertices and E is edges Space Complexity: O(V) for the visited set and stack
**For API Integration Code:**
This code handles user authentication with a third-party service: 1. Extract credentials from request headers 2. Validate credential format and required fields 3. Make API call to authentication service 4. Handle response and extract user data 5. Create session token and set cookies 6. Return user profile or error response Error Handling: Catches network errors, invalid credentials, and service unavailability Security: Uses HTTPS, validates inputs, and sanitizes responses
**For Database Operations:**
This function performs a complex database query with joins: 1. Build base query with primary table 2. Add LEFT JOIN for related user data 3. Apply WHERE conditions for filtering 4. Add ORDER BY for consistent sorting 5. Implement pagination with LIMIT/OFFSET 6. Execute query and handle potential errors 7. Transform raw results into domain objects Performance Notes: Uses indexes on filtered columns, implements connection pooling
13. **Common Patterns and Idioms**
14. **Potential Improvements**
15. **Related Code and Context**
16. **Debugging and Troubleshooting**
**Language-Specific Considerations:**
**JavaScript/TypeScript:**
**Python:**
**Java:**
**C#:**
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:…