Systematic problem-solving toolkit: root cause analysis, hypothesis testing, debugging strategies, critical thinking frameworks. Use when user says "solve", "analyze", "diagnose", "debug", "figure out", "what's wrong", "root cause", "why is this happening", "I'm stuck", "break down", "decompose", "structure", "tại sao bị vậy", "tìm nguyên nhân", "phân tích", "giải quyết", "bị kẹt", "không biết làm sao", or describes any problem that needs structured decomposition.
Help users solve complex problems systematically using proven frameworks — turning vague issues into structured analyses with actionable recommendations.
Comprehensive structured problem-solving framework for tackling any complex challenge. Contains a 7-step methodology, 15 decomposition frameworks, 8 prioritization techniques, 12 analysis tools, 12 cognitive biases with debiasing strategies, 10 communication patterns, 12 mental models, and 10 team dynamics patterns. Searchable database with reasoning-based recommendations that adapts to your specific problem type.
IMPORTANT: Detect the correct Python command first. Some systems use python3, others use python. Run:
python3 --version 2>/dev/null || python --version
Use whichever command succeeds (python3 or python) for ALL script calls below. If the system only has python (common on Windows), substitute everywhere you see in this document.
pythonpython3If Python is not installed at all, install it based on user's OS:
macOS:
brew install python3
Ubuntu/Debian:
sudo apt update && sudo apt install python3
Windows:
winget install Python.Python.3.12
Note: On Windows, Python 3 is typically available as
python(notpython3).
When user requests problem-solving help (analyze, solve, diagnose, decide, structure, decompose, plan, strategy, recommendation), follow this workflow:
Extract key information from user's problem description:
Always start with --plan to get comprehensive recommendations with reasoning:
python3 scripts/search.py "<problem_description>" --plan [-p "Project Name"]
This command:
Example:
python3 scripts/search.py "revenue declining 20% despite market growth" --plan -p "Revenue Recovery"
To save the plan for reference:
python3 scripts/search.py "<problem>" --plan --persist -p "Project Name"
This creates:
solving-plans/project-name/PLAN.md — Complete problem-solving planUse when the plan's recommendation needs more detail, OR when user asks about a specific topic (e.g., "how do I do a root cause analysis?"):
python3 scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
When to use domain searches:
| Need | Domain | Example |
|---|---|---|
| Understand the methodology steps | steps | --domain steps "define problem" |
| Classify the problem | problem-types | --domain problem-types "wicked systemic" |
| Choose decomposition framework | decomposition | --domain decomposition "MECE logic tree" |
| Pick prioritization technique | prioritization | --domain prioritization "impact feasibility" |
| Select analysis tools | analysis | --domain analysis "root cause benchmark" |
| Identify cognitive biases | biases | --domain biases "confirmation anchoring" |
| Structure communication | communication | --domain communication "pyramid executive" |
| Apply mental models | heuristics | --domain heuristics "first principles inversion" |
| Improve team dynamics | team | --domain team "red team brainstorm" |
Guide the user through the recommended process:
| Domain | Records | Use For | Example Keywords |
|---|---|---|---|
steps | 7 | Understanding each step of the methodology | define, disaggregate, prioritize, analyze, synthesize, communicate |
problem-types | 8 | Classifying the type of problem | diagnostic, opportunity, wicked, prediction, negotiation, design |
decomposition | 10 | Choosing how to break down the problem | issue tree, hypothesis tree, MECE, profitability, process, scenario |
prioritization | 8 | Deciding where to focus effort | pareto, impact-feasibility, sensitivity, dot-voting, MoSCoW, weighted |
analysis | 12 | Selecting analytical methods | benchmark, root cause, regression, scenario, fermi, A/B test, pre-mortem |
biases | 12 | Identifying thinking errors to avoid | confirmation, anchoring, sunk cost, groupthink, overconfidence, framing |
communication | 10 | Structuring findings and recommendations | pyramid, SCR, action titles, BLUF, one-page, storytelling, day-1 answer |
heuristics | 12 | Applying mental models to the problem | first principles, inversion, second-order, Bayesian, Occam, leverage |
team | 10 | Improving team problem-solving effectiveness | red team, brainstorm, psychological safety, hypothesis-driven, workplan |
User request: "Our company's revenue has declined 20% this year despite the market growing. Help me figure out what's going on and what to do about it."
python3 scripts/search.py "revenue declining 20% despite market growth" --plan -p "Revenue Diagnosis"
Output: Complete plan with profitability tree decomposition, Pareto prioritization, benchmarking + root cause analysis toolkit, pyramid principle communication, and bias warnings (confirmation bias, anchoring).
# Get decomposition framework details
python3 scripts/search.py "profitability revenue cost" --domain decomposition
# Get root cause analysis methodology
python3 scripts/search.py "root cause 5 whys diagnostic" --domain analysis
# Check for relevant biases
python3 scripts/search.py "confirmation bias anchoring" --domain biases
Walk the user through:
Then: Synthesize the plan + domain searches into a structured problem-solving approach for the user.
The --plan flag supports two output formats:
# ASCII box (default) - best for terminal display
python3 scripts/search.py "market entry strategy" --plan
# Markdown - best for documentation
python3 scripts/search.py "market entry strategy" --plan -f markdown
--plan) before doing domain searches — the plan provides context for everything elseIf the Python scripts fail or are unavailable:
python3 --version or python --version — if neither is found, guide the user to install itsearch.py returns no results, try broader keywords or search a different domainsearch.py — this ensures rich results for any language