Back to list
estiens

pal-thinkdeep

by estiens

composable meta-cognitive scaffolds for LLM chats

0🍴 0📅 Dec 29, 2025

SKILL.md


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

ParameterTypeDescription
stepstringCurrent investigation narrative
step_numberintCurrent step
total_stepsintEstimated total
next_step_requiredboolMore investigation needed?
findingsstringEvidence and insights

Optional Parameters

ParameterTypeDescription
hypothesisstringCurrent theory
confidenceenumexploring → certain
focus_areaslist["architecture", "performance", "security"]
problem_contextstringBackground and constraints
relevant_fileslistKey files (absolute paths)
files_checkedlistAll files examined
issues_foundlistProblems with severity
continuation_idstringContinue session
thinking_modeenumminimal/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

LevelEvidenceAction
exploringNone yetGather data
lowInitial cluesForm hypothesis
mediumSupporting evidenceTest hypothesis
highStrong evidenceVerify conclusion
very_highConfirmedDocument findings
certainProvenSkip 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

  1. Start with questions - What do we need to learn?
  2. Gather evidence first - Don't jump to conclusions
  3. Consider alternatives - Challenge your assumptions
  4. Document reasoning - Future you will thank you
  5. Update confidence honestly - Uncertainty is information
  6. Use continuation_id - Preserve context across steps

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon