agentleFS
DjarvurDjarvur/ddg-search/skills/perplexity-search/SKILL.md

perplexity-search

Skill12 starsChanged 3 months agoMITView on GitHub

Web search using Perplexity API with AI-powered results and citations. This skill requires the perplexity-search binary and a Perplexity API key. Export the API key in your shell environment: The binary reads the key from the environment only; it does not load .env files itself. To keep the key in a .env file, source it first (set -a; . ./.env; set +a) or use a runner such as direnv or dotenv. Search the web using Perplexity API for high-quality, AI-powered…

  • Reads credentials
  • Installs packages

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deeptools, dnanexus-integration and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • yf8578Skill

    deeptools

    NGS analysis toolkit. BAM to bigWig conversion, QC (correlation, PCA, fingerprints), heatmaps/profiles (TSS, peaks), for ChIP-seq, RNA-seq, ATAC-seq visualization.

    Also in 4 projects that use this

  • yf8578Skill

    dnanexus-integration

    DNAnexus cloud genomics platform. Build apps/applets, manage data (upload/download), dxpy Python SDK, run workflows, FASTQ/BAM/VCF, for genomics pipeline development and execution.

    Also in 4 projects that use this

  • ZanderRussSkill

    scientific-brainstorming

    Research ideation partner. Generate hypotheses, explore interdisciplinary connections, challenge assumptions, develop methodologies, identify research gaps, for creative scientific problem-solving.

    Also in 5 projects that use this

  • +9 more from yf8578

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search the web using Perplexity API for high-quality, AI-powered search results with citations.

    line 50
  2. Distinctive:

    If you encounter network errors:

    line 131
  3. Distinctive:

    Check your internet connection

    line 132
  4. Distinctive:

    Verify the Perplexity API is accessible (https://api.perplexity.ai)

    line 133

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Perplexity Search Skill

Web search using Perplexity API with AI-powered results and citations.

Installation

This skill requires the perplexity-search binary and a Perplexity API key.

Install the binary

go install github.com/Djarvur/ddg-search/cmd/perplexity-search@latest

Configure API Key

Export the API key in your shell environment:

export PERPLEXITY_API_KEY="your-api-key-here"

The binary reads the key from the environment only; it does not load .env files itself. To keep the key in a .env file, source it first (set -a; . ./.env; set +a) or use a runner such as direnv or dotenv.

Get a Perplexity API Key

  1. Visit https://www.perplexity.ai/settings/api
  2. Sign up or log in to your Perplexity account
  3. Generate a new API key
  4. Copy the key and export it as PERPLEXITY_API_KEY

Verify installation

which perplexity-search

# Test the binary
perplexity-search --help

# Test with a simple query (requires API key)
perplexity-search "What is Go programming language?"

Tools

perplexity-search

Search the web using Perplexity API for high-quality, AI-powered search results with citations.

Parameters:

  • query (required): The search query string
  • max-results (optional): Maximum number of sources listed with the answer (default: 5)
  • model (optional): Perplexity model to use (default: sonar)

Usage:

perplexity-search "golang http client best practices"

Output: AI-generated answer, followed by a ## Sources list of the sources it was grounded in.

Options:

  • --max-results int: Maximum number of sources listed with the answer (default: 5)
  • --model string: Perplexity model to use (default: sonar)
  • --debug: Enable debug logging to stderr

Available Models:

  • sonar: Fast and low cost (default)
  • sonar-pro: Higher quality, more expensive
  • sonar-reasoning: Adds a reasoning pass
  • sonar-reasoning-pro: Higher-quality reasoning
  • sonar-deep-research: Long-running, exhaustive research

Usage Examples

Basic search

perplexity-search "rust async programming guide"

Limit the number of sources listed

perplexity-search --max-results 10 "docker compose best practices"

Search with specific model

perplexity-search --model sonar-pro "machine learning fundamentals"

Search with debug mode

perplexity-search --debug "kubernetes deployment strategies"

Troubleshooting

"command not found: perplexity-search"

The binary is not in your PATH. Ensure $(go env GOPATH)/bin is in your PATH:

export PATH="$PATH:$(go env GOPATH)/bin"

"PERPLEXITY_API_KEY is not set"

Export the key in the shell that runs the binary: export PERPLEXITY_API_KEY="your-key". A .env file is not read automatically -- source it first if that is where you keep the key.

"invalid API key"

Your API key is incorrect or expired. Verify:

  1. The key is correctly copied from https://www.perplexity.ai/settings/api
  2. The key hasn't been revoked
  3. The key has valid credits remaining

"rate limited by Perplexity API"

You've exceeded the API rate limit. Wait a few minutes before retrying, or upgrade your Perplexity plan for higher limits.

"payment required - API quota exceeded"

Your API quota has been exhausted. Check your usage at https://www.perplexity.ai/settings/api and consider upgrading your plan.

Network errors

If you encounter network errors:

  1. Check your internet connection
  2. Verify the Perplexity API is accessible (https://api.perplexity.ai)
  3. Try again with --debug flag for more information

Comparison with ddg-search

Featureperplexity-searchddg-search
API Key RequiredYesNo
Result QualityAI-powered, higher qualityStandard search results
CitationsYes, with sourcesNo
Rate LimitsBased on API tierDuckDuckGo rate limits
CostFree tier available, paid for higher limitsFree
SpeedSlightly slower (API call)Faster (HTML scraping)

Choose perplexity-search for higher-quality, AI-summarized results with citations. Choose ddg-search for free, fast searches without API key requirements.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.