mcpField
P
perplexity-web-research

perplexity-web-research

github.com/xpepperProductivity19121 installsUpdated 38w ago
Repository

About perplexity-web-research

A skill for using the `llm` CLI with the Perplexity plugin for web research, reasoning, and independent validation. It describes model selection and query practices for current information, second opinions, and complex analysis.

Key features

  1. 01Run Perplexity models through the `llm` CLI
  2. 02Choose models by research and reasoning needs
  3. 03Research current external information
  4. 04Get independent perspectives on decisions
  5. 05Delegate complex analysis to reasoning models

Use cases

  1. 01Checking current API documentation or library versions
  2. 02Researching unfamiliar errors and recent changes
  3. 03Comparing architecture or technology options
  4. 04Delegating multi-step reasoning or system design

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/xpepper/perplexity-agent-skill --skill perplexity-web-research

After installing, type/perplexity-web-researchin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
model-selection-guide.md
query-strategies.md
setup.md
subagent-patterns.md

Details

From the project README

Perplexity Web Research

Use the llm CLI with Perplexity plugin for web research, deep reasoning, and independent validation.

Quick Start

llm -m sonar 'your question here'

Model Selection

ModelUse CaseContextWeb Search
sonarQuick lookups, general questions (default)128k✓
sonar-proThorough answers, detailed research200k✓
sonar-deep-researchComplex multi-faceted research128k✓
sonar-reasoningStep-by-step reasoning questions128k✓
sonar-reasoning-proAdvanced reasoning with detail128k✓
r1-1776Reasoning without web search128k✗

Start with sonar for most queries. Upgrade to other models when you need comprehensive coverage (sonar-pro), complex synthesis (sonar-deep-research), or logical reasoning (sonar-reasoning/sonar-reasoning-pro).

For detailed selection criteria, decision flowcharts, and examples, see references/model-selection-guide.md.

When to Use

Use this skill in three primary scenarios:

1. Current or External Knowledge

When you need up-to-date information and intentionally want to use Perplexity instead of standard web fetch tools:

  • Documentation lookups: Current API docs, library references, framework guides
  • Library versions: "What's the latest version of X?"
  • Recent changes: "What changed in Y version 2.0?"
  • Error research: Unfamiliar error messages or stack traces
  • Technology verification: "Does X support Y feature?"
  • Current events: Recent news, announcements, releases
  • Fact checking: Information that may have changed since training cutoff
2. Second Opinions

When you want an independent perspective before committing to a decision or approach:

  • Architecture decisions: "What are the trade-offs between approach A and B?"
  • Technology choices: "Should I use X or Y for this use case?"
  • Design validation: "Is this approach considered best practice?"
  • Problem verification: "Am I thinking about this problem correctly?"
  • Alternative perspectives: "What other ways could this be solved?"
3. Deep Reasoning Delegation

When you want to offload complex analytical thinking to specialized reasoning models (even when information doesn't need to be current):

  • Complex problem solving: Multi-step reasoning requiring systematic analysis
  • Algorithmic thinking: "How should I optimize this algorithm?"
  • System design: "How should I architect this system?"
  • Trade-off analysis: Comparing multiple options with many variables
  • Mathematical reasoning: Calculations, proofs, or quantitative analysis

When NOT to Use

Do NOT use for:

  • Local codebase questions: Use grep/read tools instead
  • Information already in context: Use existing conversation context
  • Simple factual questions: Use your training data when sufficient
  • Tasks requiring file operations: Code analysis, refactoring, editing

This skill complements, not replaces, standard web tools (WebFetch, WebSearch). Choose based on whether you want Perplexity's specific capabilities (reasoning models, synthesis, alternative perspective).

Query Best Practices

Craft effective queries for better results:

  • Be specific and detailed rather than vague
  • Include time constraints for current information
  • Specify output format when helpful
  • Use domain-appropriate terminology

For comprehensive query strategies and examples, see references/query-strategies.md.

Usage Examples

Current Knowledge: Documentation Lookup
llm -m sonar 'Next.js App Router documentation 2026'
Current Knowledge: Error Research
llm -m sonar 'ECONNREFUSED error when connecting to PostgreSQL'
Current Knowledge: Library Version
llm -m sonar 'latest stable version of React 2026'
Current Knowledge: Complex Research
llm -m sonar-deep-research 'comparison of WebSocket vs Server-Sent Events for real-time updates in 2026'
Second Opinion: Architecture Decision
llm -m sonar-pro 'trade-offs between microservices and monolith for a team of 5 engineers'
Second Opinion: Technology Choice
llm -m sonar 'should I use PostgreSQL or MongoDB for a social media analytics platform'
Deep Reasoning: Algorithm Design
llm -m sonar-reasoning 'how to design an efficient caching strategy for a rate-limited API with bursty traffic patterns'
Deep Reasoning: System Architecture
llm -m sonar-reasoning-pro 'design a scalable job queue system that handles both immediate and scheduled tasks with priority levels'

Using as a Subagent

This skill can be invoked directly or spawned as a subagent for complex research tasks.

Use direct invocation for straightforward queries where results can be immediately incorporated.

Use subagent invocation when research requires multiple iterations, synthesis of findings, or can happen while you work on other tasks.

For detailed patterns and examples, see references/subagent-patterns.md.

Context Marker

When using this skill, add 🔍 as a start-of-message marker.

🔍 I will research Next.js App Router on Perplexity...

Setup

If the llm CLI or Perplexity plugin is not installed, see references/setup.md for installation instructions.

Relationship with Other Tools

This skill complements standard web tools (WebFetch, WebSearch), not replaces them.

Use Perplexity when you want:

  • Specialized reasoning models for complex analysis
  • Synthesis and perspective from multiple sources
  • Independent validation or second opinions
  • Specific Perplexity model capabilities

Use standard web tools when you want:

  • Direct access to specific URLs or pages
  • Raw content from known sources
  • General web search without specialized reasoning

Comments

Markdown supported