Research

From Steffen025/pai-opencode · View interactive version

Research is an AI agent skill from the GitHub repository Steffen025/pai-opencode. Comprehensive research and content extraction. USE WHEN research, investigate, extract wisdom, analyze content. For OSINT use OSINT skill.

How to use this skill

Skill file

Customization

Before executing, check for user customizations at:

~/.opencode/PAI/USER/SKILLCUSTOMIZATIONS/Research/

If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.

Research Skill

Comprehensive research, analysis, and content extraction system.

MANDATORY: URL Verification

READ: UrlVerificationProtocol.md - Every URL must be verified before delivery.

Research agents hallucinate URLs. A single broken link is a catastrophic failure.


Voice Notification

When executing a workflow, do BOTH:

  1. Send voice notification:

```bash

curl -s -X POST http://localhost:8888/notify \

-H "Content-Type: application/json" \

-d '{"message": "Running the WORKFLOWNAME workflow from the Research skill"}' \

> /dev/null 2>&1 &

```

  1. Output text notification:

```

Running the WorkflowName workflow from the Research skill...

```

Workflow Routing

Route to the appropriate workflow based on the request.

CRITICAL: For due diligence, company/person background checks, or vetting -> INVOKE OSINT SKILL INSTEAD

Research Modes (Primary Workflows)

Trigger: "standard research", "thorough research", "research X from multiple angles"

Trigger: "extensive research" - REQUIRES USER CONFIRMATION

Controller & Constraints

READ FIRST: When spawning parallel research agents to prevent Matryoshka Paradox

Deep Content Analysis

Content Retrieval

Specific Research Types

Fabric Pattern Processing

Content Enhancement


Quick Reference

READ: QuickReference.md for detailed examples and mode comparison.

| Trigger | Mode | Agents | Cost | Speed |

|---------|------|--------|------|-------|

| "research X" (default) | Quick | 1 Claude | $0 FREE | ~10-15s |

| "standard research" | Standard | 3 (Claude+Gemini+Perplexity) | ~$0.01 | ~15-30s |

| "extensive research" | Extensive | 4-15 (flexible) | ~$0.10-0.50 | ~60-120s |


Integration

Feeds Into

Uses


File Organization

Scratch (temporary work artifacts): ~/.opencode/MEMORY/WORK/{current_work}/scratch/

History (permanent): ~/.opencode/History/research/YYYY-MM/YYYY-MM-DD_[topic]/


⚠️ MANDATORY: Research Agent Constraints

CRITICAL RULES to prevent Matryoshka Paradox (recursive agent spawning):

1. Recursion Depth Limit

2. Sub-Agent Tier Restrictions

When a Research Agent spawns Sub-Agents:

3. ExtensiveResearch Requires Human Approval

4. Enforcement

When implementing research workflows:

// Parent agent (you) decides tier
IF cost < $0.01 AND no_sub_agents_needed:
  → Use QuickResearch or StandardResearch
  
IF cost > $0.01 OR complex multi-angle:
  → Ask user for ExtensiveResearch approval
  → Only spawn Sub-Agents with Quick/Standard modes
  → Sub-Agents return results to parent
  → Parent synthesizes (no further spawning)

Violation: If you see a plan with 3+ levels of research agents, STOP and restructure.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.