boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/optimize-promptContext preview
What this command does when you run it.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
Takes an input prompt and returns ONLY a token-optimized version that preserves meaning while minimizing token count. Based on LLM tokenization principles: common words tokenize more efficiently, unusual words break into more tokens, and conciseness reduces cost.
**Output Format**: Return only the optimized prompt text with no additional commentary, analysis, or explanation.
Apply these optimization strategies systematically:
**Conciseness**
**Word Choice**
**Structure**
**Examples**
While optimizing, ensure you maintain:
Return ONLY the optimized prompt text with no analysis, summary, or explanation.
Do not include:
Simply return the token-optimized version of the prompt.
Before returning, verify the optimized prompt:
**IMPORTANT**: After validation, return ONLY the optimized prompt text. Do not include this checklist, analysis, or any explanatory text in your response.
Based on how LLM tokenizers work:
1. **Common words = fewer tokens** - Frequent words in training data tokenize more efficiently 2. **Rare words = more tokens** - Unusual words break into multiple sub-word tokens 3. **Languages matter** - Less common languages/dialects use more tokens 4. **Code languages differ** - JavaScript tokenizes more efficiently than Haskell 5. **Token count = cost** - Every token in input and output costs money
/dev:optimize-prompt --prompt "Please could you help me to understand the various different methodologies and approaches that could potentially be utilized when implementing a comprehensive authentication system"
Returns:
Explain methods for implementing authentication systems
Example 2:
/dev:optimize-prompt --prompt "I need you to create commits and branches that culminate into a sensible release. I also need you to add model:inherit to agent files that do not have a model decleared in the frontmatter yaml"
Returns:
Create commits and branches for release. Add model:inherit to agent frontmatter missing model declaration.
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.