boundary-bbcr-fallback
Execute automatic BBCR (Collapse-Rebirth Correction) when knowledge boundaries are exceeded or reasoning fails.
Rapid spec development for simpler tasks. Deep codebase analysis with opinionated recommendations and max 10 targeted questions. Use instead of spec-elicitation for straightforward features, refactors, and well-understood work.
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/quick-specContext preview
What this command does when you run it.
Rapid spec development for simpler tasks. Deep codebase analysis with opinionated recommendations and max 10 targeted questions. Use instead of spec-elicitation for straightforward features, refactors, and well-understood work.
model: opus description: Rapid spec development for simpler tasks. Deep codebase analysis with opinionated recommendations and max 10 targeted questions. Use instead of spec-elicitation for straightforward features, refactors, and well-understood work. argument-hint: <feature-description> [output-path.md] allowed-tools: [Read, Write, Edit, Glob, Grep, AskUserQuestion, Task]
<objective> Rapidly develop a focused specification for $1 by deeply understanding the codebase first, making informed assumptions, and asking only the most critical clarifying questions (max 10).
Output spec will be written to $2 (defaults to `spec.md` if not provided).
Unlike full spec-elicitation, this command is opinionated — it analyzes the codebase, infers conventions, and recommends approaches rather than asking about every dimension. Questions are reserved for genuinely ambiguous decisions where assumptions would be risky. </objective>
<context> Feature/task to specify: $1 Output file: $2 (default: `spec.md`) Project root contents: !`ls -1 | head -30` Package info: !`for f in package.json pyproject.toml Cargo.toml requirements.txt go.mod; do [ -f "$f" ] && echo "=== $f ===" && head -30 "$f"; done 2>/dev/null` Existing spec check: !`[ -n "$2" ] && target="$2" || target="spec.md"; [ -f "$target" ] && echo "Existing spec found at $target:" && head -20 "$target" || echo "No existing spec at $target"` </context>
<process>
Before asking ANY questions, thoroughly explore the codebase to understand:
1. **Project structure** — frameworks, languages, patterns, directory layout 2. **Existing conventions** — naming, architecture, state management, error handling 3. **Related features** — how similar functionality is already implemented 4. **Data models** — existing entities, schemas, relationships 5. **Integration patterns** — how services communicate, API patterns, auth flows 6. **Testing patterns** — what test frameworks are used, coverage expectations
Use Glob, Grep, and Read tools extensively. The goal is to answer as many spec questions yourself as possible through codebase analysis before involving the user.
Based on codebase analysis, draft recommendations for:
Document your assumptions. You will present these alongside your questions.
Using AskUserQuestion, ask ONLY questions that meet this bar:
> "Would a wrong assumption here cause significant rework or a fundamentally broken design?"
**Question selection rules:**
**Question format:**
**Hard limit: 10 questions maximum across all rounds.** Budget them wisely:
Synthesize codebase analysis + user answers into a focused spec.
Determine the output path: if $2 was provided, use that; otherwise default to `spec.md` in the current directory. If an existing spec file is found at that path, update it rather than overwriting.
Write to the spec file:
# [Feature/Product Name] **Created:** [timestamp] **Status:** Draft **Type:** Quick Spec --- ## Summary [2-3 sentences: what this is, why it matters, and the core approach] --- ## Scope ### In Scope - [Specific deliverable 1] - [Specific deliverable 2] ### Out of Scope - [Explicit exclusion 1] - [Explicit exclusion 2] --- ## Requirements ### Core Functionality 1. [Requirement with acceptance criteria] 2. [Requirement with acceptance criteria] ### Business Rules | Rule | Description | |------|-------------| | [Name] | [What it does] | --- ## Technical Approach ### Architecture [Where new code lives, what patterns to follow — based on codebase analysis] ### Data Model Changes [New/modified entities, following existing schema conventions] ### Key Implementation Notes - [Important technical decision and rationale] - [Convention to follow from existing codebase] --- ## Edge Cases & Error Handling | Scenario | Behavior | |----------|----------| | [Edge case] | [How to handle — following existing patterns] | --- ## Assumptions Made 1. [Assumption and reasoning — user can flag if wrong] 2. [Assumption and reasoning] --- _Quick spec generated through rapid elicitation with codebase-informed recommendations._
Present a brief summary and ask if any section needs revision. </process>
<success_criteria>
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:…