boundary-bbcr-fallback
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.
$ 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-detectContext preview
What this command does when you run it.
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
tools: - read - write - grep - bash arguments: $QUERY
Analyze semantic position relative to knowledge boundaries to prevent hallucination and identify uncertainty zones.
Based on the WFGY project: https://github.com/onestardao/WFGY
1. **Analyze Query Semantics**
2. **Calculate Boundary Metrics**
3. **Evaluate Stability Indicators**
4. **Identify Bridge Concepts**
5. **Generate Safety Report**
KNOWLEDGE BOUNDARY ANALYSIS
═══════════════════════════════════════
Query: "$QUERY"
Analysis Timestamp: [ISO_8601]
Zone Classification: [Safe/Transitional/Risk/Danger]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Safe Trans Risk Danger
[████████|░░░░░░░░|░░░░░░░░|░░░░░░░░]
↑ You are here
Metrics:
- Semantic Tension (ΔS): [value]
- Confidence Level: [percentage]%
- Distance to Boundary: [value]
- Logic Coherence: [High/Medium/Low]
- E_resonance: [value]
Nearest Known Concepts:
1. [Concept] (ΔS: [value]) - [confidence]% match
2. [Concept] (ΔS: [value]) - [confidence]% match
3. [Concept] (ΔS: [value]) - [confidence]% match
Risk Assessment:
[Safe to proceed / Caution advised / High risk / Abort recommended]
Hallucination Indicators: [None/Low/Medium/High]
- Signal 1: [if present]
- Signal 2: [if present]
Bridge Path Available: [Yes/No]
[If Yes:]
Recommended Path:
[Current] → [Bridge 1] → [Bridge 2] → [Target]
Path Confidence: [percentage]%
Recommended Actions:
1. [Primary recommendation]
2. [Secondary option]
3. [Fallback strategy]
BBCR Activation: [Not needed/Ready/Triggered]Boundary detection integrates with:
# Verbose analysis /boundary:detect "query" --verbose # With automatic bridging /boundary:detect "query" --auto-bridge # Set custom thresholds /boundary:detect "query" --safe 0.3 --danger 0.8 # Check multiple queries /boundary:detect "query1; query2; query3"
The system prevents hallucination by: 1. Early detection of boundary approach 2. Automatic confidence degradation 3. Forced bridging requirements 4. BBCR correction activation 5. Explicit uncertainty markers
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.
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:…