Skip to content
SkillVault logo SkillVault
Free ChatGPT GPTs Claude Code Cursor

perplexity-search

Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.

0 downloads 0 views Updated Oct 31, 2026 v1.0.0
perplexity-search skill cover

Overview

Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.

Source: https://github.com/DenDen047/claude-scientific-skills · MIT LICENSE · © 2025 K-Dense Inc.

System prompt

The instruction block that defines the agent's role, rules and output format.

system-prompt.txt
# Perplexity Search

## Overview

Perform AI-powered web searches using Perplexity models through LiteLLM and OpenRouter. Perplexity provides real-time, web-grounded answers with source citations, making it ideal for finding current information, recent scientific literature, and facts beyond the model's training data cutoff.

This skill provides access to all Perplexity models through OpenRouter, requiring only a single API key (no separate Perplexity account needed).

## When to Use This Skill

Use this skill when:
- Searching for current information or recent developments (2024 and beyond)
- Finding latest scientific publications and research
- Getting real-time answers grounded in web sources
- Verifying facts with source citations
- Conducting literature searches across multiple domains
- Accessing information beyond the model's knowledge cutoff
- Performing domain-specific research (biomedical, technical, clinical)
- Comparing current approaches or technologies

**Do not use** for:
- Simple calculations or logic problems (use directly)
- Tasks requiring code execution (use standard tools)
- Questions well within the model's training data (unless verification needed)

## Quick Start

### Setup (One-time)

1. **Get OpenRouter API key**:
   - Visit https://openrouter.ai/keys
   - Create account and generate API key
   - Add credits to account (minimum $5 recommended)

2. **Configure environment**:
   ```bash
   # Set API key
   export OPENROUTER_API_KEY='sk-or-v1-your-key-here'

   # Or use setup script
   python scripts/setup_env.py --api-key sk-or-v1-your-key-here
   ```

3. **Install dependencies**:
   ```bash
   uv pip install litellm
   ```

4. **Verify setup**:
   ```bash
   python scripts/perplexity_search.py --check-setup
   ```

See `references/openrouter_setup.md` for detailed setup instructions, troubleshooting, and security best practices.

### Basic Usage

**Simple search:**
```bash
python scripts/perplexity_search.py "What are the latest developments in CRISPR gene editing?"
```

**Save results:**
```bash
python scripts/perplexity_search.py "Recent CAR-T therapy clinical trials" --output results.json
```

**Use specific model:**
```bash
python scripts/perplexity_search.py "Compare mRNA and viral vector vaccines" --model sonar-pro-search
```

**Verbose output:**
```bash
python scripts/perplexity_search.py "Quantum computing for drug discovery" --verbose
```

## Available Models

Access models via `--model` parameter:

- **sonar-pro** (default): General-purpose search, best balance of cost and quality
- **sonar-pro-search**: Most advanced agentic search with multi-step reasoning
- **sonar**: Basic model, most cost-effective for simple queries
- **sonar-reasoning-pro**: Advanced reasoning with step-by-step analysis
- **sonar-reasoning**: Basic reasoning capabilities

**Model selection guide:**
- Default queries → `sonar-pro`
- Complex multi-step analysis → `sonar-pro-search`
- Explicit reasoning needed → `sonar-reasoning-pro`
- Simple fact lookups → `sonar`
- Cost-sensitive bulk queries → `sonar`

See `references/model_comparison.md` for detailed comparison, use cases, pricing, and performance characteristics.

## Crafting Effective Queries

### Be Specific and Detailed

**Good examples:**
- "What are the latest clinical trial results for CAR-T cell therapy in treating B-cell lymphoma published in 2024?"
- "Compare the efficacy and safety profiles of mRNA vaccines versus viral vector vaccines for COVID-19"
- "Explain AlphaFold3 improvements over AlphaFold2 with specific accuracy metrics from 2023-2024 research"

**Bad examples:**
- "Tell me about cancer treatment" (too broad)
- "CRISPR" (too vague)
- "vaccines" (lacks specificity)

### Include Time Constraints

Perplexity searches real-time web data:
- "What papers were published in Nature Medicine in 2024 about long COVID?"
- "What are the latest developments (past 6 months) in large language model efficiency?"
- "What was announced at NeurIPS 2023 regarding AI safety?"

### Specify Domain and Sources

For high-quality results, mention source preferences:
- "According to peer-reviewed publications in high-impact journals..."
- "Based on FDA-approved treatments..."
- "From clinical trial registries like clinicaltrials.gov..."

### Structure Complex Queries

Break complex questions into clear components:
1. **Topic**: Main subject
2. **Scope**: Specific aspect of interest
3. **Context**: Time frame, domain, constraints
4. **Output**: Desired format or type of answer

**Example:**
"What improvements does AlphaFold3 offer over AlphaFold2 for protein structure prediction, according to research published between 2023 and 2024? Include specific accuracy metrics and benchmarks."

See `references/search_strategies.md` for comprehensive guidance on query design, domain-specific patterns, and advanced techniques.

## Common Use Cases

### Scientific Literature Search

```bash
python scripts/perplexity_search.py \
  "What does recent research (2023-2024) say about the role of gut microbiome in Parkinson's disease? Focus on peer-reviewed studies and include specific bacterial species identified." \
  --model sonar-pro
```

### Technical Documentation

```bash
python scripts/perplexity_search.py \
  "How to implement real-time data streaming from Kafka to PostgreSQL using Python? Include considerations for handling backpressure and ensuring exactly-once semantics." \
  --model sonar-reasoning-pro
```

### Comparative Analysis

```bash
python scripts/perplexity_search.py \
  "Compare PyTorch versus TensorFlow for implementing transformer models in terms of ease of use, performance, and ecosystem support. Include benchmarks from recent studies." \
  --model sonar-pro-search
```

### Clinical Research

```bash
python scripts/perplexity_search.py \
  "What is the evidence for intermittent fasting in managing type 2 diabetes in adults? Focus on randomized controlled trials and report HbA1c changes and weight loss outcomes." \
  --model sonar-pro
```

### Trend Analysis

```bash
python scripts/perplexity_search.py \
  "What are the key trends in single-cell RNA sequencing technology over the past 5 years? Highlight improvements in throughput, cost, and resolution, with specific examples." \
  --model sonar-pro
```

## Working with Results

### Programmatic Access

Use `perplexity_search.py` as a module:

```python
from scripts.perplexity_search import search_with_perplexity

result = search_with_perplexity(
    query="What are the latest CRISPR developments?",
    model="openrouter/perplexity/sonar-pro",
    max_tokens=4000,
    temperature=0.2,
    verbose=False
)

if result["success"]:
    print(result["answer"])
    print(f"Tokens used: {result['usage']['total_tokens']}")
else:
    print(f"Error: {result['error']}")
```

### Save and Process Results

```bash
# Save to JSON
python scripts/perplexity_search.py "query" --output results.json

# Process with jq
cat results.json | jq '.answer'
cat results.json | jq '.usage'
```

### Batch Processing

Create a script for multiple queries:

```bash
#!/bin/bash
queries=(
  "CRISPR developments 2024"
  "mRNA vaccine technology advances"
  "AlphaFold3 accuracy improvements"
)

for query in "${queries[@]}"; do
  echo "Searching: $query"
  python scripts/perplexity_search.py "$query" --output "results_$(echo $query | tr ' ' '_').json"
  sleep 2  # Rate limiting
done
```

## Cost Management

Perplexity models have different pricing tiers:

**Approximate costs per query:**
- Sonar: $0.001-0.002 (most cost-effective)
- Sonar Pro: $0.002-0.005 (recommended default)
- Sonar Reasoning Pro: $0.005-0.010
- Sonar Pro Search: $0.020-0.050+ (most comprehensive)

**Cost optimization strategies:**
1. Use `sonar` for simple fact lookups
2. Default to `sonar-pro` for most queries
3. Reserve `sonar-pro-search` for complex analysis
4. Set `--max-tokens` to limit response length
5. Monitor usage at https://openrouter.ai/activity
6. Set spending limits in OpenRouter dashboard

## Troubleshooting

### API Key Not Set

**Error**: "OpenRouter API key not configured"

**Solution**:
```bash
export OPENROUTER_API_KEY='sk-or-v1-your-key-here'
# Or run setup script
python scripts/setup_env.py --api-key sk-or-v1-your-key-here
```

### LiteLLM Not Installed

**Error**: "LiteLLM not installed"

**Solution**:
```bash
uv pip install litellm
```

### Rate Limiting

**Error**: "Rate limit exceeded"

**Solutions**:
- Wait a few seconds before retrying
- Increase rate limit at https://openrouter.ai/keys
- Add delays between requests in batch processing

### Insufficient Credits

**Error**: "Insufficient credits"

**Solution**:
- Add credits at https://openrouter.ai/account
- Enable auto-recharge to prevent interruptions

See `references/openrouter_setup.md` for comprehensive troubleshooting guide.

## Integration with Other Skills

This skill complements other scientific skills:

### Literature Review

Use with `literature-review` skill:
1. Use Perplexity to find recent papers and preprints
2. Supplement PubMed searches with real-time web results
3. Verify citations and find related work
4. Discover latest developments post-database indexing

### Scientific Writing

Use with `scientific-writing` skill:
1. Find recent references for introduction/discussion
2. Verify current state of the art
3. Check latest terminology and conventions
4. Identify recent competing approaches

### Hypothesis Generation

Use with `hypothesis-generation` skill:
1. Search for latest research findings
2. Identify current gaps in knowledge
3. Find recent methodological advances
4. Discover emerging research directions

### Critical Thinking

Use with `scientific-critical-thinking` skill:
1. Find evidence for and against hypotheses
2. Locate methodological critiques
3. Identify controversies in the field
4. Verify claims with current evidence

## Best Practices

### Query Design

1. **Be specific**: Include domain, time frame, and constraints
2. **Use terminology**: Domain-appropriate keywords and phrases
3. **Specify sources**: Mention preferred publication types or journals
4. **Structure questions**: Clear components with explicit context
5. **Iterate**: Refine based on initial results

### Model Selection

1. **Start with sonar-pro**: Good default for most queries
2. **Upgrade for complexity**: Use sonar-pro-search for multi-step analysis
3. **Downgrade for simplicity**: Use sonar for basic facts
4. **Use reasoning models**: When step-by-step analysis needed

### Cost Optimization

1. **Choose appropriate models**: Match model to query complexity
2. **Set token limits**: Use `--max-tokens` to control costs
3. **Monitor usage**: Check OpenRouter dashboard regularly
4. **Batch efficiently**: Combine related simple queries when possible
5. **Cache results**: Save and reuse results for repeated queries

### Security

1. **Protect API keys**: Never commit to version control
2. **Use environment variables**: Keep keys separate from code
3. **Set spending limits**: Configure in OpenRouter dashboard
4. **Monitor usage**: Watch for unexpected activity
5. **Rotate keys**: Change keys periodically

## Resources

### Bundled Resources

**Scripts:**
- `scripts/perplexity_search.py`: Main search script with CLI interface
- `scripts/setup_env.py`: Environment setup and validation helper

**References:**
- `references/search_strategies.md`: Comprehensive query design guide
- `references/model_comparison.md`: Detailed model comparison and selection guide
- `references/openrouter_setup.md`: Complete setup, troubleshooting, and security guide

**Assets:**
- `assets/.env.example`: Example environment file template

### External Resources

**OpenRouter:**
- Dashboard: https://openrouter.ai/account
- API Keys: https://openrouter.ai/keys
- Perplexity Models: https://openrouter.ai/perplexity
- Usage Monitoring: https://openrouter.ai/activity
- Documentation: https://openrouter.ai/docs

**LiteLLM:**
- Documentation: https://docs.litellm.ai/
- OpenRouter Provider: https://docs.litellm.ai/docs/providers/openrouter
- GitHub: https://github.com/BerriAI/litellm

**Perplexity:**
- Official Docs: https://docs.perplexity.ai/

## Dependencies

### Required

```bash
# LiteLLM for API access
uv pip install litellm
```

### Optional

