boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/boundary-heatmapContext preview
What this command does when you run it.
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
tools: - read - write - grep - bash
Generate a visual heatmap of knowledge boundaries showing safe zones, risk areas, and semantic coverage.
Based on the WFGY project: https://github.com/onestardao/WFGY
1. **Load Boundary Data**
2. **Calculate Coverage Map**
3. **Generate Risk Zones**
4. **Build Visual Representation**
Knowledge Boundary Heatmap
═══════════════════════════════════════
High ┊ ⚠️ ░░░░░████████░░░░░░░⚠️ ⚠️
Con- ┊ ░░░░████🟩🟩🟩🟩████░░░░░░░░
cep- ┊ ░░████🟩🟩🟩🟩🟩🟩████░░⚠️ ░░
tual ┊ ████🟩🟩🟨🟨🟨🟩🟩🟩████░░░░
Dis- ┊ ██🟩🟩🟨🟧🟧🟨🟩🟩🟩██████
tan- ┊ 🟩🟩🟨🟧🟧🟧🟧🟨🟩🟩🟩████
ce ┊ 🟩🟨🟧🟧🔴🔴🟧🟨🟨🟩🟩██
┊ 🟨🟧🟧🔴🔴🔴🟧🟧🟨🟩🟩🟩
Low ┊ 🟧🟧🔴🔴⚫⚫🔴🟧🟧🟨🟩🟩
└─────────────────────────────
Low Semantic Diversity High
Legend:
🟩 Safe (>20 nodes) 🟨 Transitional (10-20)
🟧 Risk (5-10) 🔴 Danger (<5)
⚫ Unknown (0) ⚠️ Boundary marker5. **Analyze Patterns**
6. **Generate Report**
KNOWLEDGE BOUNDARY HEATMAP ═══════════════════════════════════════ Generated: [timestamp] Coverage: [percentage]% of semantic space Zone Distribution: ┌────────────────────────────────────┐ │ Safe ████████████ 45% │ │ Transitional ████████ 30% │ │ Risk ████ 15% │ │ Danger ██ 8% │ │ Unknown █ 2% │ └────────────────────────────────────┘ Semantic Coverage Map: [ASCII or Unicode heatmap visualization] Key Insights: • Strongest Knowledge: [domain/topic areas] • Weakest Coverage: [domain/topic areas] • Active Boundaries: [count] detected • Knowledge Islands: [count] isolated zones High-Confidence Regions: 1. [Region]: [node_count] nodes, [avg_confidence]% 2. [Region]: [node_count] nodes, [avg_confidence]% 3. [Region]: [node_count] nodes, [avg_confidence]% Risk Regions Identified: 1. [Region]: Low coverage, high uncertainty 2. [Region]: Approaching boundary 3. [Region]: Isolated from main knowledge Exploration Recommendations: • Priority 1: Bridge [Region A] to [Region B] • Priority 2: Explore [Unknown Region] • Priority 3: Strengthen [Weak Region] Navigation Paths: • Safest: [Path through green zones] • Fastest: [Direct but riskier path] • Balanced: [Moderate risk/speed] Statistics: - Total Nodes: [count] - Unique Regions: [count] - Average ΔS: [value] - Boundary Crossings: [count]
Shows node concentration
Dense ████ ███░ ░░░░ Sparse
Shows certainty levels
High ████ ███░ ░░░░ Low
Shows danger zones
Safe 🟩🟩 🟨🟨 🟧🔴 Danger
Shows frequently accessed areas
Hot ████ ███░ ░░░░ Cold
# Generate detailed heatmap /boundary:heatmap --detailed # Export as JSON data /boundary:heatmap --export json # Focus on specific region /boundary:heatmap --region "machine learning" # Show temporal changes /boundary:heatmap --timeline
Use with:
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.
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:…