| name | qthink |
| description | Ultra-deep evaluation and planning workflow. Use when user types 'qthink' OR when complex tasks need comprehensive analysis before implementation. Also activates on "grill me" / "stress-test this plan"; clarification runs as a one-question-at-a-time interview that walks the decision tree. Performs comprehensive analysis, evaluates alternatives, identifies ambiguities, and follows strict implementation principles (KISS/YAGNI/DRY) before making any edits. |
QTHINK - Ultra-Deep Evaluation Workflow
Purpose
This skill activates when the user types "qthink" to signal that you should perform ultra-deep analysis and evaluation before proceeding with any implementation.
Core Principles
When this skill is invoked, you MUST follow these principles:
What QTHINK Means - Complete Checklist
-
Ultra think on the given context and instructions then evaluate:
- Is it possible to implement?
- Are there better alternatives?
- Are there any things that need clarification from me?
-
Clarify with me if there are any ambiguities
- Do NOT proceed with unclear requirements
- Ask specific questions about implementation choices
- Confirm assumptions before coding
- Interview Mode (replaces bulk Q&A):
- One question at a time. Wait for the answer before asking the next.
- Walk the decision tree. Each answered question may reveal a child question; resolve dependencies before moving to the next sibling branch.
- Recommend per question. Every question carries your recommended answer with one-line rationale, so the user can confirm with a single word.
- Explore the codebase first. If the answer is discoverable via Read/Grep/Glob (e.g. an existing route in
src/App.tsx, a TABS entry, a HashRouter constraint), answer it yourself and state the finding. Do not ask the user what the code already knows.
- Keep going until shared understanding. "Looks fine" is not resolution; if ambiguity remains on any branch, the next question fires.
-
Do not do edits or create new documents unless specifically instructed or allowed by user
- This is an ANALYSIS phase, not implementation
- Only create/edit when explicitly given permission
-
Do not overengineer your edits and do not introduce silent fallback errors
- Keep solutions simple and focused
- No unnecessary abstraction
- Fail loudly with clear error messages, never silently
-
Always follow KISS/YAGNI/DRY principles:
- KISS: Keep It Simple, Stupid — straightforward solutions
- YAGNI: You Aren't Gonna Need It — no speculative features
- DRY: Don't Repeat Yourself — extract common patterns
-
TypeScript/React conventions:
- Imports grouped: React/libraries, then local modules, then CSS
- Functional components with hooks only
- Interfaces defined at top of file
- No
any types — use proper typing
-
Component patterns:
- Single-responsibility components
- Hooks for reusable logic (custom hooks)
- Derive state where possible instead of storing
- Correct useEffect dependency arrays
Ultra-Think Analysis Framework
When performing ultra-deep evaluation, follow this framework:
1. Context Analysis
Understand the Request:
- What exactly is being asked?
- What is the end goal?
- What are the constraints?
- What is the current state of the system?
Identify Assumptions:
- What am I assuming about the requirements?
- Are these assumptions valid?
- What needs to be confirmed with the user?
2. Possibility Evaluation
Technical Feasibility:
- Can this be implemented with current architecture?
- Are all necessary components/libraries available?
- Are there any technical blockers?
Deployment Constraints:
- Will this work with GitHub Pages (static only)?
- Does it maintain HashRouter compatibility?
- Are asset paths correct (
process.env.PUBLIC_URL)?
3. Alternative Approaches
Brainstorm Alternatives:
- List at least 2-3 different approaches
- Consider simple vs complex solutions
- Consider existing patterns in the codebase
Evaluate Trade-offs:
For each alternative, assess:
- Pros: What are the benefits?
- Cons: What are the drawbacks?
- Complexity: How complex is the implementation?
- Maintainability: How easy to maintain long-term?
- Alignment: How well does it align with existing patterns?
Recommend Best Approach:
- Which approach is best and why?
- Does it follow KISS/YAGNI/DRY principles?
- Is it consistent with existing codebase patterns?
4. Ambiguity Identification (Interview, not bulk dump)
Run clarifications as an interview per the Interview Mode rules above:
ask one question at a time, recommend an answer, and explore the codebase
first when the answer is discoverable via Read/Grep/Glob. Do not produce a
numbered bulk-question list and ask the user to answer them all at once.
Per-question format (one of these per turn, not a batch):
Q: [Specific question about requirement or implementation]
- Option A: [description]
- Option B: [description]
- Recommendation: [your pick with one-line rationale]
5. Design Principles Validation
KISS Compliance:
YAGNI Compliance:
DRY Compliance:
React/TypeScript Compliance:
Analysis Output Format
Provide your ultra-think analysis in this format:
## Ultra-Think Analysis
### 1. Context & Requirements
[Clear statement of what is being asked and current context]
### 2. Feasibility Assessment
✓ Technically feasible / ✗ Has blockers
[Explanation of technical feasibility]
### 3. Alternative Approaches
**Option A: [Name]**
- Pros: [list]
- Cons: [list]
- Complexity: Low/Medium/High
- Alignment with existing patterns: Good/Fair/Poor
**Option B: [Name]**
- Pros: [list]
- Cons: [list]
- Complexity: Low/Medium/High
- Alignment with existing patterns: Good/Fair/Poor
**Recommendation**: [Which option and why]
### 4. Interview
[Running, one-question-at-a-time interview per the Interview Mode rules. Do not advance to "Recommendation" or "Next Steps" until every branch of the decision tree is resolved. State "None - requirements are clear" only when no branch remains.]
### 5. Design Principles Check
- KISS: ✓/✗ [explanation]
- YAGNI: ✓/✗ [explanation]
- DRY: ✓/✗ [explanation]
### 6. Next Steps
[What happens after user responds to clarifications]
Expected Output
After running this skill, you should:
- Have performed comprehensive analysis
- Identified all ambiguities and asked for clarification
- Evaluated multiple approaches with clear trade-offs
- Validated design principles compliance
- NOT created or edited any files (unless explicitly permitted)
- Be ready to proceed with implementation once user approves