```bash
# For .env file support
uv pip install python-dotenv

# For JSON processing (usually pre-installed)
uv pip install jq
```

### Environment Variables

Required:
- `OPENROUTER_API_KEY`: Your OpenRouter API key

Optional:
- `DEFAULT_MODEL`: Default model to use (default: sonar-pro)
- `DEFAULT_MAX_TOKENS`: Default max tokens (default: 4000)
- `DEFAULT_TEMPERATURE`: Default temperature (default: 0.2)

## Summary

This skill provides:

1. **Real-time web search**: Access current information beyond training data cutoff
2. **Multiple models**: From cost-effective Sonar to advanced Sonar Pro Search
3. **Simple setup**: Single OpenRouter API key, no separate Perplexity account
4. **Comprehensive guidance**: Detailed references for query design and model selection
5. **Cost-effective**: Pay-as-you-go pricing with usage monitoring
6. **Scientific focus**: Optimized for research, literature search, and technical queries
7. **Easy integration**: Works seamlessly with other scientific skills

Conduct AI-powered web searches to find current information, recent research, and grounded answers with source citations.

User prompt template

Fill in the variables and send it to run the skill: {{variables}}

user-template.txt

Variables

Name Required Description Example

Full skill configuration

The standard .aiskill file in JSON and YAML.

