AI RAG Pipeline
NeverSight/learn-skills.dev
Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs.
Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davila7/claude-code-templates perplexity-search --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .claude/skills/perplexity-search && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .claude/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-searchType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davila7/claude-code-templates perplexity-search --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .agents/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .agents/skills/perplexity-search && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .agents/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davila7/claude-code-templates perplexity-search --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .cursor/skills/perplexity-search && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .cursor/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davila7/claude-code-templates.git --path cli-tool/components/skills/scientific/perplexity-search--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davila7/claude-code-templates perplexity-search --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .gemini/skills/perplexity-search && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .gemini/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davila7/claude-code-templates perplexity-searchInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .github/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .github/skills/perplexity-search && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .github/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davila7/claude-code-templates --skill perplexity-search -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davila7/claude-code-templates perplexity-search --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/cli-tool/components/skills/scientific/perplexity-search .opencode/skills/perplexity-search && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "perplexity-search" agent skill from https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/scientific/perplexity-search into .opencode/skills/perplexity-search/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perplexity-search", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
perplexity-searchRuns web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.
A single OpenRouter API key gives access to several Perplexity models, including Sonar Pro for general search, Sonar Pro Search for advanced agentic search, and Sonar Reasoning Pro, so no separate Perplexity account is needed. The skill is meant for current information, recent scientific publications, source-cited fact verification and domain-specific research such as biomedical or clinical topics, and explicitly not for simple calculations, tasks needing code execution, or questions already well within the model's training data.
Setup involves creating an OpenRouter API key with at least a small amount of credit, exporting it as an environment variable, installing litellm, and running the bundled script with a --check-setup flag to confirm everything works. Searches are then run from the command line with a query string, optional output file and model selection, with reference files covering model comparison, OpenRouter setup and search strategy in more depth.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 46b4d8b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonuvjqFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
openrouter.aidocs.litellm.aigithub.comdocs.perplexity.aiFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENROUTER_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Perplexity Web Search loads about 3.5k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 1,158 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
# For .env file supportAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from davila7/claude-code-templates at commit 46b4d8b, republished under its MIT licence (© davila7). 1,158 words, ~3,485 tokens.
.claude/skills/perplexity-search/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.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).
Use this skill when:
Do not use for:
Get OpenRouter API key:
Configure environment:
# 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-hereInstall dependencies:
uv pip install litellmVerify setup:
python scripts/perplexity_search.py --check-setupSee references/openrouter_setup.md for detailed setup instructions, troubleshooting, and security best practices.
Simple search:
python scripts/perplexity_search.py "What are the latest developments in CRISPR gene editing?"Save results:
python scripts/perplexity_search.py "Recent CAR-T therapy clinical trials" --output results.jsonUse specific model:
python scripts/perplexity_search.py "Compare mRNA and viral vector vaccines" --model sonar-pro-searchVerbose output:
python scripts/perplexity_search.py "Quantum computing for drug discovery" --verboseAccess models via --model parameter:
Model selection guide:
sonar-prosonar-pro-searchsonar-reasoning-prosonarsonarSee references/model_comparison.md for detailed comparison, use cases, pricing, and performance characteristics.
Good examples:
Bad examples:
Perplexity searches real-time web data:
For high-quality results, mention source preferences:
Break complex questions into clear components:
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.
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-propython 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-propython 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-searchpython 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-propython 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-proUse perplexity_search.py as a module:
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 to JSON
python scripts/perplexity_search.py "query" --output results.json
# Process with jq
cat results.json | jq '.answer'
cat results.json | jq '.usage'Create a script for multiple queries:
#!/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
donePerplexity models have different pricing tiers:
Approximate costs per query:
Cost optimization strategies:
sonar for simple fact lookupssonar-pro for most queriessonar-pro-search for complex analysis--max-tokens to limit response lengthError: "OpenRouter API key not configured"
Solution:
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-hereError: "LiteLLM not installed"
Solution:
uv pip install litellmError: "Rate limit exceeded"
Solutions:
Error: "Insufficient credits"
Solution:
See references/openrouter_setup.md for comprehensive troubleshooting guide.
This skill complements other scientific skills:
Use with literature-review skill:
Use with scientific-writing skill:
Use with hypothesis-generation skill:
Use with scientific-critical-thinking skill:
--max-tokens to control costsScripts:
scripts/perplexity_search.py: Main search script with CLI interfacescripts/setup_env.py: Environment setup and validation helperReferences:
references/search_strategies.md: Comprehensive query design guidereferences/model_comparison.md: Detailed model comparison and selection guidereferences/openrouter_setup.md: Complete setup, troubleshooting, and security guideAssets:
assets/.env.example: Example environment file templateOpenRouter:
LiteLLM:
Perplexity:
# LiteLLM for API access
uv pip install litellm# For .env file support
uv pip install python-dotenv
# For JSON processing (usually pre-installed)
uv pip install jqRequired:
OPENROUTER_API_KEY: Your OpenRouter API keyOptional:
DEFAULT_MODEL: Default model to use (default: sonar-pro)DEFAULT_MAX_TOKENS: Default max tokens (default: 4000)DEFAULT_TEMPERATURE: Default temperature (default: 0.2)This skill provides:
Conduct AI-powered web searches to find current information, recent research, and grounded answers with source citations.
© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references, assets) in cli-tool/components/skills/scientific/perplexity-search of davila7/claude-code-templates.
Open the folder on GitHubat commit 46b4d8b
We found 15 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 11 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.
Perplexity Web Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Perplexity Web Search this skilldavila7/claude-code-templates | 32k | 11 repos | ~3.5k | Automated safety check: Notes | MIT | |
| AI RAG PipelineNeverSight/learn-skills.dev | 216 | 1 repos | ~2k | Automated safety check: Pass | None | |
| Research LookupK-Dense-AI/claude-scientific-writer | 2.4k | 2 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Argo Search and Verificationtaxueseek/argo | 186 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Research Lookupneflibata-feng/MyArxiv-Agent | 126 | 2 repos | ~4.1k | Automated safety check: Notes | MIT | |
| Weekly Signal DiffNateBJones-Projects/OB1 | 4.7k | — | ~1.7k | Automated safety check: Pass | Custom licence |
NeverSight/learn-skills.dev
Build RAG (Retrieval Augmented Generation) pipelines with web search and LLMs.
K-Dense-AI/claude-scientific-writer
Compile current scholarly evidence for a scientific manuscript or research brief.
taxueseek/argo
Unified web search, page fetching and evidence checking across hundreds of sources, with result verification, a research-dossier mode and vertical search engines.
neflibata-feng/MyArxiv-Agent
Look up current research information using the Parallel Chat API (primary) or Perplexity sonar-pro-search (academic paper searches).
NateBJones-Projects/OB1
Turns a noisy week of AI or software market news into a short list of structural changes, weighted by what the user already tracks in Open Brain memory.
gaasher/Agent-Loop-Skills
A skill your agent uses when a loop needs scholarly literature — paper discovery, novelty checks, full-text snippet search, citation-graph traversal, single-paper reads, or experimental-result…
davila7/claude-code-templates
Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.
davila7/claude-code-templates
Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.
davila7/claude-code-templates
Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.
davila7/claude-code-templates
Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.
davila7/claude-code-templates
Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.
davila7/claude-code-templates
Queries the UniProt REST API directly to search proteins, fetch FASTA sequences, map IDs between databases and read Swiss-Prot and TrEMBL entries.
Works with
Categories
Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff. A single OpenRouter API key gives access to several Perplexity models, including Sonar Pro for general search, Sonar Pro Search for advanced agentic search, and Sonar Reasoning Pro, so no separate Perplexity account is needed. The skill is meant for current information, recent scientific publications, source-cited fact verification and domain-specific research such as biomedical or clinical topics, and explicitly not for simple calculations, tasks needing code execution, or questions already well within the model's training data.
Perplexity Web Search fits situations like: searching for current information past the model's knowledge cutoff; finding recent scientific literature with source citations; verifying a fact against live web sources.
Run `npx skills add davila7/claude-code-templates --skill perplexity-search -a claude-code`. Or copy the skill folder (cli-tool/components/skills/scientific/perplexity-search in davila7/claude-code-templates) into .claude/skills/perplexity-search in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davila7/claude-code-templates --skill perplexity-search -a codex`. Or copy the skill folder (cli-tool/components/skills/scientific/perplexity-search in davila7/claude-code-templates) into .agents/skills/perplexity-search in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill perplexity-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/perplexity-search, .gemini/skills/perplexity-search, .github/skills/perplexity-search and .opencode/skills/perplexity-search in your project.
Going by SKILL.md and its folder, Perplexity Web Search needs Python for the scripts in its folder, the command-line tools its instructions call (python, uv and jq) and credentials named OPENROUTER_API_KEY. Our summary lists: An OpenRouter API key with credit; Python with litellm installed.
SKILL.md names 4 domains. As links in the text: openrouter.ai, docs.litellm.ai, github.com and docs.perplexity.ai. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Perplexity Web Search is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Perplexity Web Search: AI RAG Pipeline (NeverSight/learn-skills.dev, 216 stars), Research Lookup (K-Dense-AI/claude-scientific-writer, 2.4k stars), Argo Search and Verification (taxueseek/argo, 186 stars) and Research Lookup (neflibata-feng/MyArxiv-Agent, 126 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,483 GitHub stars. The repository holds 478 skills in this directory. The repository was last updated on October 9, 2026.
Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.