boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Display the structure and contents of the active semantic tree, showing nodes, relationships, and reasoning patterns.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/semantic-tree-viewContext preview
What this command does when you run it.
Display the structure and contents of the active semantic tree, showing nodes, relationships, and reasoning patterns.
tools: - read - grep - bash arguments: $OPTIONS
Display the structure and contents of the active semantic tree, showing nodes, relationships, and reasoning patterns.
Based on the WFGY project: https://github.com/onestardao/WFGY
1. **Load Tree Data**
2. **Analyze Tree Structure**
3. **Build Visualization**
[Root] Tree Initialization ├─→ [0.3] Topic A (BBMC) │ ├─→ [0.2] Subtopic A1 (BBMC) │ └─← [0.7] Divergent idea (BBPF) │ └─→ [0.4] Convergence (BBAM) ├─← [0.8] New Branch B (BBPF) │ └─<> [0.5] Recursive to A (BBCR) └─→ [0.3] Topic C (BBMC)
4. **Generate Summary Report**
5. **Export Options**
Semantic Tree: [Tree Name] ═══════════════════════════════════════ Created: [timestamp] Modified: [timestamp] Nodes: [total] | Depth: [max] | Branches: [count] Tree Statistics: - Average Tension (ΔS): [value] - Stability (E_res): [value] - Most Used Module: [BBMC/BBPF/BBCR/BBAM] ([count] times) - Logic Distribution: → [%] ← [%] <> [%] × [%] Recent Nodes (Last 10): ──────────────────────────────────────── [timestamp] [ΔS:0.45] → "Topic Name" (BBMC) Insight: Brief insight summary... [timestamp] [ΔS:0.72] ← "Divergent Topic" (BBPF) Insight: New direction explored... [timestamp] [ΔS:0.38] → "Convergent Topic" (BBAM) Insight: Focused conclusion... Tree Structure: ──────────────────────────────────────── [Root] Initialization ├─→ [0.3] Project Planning │ ├─→ [0.2] Architecture Design │ ├─← [0.7] Alternative Approach │ └─→ [0.4] Final Decision ├─← [0.8] New Feature Branch │ └─<> [0.5] Return to Planning └─→ [0.3] Implementation Key Insights (ΔS > 0.7): • [Node] Major realization about... • [Node] Critical decision on... • [Node] Breakthrough in understanding... Patterns Detected: • Cluster: [Nodes A, B, C] around "theme" • Loop: [Node X] ←→ [Node Y] (recursive) • Bridge: [Node M] connects [Branch 1] to [Branch 2] Navigation: Current Position: [Latest Node] Suggested Next: Based on patterns...
1. **Chronological**: Nodes in time order 2. **Hierarchical**: Tree structure view 3. **Tension-based**: Sorted by ΔS value 4. **Module-based**: Grouped by formula 5. **Cluster view**: Related nodes together
# View high-tension nodes only /semantic:tree-view --tension 0.7 1.0 # View BBPF explorations /semantic:tree-view --module BBPF # Search for specific topics /semantic:tree-view --search "authentication" # Export full tree /semantic:tree-view --export json > tree.json
After viewing:
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:…