perplexity-search.aiskill (JSON)
{
  "format": "aiskill/v1",
  "skill": {
    "name": "perplexity-search",
    "slug": "perplexity-search",
    "version": "1.0.0",
    "description": "Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.",
    "category": "Research",
    "tags": [
      "research-science",
      "agents",
      "research",
      "api"
    ],
    "platforms": [
      "chatgpt",
      "claude-code",
      "cursor"
    ],
    "tested_environment": "Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and compatible agents",
    "license": "MIT LICENSE"
  },
  "prompts": {
    "system": "# Perplexity Search\r\n\r\n## Overview\r\n\r\nPerform AI-powered web searches using Perplexity models through LiteLLM and OpenRouter. Perplexity provides real-time, web-grounded answers with source citations, making it ideal for finding current information, recent scientific literature, and facts beyond the model's training data cutoff.\r\n\r\nThis skill provides access to all Perplexity models through OpenRouter, requiring only a single API key (no separate Perplexity account needed).\r\n\r\n## When to Use This Skill\r\n\r\nUse this skill when:\r\n- Searching for current information or recent developments (2024 and beyond)\r\n- Finding latest scientific publications and research\r\n- Getting real-time answers grounded in web sources\r\n- Verifying facts with source citations\r\n- Conducting literature searches across multiple domains\r\n- Accessing information beyond the model's knowledge cutoff\r\n- Performing domain-specific research (biomedical, technical, clinical)\r\n- Comparing current approaches or technologies\r\n\r\n**Do not use** for:\r\n- Simple calculations or logic problems (use directly)\r\n- Tasks requiring code execution (use standard tools)\r\n- Questions well within the model's training data (unless verification needed)\r\n\r\n## Quick Start\r\n\r\n### Setup (One-time)\r\n\r\n1. **Get OpenRouter API key**:\r\n   - Visit https://openrouter.ai/keys\r\n   - Create account and generate API key\r\n   - Add credits to account (minimum $5 recommended)\r\n\r\n2. **Configure environment**:\r\n   ```bash\r\n   # Set API key\r\n   export OPENROUTER_API_KEY='sk-or-v1-your-key-here'\r\n\r\n   # Or use setup script\r\n   python scripts/setup_env.py --api-key sk-or-v1-your-key-here\r\n   ```\r\n\r\n3. **Install dependencies**:\r\n   ```bash\r\n   uv pip install litellm\r\n   ```\r\n\r\n4. **Verify setup**:\r\n   ```bash\r\n   python scripts/perplexity_search.py --check-setup\r\n   ```\r\n\r\nSee `references/openrouter_setup.md` for detailed setup instructions, troubleshooting, and security best practices.\r\n\r\n### Basic Usage\r\n\r\n**Simple search:**\r\n```bash\r\npython scripts/perplexity_search.py \"What are the latest developments in CRISPR gene editing?\"\r\n```\r\n\r\n**Save results:**\r\n```bash\r\npython scripts/perplexity_search.py \"Recent CAR-T therapy clinical trials\" --output results.json\r\n```\r\n\r\n**Use specific model:**\r\n```bash\r\npython scripts/perplexity_search.py \"Compare mRNA and viral vector vaccines\" --model sonar-pro-search\r\n```\r\n\r\n**Verbose output:**\r\n```bash\r\npython scripts/perplexity_search.py \"Quantum computing for drug discovery\" --verbose\r\n```\r\n\r\n## Available Models\r\n\r\nAccess models via `--model` parameter:\r\n\r\n- **sonar-pro** (default): General-purpose search, best balance of cost and quality\r\n- **sonar-pro-search**: Most advanced agentic search with multi-step reasoning\r\n- **sonar**: Basic model, most cost-effective for simple queries\r\n- **sonar-reasoning-pro**: Advanced reasoning with step-by-step analysis\r\n- **sonar-reasoning**: Basic reasoning capabilities\r\n\r\n**Model selection guide:**\r\n- Default queries → `sonar-pro`\r\n- Complex multi-step analysis → `sonar-pro-search`\r\n- Explicit reasoning needed → `sonar-reasoning-pro`\r\n- Simple fact lookups → `sonar`\r\n- Cost-sensitive bulk queries → `sonar`\r\n\r\nSee `references/model_comparison.md` for detailed comparison, use cases, pricing, and performance characteristics.\r\n\r\n## Crafting Effective Queries\r\n\r\n### Be Specific and Detailed\r\n\r\n**Good examples:**\r\n- \"What are the latest clinical trial results for CAR-T cell therapy in treating B-cell lymphoma published in 2024?\"\r\n- \"Compare the efficacy and safety profiles of mRNA vaccines versus viral vector vaccines for COVID-19\"\r\n- \"Explain AlphaFold3 improvements over AlphaFold2 with specific accuracy metrics from 2023-2024 research\"\r\n\r\n**Bad examples:**\r\n- \"Tell me about cancer treatment\" (too broad)\r\n- \"CRISPR\" (too vague)\r\n- \"vaccines\" (lacks specificity)\r\n\r\n### Include Time Constraints\r\n\r\nPerplexity searches real-time web data:\r\n- \"What papers were published in Nature Medicine in 2024 about long COVID?\"\r\n- \"What are the latest developments (past 6 months) in large language model efficiency?\"\r\n- \"What was announced at NeurIPS 2023 regarding AI safety?\"\r\n\r\n### Specify Domain and Sources\r\n\r\nFor high-quality results, mention source preferences:\r\n- \"According to peer-reviewed publications in high-impact journals...\"\r\n- \"Based on FDA-approved treatments...\"\r\n- \"From clinical trial registries like clinicaltrials.gov...\"\r\n\r\n### Structure Complex Queries\r\n\r\nBreak complex questions into clear components:\r\n1. **Topic**: Main subject\r\n2. **Scope**: Specific aspect of interest\r\n3. **Context**: Time frame, domain, constraints\r\n4. **Output**: Desired format or type of answer\r\n\r\n**Example:**\r\n\"What improvements does AlphaFold3 offer over AlphaFold2 for protein structure prediction, according to research published between 2023 and 2024? Include specific accuracy metrics and benchmarks.\"\r\n\r\nSee `references/search_strategies.md` for comprehensive guidance on query design, domain-specific patterns, and advanced techniques.\r\n\r\n## Common Use Cases\r\n\r\n### Scientific Literature Search\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What does recent research (2023-2024) say about the role of gut microbiome in Parkinson's disease? Focus on peer-reviewed studies and include specific bacterial species identified.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n### Technical Documentation\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"How to implement real-time data streaming from Kafka to PostgreSQL using Python? Include considerations for handling backpressure and ensuring exactly-once semantics.\" \\\r\n  --model sonar-reasoning-pro\r\n```\r\n\r\n### Comparative Analysis\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"Compare PyTorch versus TensorFlow for implementing transformer models in terms of ease of use, performance, and ecosystem support. Include benchmarks from recent studies.\" \\\r\n  --model sonar-pro-search\r\n```\r\n\r\n### Clinical Research\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What is the evidence for intermittent fasting in managing type 2 diabetes in adults? Focus on randomized controlled trials and report HbA1c changes and weight loss outcomes.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n### Trend Analysis\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What are the key trends in single-cell RNA sequencing technology over the past 5 years? Highlight improvements in throughput, cost, and resolution, with specific examples.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n## Working with Results\r\n\r\n### Programmatic Access\r\n\r\nUse `perplexity_search.py` as a module:\r\n\r\n```python\r\nfrom scripts.perplexity_search import search_with_perplexity\r\n\r\nresult = search_with_perplexity(\r\n    query=\"What are the latest CRISPR developments?\",\r\n    model=\"openrouter/perplexity/sonar-pro\",\r\n    max_tokens=4000,\r\n    temperature=0.2,\r\n    verbose=False\r\n)\r\n\r\nif result[\"success\"]:\r\n    print(result[\"answer\"])\r\n    print(f\"Tokens used: {result['usage']['total_tokens']}\")\r\nelse:\r\n    print(f\"Error: {result['error']}\")\r\n```\r\n\r\n### Save and Process Results\r\n\r\n```bash\r\n# Save to JSON\r\npython scripts/perplexity_search.py \"query\" --output results.json\r\n\r\n# Process with jq\r\ncat results.json | jq '.answer'\r\ncat results.json | jq '.usage'\r\n```\r\n\r\n### Batch Processing\r\n\r\nCreate a script for multiple queries:\r\n\r\n```bash\r\n#!/bin/bash\r\nqueries=(\r\n  \"CRISPR developments 2024\"\r\n  \"mRNA vaccine technology advances\"\r\n  \"AlphaFold3 accuracy improvements\"\r\n)\r\n\r\nfor query in \"${queries[@]}\"; do\r\n  echo \"Searching: $query\"\r\n  python scripts/perplexity_search.py \"$query\" --output \"results_$(echo $query | tr ' ' '_').json\"\r\n  sleep 2  # Rate limiting\r\ndone\r\n```\r\n\r\n## Cost Management\r\n\r\nPerplexity models have different pricing tiers:\r\n\r\n**Approximate costs per query:**\r\n- Sonar: $0.001-0.002 (most cost-effective)\r\n- Sonar Pro: $0.002-0.005 (recommended default)\r\n- Sonar Reasoning Pro: $0.005-0.010\r\n- Sonar Pro Search: $0.020-0.050+ (most comprehensive)\r\n\r\n**Cost optimization strategies:**\r\n1. Use `sonar` for simple fact lookups\r\n2. Default to `sonar-pro` for most queries\r\n3. Reserve `sonar-pro-search` for complex analysis\r\n4. Set `--max-tokens` to limit response length\r\n5. Monitor usage at https://openrouter.ai/activity\r\n6. Set spending limits in OpenRouter dashboard\r\n\r\n## Troubleshooting\r\n\r\n### API Key Not Set\r\n\r\n**Error**: \"OpenRouter API key not configured\"\r\n\r\n**Solution**:\r\n```bash\r\nexport OPENROUTER_API_KEY='sk-or-v1-your-key-here'\r\n# Or run setup script\r\npython scripts/setup_env.py --api-key sk-or-v1-your-key-here\r\n```\r\n\r\n### LiteLLM Not Installed\r\n\r\n**Error**: \"LiteLLM not installed\"\r\n\r\n**Solution**:\r\n```bash\r\nuv pip install litellm\r\n```\r\n\r\n### Rate Limiting\r\n\r\n**Error**: \"Rate limit exceeded\"\r\n\r\n**Solutions**:\r\n- Wait a few seconds before retrying\r\n- Increase rate limit at https://openrouter.ai/keys\r\n- Add delays between requests in batch processing\r\n\r\n### Insufficient Credits\r\n\r\n**Error**: \"Insufficient credits\"\r\n\r\n**Solution**:\r\n- Add credits at https://openrouter.ai/account\r\n- Enable auto-recharge to prevent interruptions\r\n\r\nSee `references/openrouter_setup.md` for comprehensive troubleshooting guide.\r\n\r\n## Integration with Other Skills\r\n\r\nThis skill complements other scientific skills:\r\n\r\n### Literature Review\r\n\r\nUse with `literature-review` skill:\r\n1. Use Perplexity to find recent papers and preprints\r\n2. Supplement PubMed searches with real-time web results\r\n3. Verify citations and find related work\r\n4. Discover latest developments post-database indexing\r\n\r\n### Scientific Writing\r\n\r\nUse with `scientific-writing` skill:\r\n1. Find recent references for introduction/discussion\r\n2. Verify current state of the art\r\n3. Check latest terminology and conventions\r\n4. Identify recent competing approaches\r\n\r\n### Hypothesis Generation\r\n\r\nUse with `hypothesis-generation` skill:\r\n1. Search for latest research findings\r\n2. Identify current gaps in knowledge\r\n3. Find recent methodological advances\r\n4. Discover emerging research directions\r\n\r\n### Critical Thinking\r\n\r\nUse with `scientific-critical-thinking` skill:\r\n1. Find evidence for and against hypotheses\r\n2. Locate methodological critiques\r\n3. Identify controversies in the field\r\n4. Verify claims with current evidence\r\n\r\n## Best Practices\r\n\r\n### Query Design\r\n\r\n1. **Be specific**: Include domain, time frame, and constraints\r\n2. **Use terminology**: Domain-appropriate keywords and phrases\r\n3. **Specify sources**: Mention preferred publication types or journals\r\n4. **Structure questions**: Clear components with explicit context\r\n5. **Iterate**: Refine based on initial results\r\n\r\n### Model Selection\r\n\r\n1. **Start with sonar-pro**: Good default for most queries\r\n2. **Upgrade for complexity**: Use sonar-pro-search for multi-step analysis\r\n3. **Downgrade for simplicity**: Use sonar for basic facts\r\n4. **Use reasoning models**: When step-by-step analysis needed\r\n\r\n### Cost Optimization\r\n\r\n1. **Choose appropriate models**: Match model to query complexity\r\n2. **Set token limits**: Use `--max-tokens` to control costs\r\n3. **Monitor usage**: Check OpenRouter dashboard regularly\r\n4. **Batch efficiently**: Combine related simple queries when possible\r\n5. **Cache results**: Save and reuse results for repeated queries\r\n\r\n### Security\r\n\r\n1. **Protect API keys**: Never commit to version control\r\n2. **Use environment variables**: Keep keys separate from code\r\n3. **Set spending limits**: Configure in OpenRouter dashboard\r\n4. **Monitor usage**: Watch for unexpected activity\r\n5. **Rotate keys**: Change keys periodically\r\n\r\n## Resources\r\n\r\n### Bundled Resources\r\n\r\n**Scripts:**\r\n- `scripts/perplexity_search.py`: Main search script with CLI interface\r\n- `scripts/setup_env.py`: Environment setup and validation helper\r\n\r\n**References:**\r\n- `references/search_strategies.md`: Comprehensive query design guide\r\n- `references/model_comparison.md`: Detailed model comparison and selection guide\r\n- `references/openrouter_setup.md`: Complete setup, troubleshooting, and security guide\r\n\r\n**Assets:**\r\n- `assets/.env.example`: Example environment file template\r\n\r\n### External Resources\r\n\r\n**OpenRouter:**\r\n- Dashboard: https://openrouter.ai/account\r\n- API Keys: https://openrouter.ai/keys\r\n- Perplexity Models: https://openrouter.ai/perplexity\r\n- Usage Monitoring: https://openrouter.ai/activity\r\n- Documentation: https://openrouter.ai/docs\r\n\r\n**LiteLLM:**\r\n- Documentation: https://docs.litellm.ai/\r\n- OpenRouter Provider: https://docs.litellm.ai/docs/providers/openrouter\r\n- GitHub: https://github.com/BerriAI/litellm\r\n\r\n**Perplexity:**\r\n- Official Docs: https://docs.perplexity.ai/\r\n\r\n## Dependencies\r\n\r\n### Required\r\n\r\n```bash\r\n# LiteLLM for API access\r\nuv pip install litellm\r\n```\r\n\r\n### Optional\r\n\r\n```bash\r\n# For .env file support\r\nuv pip install python-dotenv\r\n\r\n# For JSON processing (usually pre-installed)\r\nuv pip install jq\r\n```\r\n\r\n### Environment Variables\r\n\r\nRequired:\r\n- `OPENROUTER_API_KEY`: Your OpenRouter API key\r\n\r\nOptional:\r\n- `DEFAULT_MODEL`: Default model to use (default: sonar-pro)\r\n- `DEFAULT_MAX_TOKENS`: Default max tokens (default: 4000)\r\n- `DEFAULT_TEMPERATURE`: Default temperature (default: 0.2)\r\n\r\n## Summary\r\n\r\nThis skill provides:\r\n\r\n1. **Real-time web search**: Access current information beyond training data cutoff\r\n2. **Multiple models**: From cost-effective Sonar to advanced Sonar Pro Search\r\n3. **Simple setup**: Single OpenRouter API key, no separate Perplexity account\r\n4. **Comprehensive guidance**: Detailed references for query design and model selection\r\n5. **Cost-effective**: Pay-as-you-go pricing with usage monitoring\r\n6. **Scientific focus**: Optimized for research, literature search, and technical queries\r\n7. **Easy integration**: Works seamlessly with other scientific skills\r\n\r\nConduct AI-powered web searches to find current information, recent research, and grounded answers with source citations.",
    "user_template": ""
  },
  "variables": [],
  "install": {
    "steps": [
      {
        "title": "Download & unzip",
        "detail": "Download the .zip package from SkillVault and unzip it. The perplexity-search/ folder contains SKILL.md plus any companion scripts, references and assets."
      },
      {
        "title": "Copy into your agent skills directory",
        "detail": "Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session."
      },
      {
        "title": "Use it",
        "detail": "Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description."
      }
    ]
  },
  "usage": {
    "steps": []
  },
  "metadata": {
    "author": "SkillVault",
    "source": "https://skillvault.top/skills/perplexity-search",
    "exported_at": "2026-11-03T07:42:09.162Z"
  }
}
perplexity-search.aiskill (YAML)
format: aiskill/v1
skill:
  name: perplexity-search
  slug: perplexity-search
  version: 1.0.0
  description: >-
    Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM
    and OpenRouter. This skill should be used when conducting web searches for current information,
    finding recent scientific literature, getting grounded answers with source citations, or
    accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity
    models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro
    through a single OpenRouter API key.
  category: Research
  tags:
    - research-science
    - agents
    - research
    - api
  platforms:
    - chatgpt
    - claude-code
    - cursor
  tested_environment: >-
    Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and
    compatible agents
  license: MIT LICENSE
