Pal Thinkdeep
by estiens
Multi-stage deep investigation and reasoning for complex problems using PAL MCP. Use for architecture decisions, complex analysis, performance challenges, or when you need thorough reasoning. Triggers on complex problems requiring deep thought, hypothesis testing, or expert analysis.
Skill Details
Repository Files
1 file in this skill directory
name: pal-thinkdeep description: Multi-stage deep investigation and reasoning for complex problems using PAL MCP. Use for architecture decisions, complex analysis, performance challenges, or when you need thorough reasoning. Triggers on complex problems requiring deep thought, hypothesis testing, or expert analysis.
PAL ThinkDeep - Deep Investigation
Systematic multi-stage investigation for complex problem analysis.
When to Use
- Complex architectural decisions
- Performance challenges requiring analysis
- Security concerns needing investigation
- Problems requiring hypothesis testing
- When surface-level analysis isn't enough
- Strategic technical planning
Quick Start
result = mcp__pal__thinkdeep(
step="Investigating intermittent performance degradation under load",
step_number=1,
total_steps=3,
next_step_required=True,
findings="Beginning systematic investigation",
problem_context="API response times spike from 50ms to 5s randomly",
focus_areas=["performance", "database", "caching"],
hypothesis="Unknown - needs investigation",
confidence="exploring"
)
Required Parameters
| Parameter | Type | Description |
|---|---|---|
step |
string | Current investigation narrative |
step_number |
int | Current step |
total_steps |
int | Estimated total |
next_step_required |
bool | More investigation needed? |
findings |
string | Evidence and insights |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
hypothesis |
string | Current theory |
confidence |
enum | exploring → certain |
focus_areas |
list | ["architecture", "performance", "security"] |
problem_context |
string | Background and constraints |
relevant_files |
list | Key files (absolute paths) |
files_checked |
list | All files examined |
issues_found |
list | Problems with severity |
continuation_id |
string | Continue session |
thinking_mode |
enum | minimal/low/medium/high/max |
Investigation Process
Step 1: Define problem and scope
↓
Step 2: Gather evidence, form hypotheses
↓
Step 3: Test hypotheses with data
↓
Step 4: Refine or pivot based on evidence
↓
Step N: Reach conclusion with confidence
Confidence Progression
| Level | Evidence | Action |
|---|---|---|
exploring |
None yet | Gather data |
low |
Initial clues | Form hypothesis |
medium |
Supporting evidence | Test hypothesis |
high |
Strong evidence | Verify conclusion |
very_high |
Confirmed | Document findings |
certain |
Proven | Skip validation |
Example: Architecture Decision
# Step 1: Frame the problem
mcp__pal__thinkdeep(
step="Should we adopt event sourcing for the order system?",
step_number=1,
total_steps=4,
next_step_required=True,
findings="""
Current state:
- CRUD-based order management
- 50K orders/day, growing 20%/month
- Audit trail requirements from compliance
- Complex order lifecycle (10 states)
Questions to investigate:
- Performance implications at scale
- Team learning curve
- Migration complexity
- Operational overhead
""",
problem_context="Evaluating event sourcing vs enhanced CRUD",
focus_areas=["architecture", "scalability", "complexity"],
hypothesis="Event sourcing may be over-engineering for current scale",
confidence="exploring"
)
# Step 2: Analyze trade-offs
mcp__pal__thinkdeep(
step="Analyzing event sourcing trade-offs for our context",
step_number=2,
total_steps=4,
next_step_required=True,
findings="""
Evidence gathered:
FOR event sourcing:
- Built-in audit trail (compliance requirement)
- Temporal queries for analytics
- Replay capability for debugging
AGAINST event sourcing:
- Team has no ES experience (3-6 month learning)
- Infrastructure complexity (event store, projections)
- 50K orders/day is manageable with CRUD + audit table
Middle ground discovered:
- Audit table with change tracking gives 80% of benefits
- Can evolve to ES later if needed
""",
problem_context="Weighing complexity vs benefits",
hypothesis="Audit table + CDC is sufficient for current needs",
confidence="medium",
continuation_id=result["continuation_id"]
)
Focus Area Guidelines
Architecture
- System boundaries and responsibilities
- Data flow and dependencies
- Coupling and cohesion
- Scalability patterns
Performance
- Bottleneck identification
- Resource utilization
- Query optimization
- Caching strategies
Security
- Attack surface analysis
- Data protection
- Authentication/authorization
- Compliance requirements
Best Practices
- Start with questions - What do we need to learn?
- Gather evidence first - Don't jump to conclusions
- Consider alternatives - Challenge your assumptions
- Document reasoning - Future you will thank you
- Update confidence honestly - Uncertainty is information
- Use continuation_id - Preserve context across steps
Related Skills
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Senior Data Scientist
World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.
Hypogenic
Automated hypothesis generation and testing using large language models. Use this skill when generating scientific hypotheses from datasets, combining literature insights with empirical data, testing hypotheses against observational data, or conducting systematic hypothesis exploration for research discovery in domains like deception detection, AI content detection, mental health analysis, or other empirical research tasks.
Ux Researcher Designer
UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.
Hypogenic
Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.
Data Engineering Data Driven Feature
Build features guided by data insights, A/B testing, and continuous measurement using specialized agents for analysis, implementation, and experimentation.
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Dashboard Design
USE THIS SKILL FIRST when user wants to create and design a dashboard, ESPECIALLY Vizro dashboards. This skill enforces a 3-step workflow (requirements, layout, visualization) that must be followed before implementation. For implementation and testing, use the dashboard-build skill after completing Steps 1-3.
Ux Researcher Designer
UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.
Performance Testing
Benchmark indicator performance with BenchmarkDotNet. Use for Series/Buffer/Stream benchmarks, regression detection, and optimization patterns. Target 1.5x Series for StreamHub, 1.2x for BufferList.
