perplexity
Skill9 starsChanged 3 months agoMITView on GitHub
Deep web research using the Perplexity API — get cited, up-to-date answers to research questions without burning context on raw web pages. Use when you need current information, competitive analysis, library docs, CVE lookups, or any factual query that requires web sources.
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- rezkam/boring-but-goodtheir own version, first seen Aug 30, 2026
- Planxnx/skillstheir own version, first seen Jul 28, 2026
- FelipeAngeli/skillstheir own version, first seen Apr 10, 2026
- aiagenta2z/onekey-gatewaytheir own version, first seen Apr 10, 2026
- refly-ai/refly-skillstheir own version, first seen Jan 25, 2026
- softaworks/agent-toolkittheir own version, first seen Jan 20, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- softaworks/agent-toolkit★ 2.5ksame name
- refly-ai/refly-skills★ 203same name
- aiagenta2z/onekey-gateway★ 52same name
- Planxnx/skills★ 4same name
- FelipeAngeli/skills★ 2same name
- rezkam/boring-but-good★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Use this skill when you need current, cited web information:
- Very specific: line 106
Always include the citation URLs from result["citations"] in any doc or PR that incorporates Perplexity research findings.
- Very specific: line 128
If PERPLEXITY_API_KEY is not set, fall back to the WebSearch tool or WebFetch for direct URL fetches.
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
Skill: perplexity — Web Research via Perplexity API
When to Use
Use this skill when you need current, cited web information:
- Library version history and changelogs
- CVE / security vulnerability lookups
- API documentation for external services
- Current best practices for a technology
- Competitive or market research
- Anything that requires an up-to-date source
Prerequisites
Set your Perplexity API key (get one at https://www.perplexity.ai/settings/api):
export PERPLEXITY_API_KEY="pplx-..." # add to .env or shell profileHow to Query
Quick query (one-shot Python call)
import os, json, urllib.request
def perplexity_search(query: str, model: str = "sonar") -> dict:
key = os.environ["PERPLEXITY_API_KEY"]
payload = {
"model": model, # sonar (fast) | sonar-pro (deep, cited)
"messages": [
{"role": "system", "content": "Be precise and cite your sources."},
{"role": "user", "content": query},
],
"max_tokens": 1024,
"return_citations": True,
}
req = urllib.request.Request(
"https://api.perplexity.ai/chat/completions",
data=json.dumps(payload).encode(),
headers={
"Authorization": f"Bearer {key}",
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req, timeout=30) as resp:
return json.loads(resp.read())
result = perplexity_search("latest FastAPI security best practices 2025")
print(result["choices"][0]["message"]["content"])
# Citations are in result["citations"]Run inline
python3 -c "
import os, json, urllib.request
key = os.environ.get('PERPLEXITY_API_KEY', '')
if not key: print('Set PERPLEXITY_API_KEY'); exit(1)
q = 'YOUR QUERY HERE'
payload = json.dumps({'model':'sonar','messages':[{'role':'user','content':q}],'max_tokens':512}).encode()
req = urllib.request.Request('https://api.perplexity.ai/chat/completions', data=payload,
headers={'Authorization':f'Bearer {key}','Content-Type':'application/json'})
with urllib.request.urlopen(req, timeout=30) as r: d = json.loads(r.read())
print(d['choices'][0]['message']['content'])
"Skill Steps
Step 1 — Formulate the query
Be specific. Include version numbers, programming language, and context. Bad: "how do I do auth" Good: "FastAPI Bearer token authentication with Python 3.13, JWT RS256, best practices 2025"
Step 2 — Choose the model
sonar— fast, free-tier friendly, good for factual lookupssonar-pro— deeper research, more citations, better for complex questionssonar-reasoning— chain-of-thought, best for technical analysis
Step 3 — Run the query
python3 -c "... (inline query above with your question) ..."Step 4 — Cite sources in your answer
Always include the citation URLs from result["citations"] in any doc or PR
that incorporates Perplexity research findings.
Applying to this Repo
Useful queries for local-llm-server maintenance:
# Check for CVEs in dependencies
perplexity_search("CVE vulnerabilities fastapi pydantic 2025")
# Research a feature
perplexity_search("Ollama streaming API response format latest docs")
# Check best practices
perplexity_search("OpenAI-compatible proxy auth security best practices")
# Competitive research
perplexity_search("LiteLLM vs local-llm-server comparison 2025")No API Key? Use WebSearch
If PERPLEXITY_API_KEY is not set, fall back to the WebSearch tool or
WebFetch for direct URL fetches. Perplexity is preferred because it:
- Returns pre-summarised, cited results (no page parsing needed)
- Has real-time web access beyond training cutoff
- Uses ~10× fewer tokens than fetching and summarising raw pages
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
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.