prompts:
  system: "# Perplexity Search\r\n\r\n## Overview\r\n\r\nPerform AI-powered web searches using Perplexity models through LiteLLM and OpenRouter. Perplexity provides real-time, web-grounded answers with source citations, making it ideal for finding current information, recent scientific literature, and facts beyond the model's training data cutoff.\r\n\r\nThis skill provides access to all Perplexity models through OpenRouter, requiring only a single API key (no separate Perplexity account needed).\r\n\r\n## When to Use This Skill\r\n\r\nUse this skill when:\r\n- Searching for current information or recent developments (2024 and beyond)\r\n- Finding latest scientific publications and research\r\n- Getting real-time answers grounded in web sources\r\n- Verifying facts with source citations\r\n- Conducting literature searches across multiple domains\r\n- Accessing information beyond the model's knowledge cutoff\r\n- Performing domain-specific research (biomedical, technical, clinical)\r\n- Comparing current approaches or technologies\r\n\r\n**Do not use** for:\r\n- Simple calculations or logic problems (use directly)\r\n- Tasks requiring code execution (use standard tools)\r\n- Questions well within the model's training data (unless verification needed)\r\n\r\n## Quick Start\r\n\r\n### Setup (One-time)\r\n\r\n1. **Get OpenRouter API key**:\r\n   - Visit https://openrouter.ai/keys\r\n   - Create account and generate API key\r\n   - Add credits to account (minimum $5 recommended)\r\n\r\n2. **Configure environment**:\r\n   ```bash\r\n   # Set API key\r\n   export OPENROUTER_API_KEY='sk-or-v1-your-key-here'\r\n\r\n   # Or use setup script\r\n   python scripts/setup_env.py --api-key sk-or-v1-your-key-here\r\n   ```\r\n\r\n3. **Install dependencies**:\r\n   ```bash\r\n   uv pip install litellm\r\n   ```\r\n\r\n4. **Verify setup**:\r\n   ```bash\r\n   python scripts/perplexity_search.py --check-setup\r\n   ```\r\n\r\nSee `references/openrouter_setup.md` for detailed setup instructions, troubleshooting, and security best practices.\r\n\r\n### Basic Usage\r\n\r\n**Simple search:**\r\n```bash\r\npython scripts/perplexity_search.py \"What are the latest developments in CRISPR gene editing?\"\r\n```\r\n\r\n**Save results:**\r\n```bash\r\npython scripts/perplexity_search.py \"Recent CAR-T therapy clinical trials\" --output results.json\r\n```\r\n\r\n**Use specific model:**\r\n```bash\r\npython scripts/perplexity_search.py \"Compare mRNA and viral vector vaccines\" --model sonar-pro-search\r\n```\r\n\r\n**Verbose output:**\r\n```bash\r\npython scripts/perplexity_search.py \"Quantum computing for drug discovery\" --verbose\r\n```\r\n\r\n## Available Models\r\n\r\nAccess models via `--model` parameter:\r\n\r\n- **sonar-pro** (default): General-purpose search, best balance of cost and quality\r\n- **sonar-pro-search**: Most advanced agentic search with multi-step reasoning\r\n- **sonar**: Basic model, most cost-effective for simple queries\r\n- **sonar-reasoning-pro**: Advanced reasoning with step-by-step analysis\r\n- **sonar-reasoning**: Basic reasoning capabilities\r\n\r\n**Model selection guide:**\r\n- Default queries → `sonar-pro`\r\n- Complex multi-step analysis → `sonar-pro-search`\r\n- Explicit reasoning needed → `sonar-reasoning-pro`\r\n- Simple fact lookups → `sonar`\r\n- Cost-sensitive bulk queries → `sonar`\r\n\r\nSee `references/model_comparison.md` for detailed comparison, use cases, pricing, and performance characteristics.\r\n\r\n## Crafting Effective Queries\r\n\r\n### Be Specific and Detailed\r\n\r\n**Good examples:**\r\n- \"What are the latest clinical trial results for CAR-T cell therapy in treating B-cell lymphoma published in 2024?\"\r\n- \"Compare the efficacy and safety profiles of mRNA vaccines versus viral vector vaccines for COVID-19\"\r\n- \"Explain AlphaFold3 improvements over AlphaFold2 with specific accuracy metrics from 2023-2024 research\"\r\n\r\n**Bad examples:**\r\n- \"Tell me about cancer treatment\" (too broad)\r\n- \"CRISPR\" (too vague)\r\n- \"vaccines\" (lacks specificity)\r\n\r\n### Include Time Constraints\r\n\r\nPerplexity searches real-time web data:\r\n- \"What papers were published in Nature Medicine in 2024 about long COVID?\"\r\n- \"What are the latest developments (past 6 months) in large language model efficiency?\"\r\n- \"What was announced at NeurIPS 2023 regarding AI safety?\"\r\n\r\n### Specify Domain and Sources\r\n\r\nFor high-quality results, mention source preferences:\r\n- \"According to peer-reviewed publications in high-impact journals...\"\r\n- \"Based on FDA-approved treatments...\"\r\n- \"From clinical trial registries like clinicaltrials.gov...\"\r\n\r\n### Structure Complex Queries\r\n\r\nBreak complex questions into clear components:\r\n1. **Topic**: Main subject\r\n2. **Scope**: Specific aspect of interest\r\n3. **Context**: Time frame, domain, constraints\r\n4. **Output**: Desired format or type of answer\r\n\r\n**Example:**\r\n\"What improvements does AlphaFold3 offer over AlphaFold2 for protein structure prediction, according to research published between 2023 and 2024? Include specific accuracy metrics and benchmarks.\"\r\n\r\nSee `references/search_strategies.md` for comprehensive guidance on query design, domain-specific patterns, and advanced techniques.\r\n\r\n## Common Use Cases\r\n\r\n### Scientific Literature Search\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What does recent research (2023-2024) say about the role of gut microbiome in Parkinson's disease? Focus on peer-reviewed studies and include specific bacterial species identified.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n### Technical Documentation\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"How to implement real-time data streaming from Kafka to PostgreSQL using Python? Include considerations for handling backpressure and ensuring exactly-once semantics.\" \\\r\n  --model sonar-reasoning-pro\r\n```\r\n\r\n### Comparative Analysis\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"Compare PyTorch versus TensorFlow for implementing transformer models in terms of ease of use, performance, and ecosystem support. Include benchmarks from recent studies.\" \\\r\n  --model sonar-pro-search\r\n```\r\n\r\n### Clinical Research\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What is the evidence for intermittent fasting in managing type 2 diabetes in adults? Focus on randomized controlled trials and report HbA1c changes and weight loss outcomes.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n### Trend Analysis\r\n\r\n```bash\r\npython scripts/perplexity_search.py \\\r\n  \"What are the key trends in single-cell RNA sequencing technology over the past 5 years? Highlight improvements in throughput, cost, and resolution, with specific examples.\" \\\r\n  --model sonar-pro\r\n```\r\n\r\n## Working with Results\r\n\r\n### Programmatic Access\r\n\r\nUse `perplexity_search.py` as a module:\r\n\r\n```python\r\nfrom scripts.perplexity_search import search_with_perplexity\r\n\r\nresult = search_with_perplexity(\r\n    query=\"What are the latest CRISPR developments?\",\r\n    model=\"openrouter/perplexity/sonar-pro\",\r\n    max_tokens=4000,\r\n    temperature=0.2,\r\n    verbose=False\r\n)\r\n\r\nif result[\"success\"]:\r\n    print(result[\"answer\"])\r\n    print(f\"Tokens used: {result['usage']['total_tokens']}\")\r\nelse:\r\n    print(f\"Error: {result['error']}\")\r\n```\r\n\r\n### Save and Process Results\r\n\r\n```bash\r\n# Save to JSON\r\npython scripts/perplexity_search.py \"query\" --output results.json\r\n\r\n# Process with jq\r\ncat results.json | jq '.answer'\r\ncat results.json | jq '.usage'\r\n```\r\n\r\n### Batch Processing\r\n\r\nCreate a script for multiple queries:\r\n\r\n```bash\r\n#!/bin/bash\r\nqueries=(\r\n  \"CRISPR developments 2024\"\r\n  \"mRNA vaccine technology advances\"\r\n  \"AlphaFold3 accuracy improvements\"\r\n)\r\n\r\nfor query in \"${queries[@]}\"; do\r\n  echo \"Searching: $query\"\r\n  python scripts/perplexity_search.py \"$query\" --output \"results_$(echo $query | tr ' ' '_').json\"\r\n  sleep 2  # Rate limiting\r\ndone\r\n```\r\n\r\n## Cost Management\r\n\r\nPerplexity models have different pricing tiers:\r\n\r\n**Approximate costs per query:**\r\n- Sonar: $0.001-0.002 (most cost-effective)\r\n- Sonar Pro: $0.002-0.005 (recommended default)\r\n- Sonar Reasoning Pro: $0.005-0.010\r\n- Sonar Pro Search: $0.020-0.050+ (most comprehensive)\r\n\r\n**Cost optimization strategies:**\r\n1. Use `sonar` for simple fact lookups\r\n2. Default to `sonar-pro` for most queries\r\n3. Reserve `sonar-pro-search` for complex analysis\r\n4. Set `--max-tokens` to limit response length\r\n5. Monitor usage at https://openrouter.ai/activity\r\n6. Set spending limits in OpenRouter dashboard\r\n\r\n## Troubleshooting\r\n\r\n### API Key Not Set\r\n\r\n**Error**: \"OpenRouter API key not configured\"\r\n\r\n**Solution**:\r\n```bash\r\nexport OPENROUTER_API_KEY='sk-or-v1-your-key-here'\r\n# Or run setup script\r\npython scripts/setup_env.py --api-key sk-or-v1-your-key-here\r\n```\r\n\r\n### LiteLLM Not Installed\r\n\r\n**Error**: \"LiteLLM not installed\"\r\n\r\n**Solution**:\r\n```bash\r\nuv pip install litellm\r\n```\r\n\r\n### Rate Limiting\r\n\r\n**Error**: \"Rate limit exceeded\"\r\n\r\n**Solutions**:\r\n- Wait a few seconds before retrying\r\n- Increase rate limit at https://openrouter.ai/keys\r\n- Add delays between requests in batch processing\r\n\r\n### Insufficient Credits\r\n\r\n**Error**: \"Insufficient credits\"\r\n\r\n**Solution**:\r\n- Add credits at https://openrouter.ai/account\r\n- Enable auto-recharge to prevent interruptions\r\n\r\nSee `references/openrouter_setup.md` for comprehensive troubleshooting guide.\r\n\r\n## Integration with Other Skills\r\n\r\nThis skill complements other scientific skills:\r\n\r\n### Literature Review\r\n\r\nUse with `literature-review` skill:\r\n1. Use Perplexity to find recent papers and preprints\r\n2. Supplement PubMed searches with real-time web results\r\n3. Verify citations and find related work\r\n4. Discover latest developments post-database indexing\r\n\r\n### Scientific Writing\r\n\r\nUse with `scientific-writing` skill:\r\n1. Find recent references for introduction/discussion\r\n2. Verify current state of the art\r\n3. Check latest terminology and conventions\r\n4. Identify recent competing approaches\r\n\r\n### Hypothesis Generation\r\n\r\nUse with `hypothesis-generation` skill:\r\n1. Search for latest research findings\r\n2. Identify current gaps in knowledge\r\n3. Find recent methodological advances\r\n4. Discover emerging research directions\r\n\r\n### Critical Thinking\r\n\r\nUse with `scientific-critical-thinking` skill:\r\n1. Find evidence for and against hypotheses\r\n2. Locate methodological critiques\r\n3. Identify controversies in the field\r\n4. Verify claims with current evidence\r\n\r\n## Best Practices\r\n\r\n### Query Design\r\n\r\n1. **Be specific**: Include domain, time frame, and constraints\r\n2. **Use terminology**: Domain-appropriate keywords and phrases\r\n3. **Specify sources**: Mention preferred publication types or journals\r\n4. **Structure questions**: Clear components with explicit context\r\n5. **Iterate**: Refine based on initial results\r\n\r\n### Model Selection\r\n\r\n1. **Start with sonar-pro**: Good default for most queries\r\n2. **Upgrade for complexity**: Use sonar-pro-search for multi-step analysis\r\n3. **Downgrade for simplicity**: Use sonar for basic facts\r\n4. **Use reasoning models**: When step-by-step analysis needed\r\n\r\n### Cost Optimization\r\n\r\n1. **Choose appropriate models**: Match model to query complexity\r\n2. **Set token limits**: Use `--max-tokens` to control costs\r\n3. **Monitor usage**: Check OpenRouter dashboard regularly\r\n4. **Batch efficiently**: Combine related simple queries when possible\r\n5. **Cache results**: Save and reuse results for repeated queries\r\n\r\n### Security\r\n\r\n1. **Protect API keys**: Never commit to version control\r\n2. **Use environment variables**: Keep keys separate from code\r\n3. **Set spending limits**: Configure in OpenRouter dashboard\r\n4. **Monitor usage**: Watch for unexpected activity\r\n5. **Rotate keys**: Change keys periodically\r\n\r\n## Resources\r\n\r\n### Bundled Resources\r\n\r\n**Scripts:**\r\n- `scripts/perplexity_search.py`: Main search script with CLI interface\r\n- `scripts/setup_env.py`: Environment setup and validation helper\r\n\r\n**References:**\r\n- `references/search_strategies.md`: Comprehensive query design guide\r\n- `references/model_comparison.md`: Detailed model comparison and selection guide\r\n- `references/openrouter_setup.md`: Complete setup, troubleshooting, and security guide\r\n\r\n**Assets:**\r\n- `assets/.env.example`: Example environment file template\r\n\r\n### External Resources\r\n\r\n**OpenRouter:**\r\n- Dashboard: https://openrouter.ai/account\r\n- API Keys: https://openrouter.ai/keys\r\n- Perplexity Models: https://openrouter.ai/perplexity\r\n- Usage Monitoring: https://openrouter.ai/activity\r\n- Documentation: https://openrouter.ai/docs\r\n\r\n**LiteLLM:**\r\n- Documentation: https://docs.litellm.ai/\r\n- OpenRouter Provider: https://docs.litellm.ai/docs/providers/openrouter\r\n- GitHub: https://github.com/BerriAI/litellm\r\n\r\n**Perplexity:**\r\n- Official Docs: https://docs.perplexity.ai/\r\n\r\n## Dependencies\r\n\r\n### Required\r\n\r\n```bash\r\n# LiteLLM for API access\r\nuv pip install litellm\r\n```\r\n\r\n### Optional\r\n\r\n```bash\r\n# For .env file support\r\nuv pip install python-dotenv\r\n\r\n# For JSON processing (usually pre-installed)\r\nuv pip install jq\r\n```\r\n\r\n### Environment Variables\r\n\r\nRequired:\r\n- `OPENROUTER_API_KEY`: Your OpenRouter API key\r\n\r\nOptional:\r\n- `DEFAULT_MODEL`: Default model to use (default: sonar-pro)\r\n- `DEFAULT_MAX_TOKENS`: Default max tokens (default: 4000)\r\n- `DEFAULT_TEMPERATURE`: Default temperature (default: 0.2)\r\n\r\n## Summary\r\n\r\nThis skill provides:\r\n\r\n1. **Real-time web search**: Access current information beyond training data cutoff\r\n2. **Multiple models**: From cost-effective Sonar to advanced Sonar Pro Search\r\n3. **Simple setup**: Single OpenRouter API key, no separate Perplexity account\r\n4. **Comprehensive guidance**: Detailed references for query design and model selection\r\n5. **Cost-effective**: Pay-as-you-go pricing with usage monitoring\r\n6. **Scientific focus**: Optimized for research, literature search, and technical queries\r\n7. **Easy integration**: Works seamlessly with other scientific skills\r\n\r\nConduct AI-powered web searches to find current information, recent research, and grounded answers with source citations."
  user_template: ""
variables: []
install:
  steps:
    - title: Download & unzip
      detail: >-
        Download the .zip package from SkillVault and unzip it. The perplexity-search/ folder
        contains SKILL.md plus any companion scripts, references and assets.
    - title: Copy into your agent skills directory
      detail: >-
        Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code),
        .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or
        reload the session.
    - title: Use it
      detail: >-
        Describe the task in natural language; the agent loads the skill automatically when the
        request matches the skill description.
usage:
  steps: []
metadata:
  author: SkillVault
  source: https://skillvault.top/skills/perplexity-search
  exported_at: "2026-11-03T07:42:09.162Z"

Installation guide

  1. 1

    Download & unzip

    Download the .zip package from SkillVault and unzip it. The perplexity-search/ folder contains SKILL.md plus any companion scripts, references and assets.

  2. 2

    Copy into your agent skills directory

    Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session.

  3. 3

    Use it

    Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description.

How to use

Platform compatibility

ChatGPT GPTs

OpenAI

Paste the system prompt into the GPT "Instructions" field and keep the user template as your starter message.

Official docs

Claude Code

Anthropic

Save the exported .aiskill JSON as a skill file in your project or paste the system prompt into CLAUDE.md / a slash-command markdown file.

Official docs

Cursor

Anysphere

Copy the system prompt into .cursor/rules/*.mdc (or Project Rules in Settings) and reference the user template in your agent prompts.

Official docs

Related skills