perplexity-search
Skill168 starsChanged 2 months agoMITView on GitHub
Search the current public web with citations through either the perplexity-mcp v2 tools or the bundled Python REST client. Use for recent information, news, fact checks, source-backed comparisons, research, file-assisted questions, native follow-ups, and detached tasks. Both transports expose the same perplexity_ask_v2, perplexity_research_v2, and task method names and response shapes.
- Reads credentials
11 other projects use a version of this.
Adopted by
Most recently taken up by
- SELAT-AI/selat-skillstheir own version, first seen Oct 4, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- mfang0126/perplexity-toolkittheir own version, first seen Sep 21, 2026
- Djarvur/ddg-searchtheir own version, first seen Sep 4, 2026
- SELAT-AI/selat-openclaw-skillstheir own version, first seen Jul 26, 2026
- baofeng-tech/agent-skills-sotheir own version, first seen Apr 28, 2026
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.
yf8578Skilldeeptools
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
yf8578Skilldnanexus-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
ZanderRussSkillscientific-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
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- LeonChaoX/qinyan-academic-skills★ 932same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- ZanderRuss/obsidian-claude★ 19same name
- Djarvur/ddg-search★ 12same name
- SELAT-AI/selat-openclaw-skills★ 2same name
- SELAT-AI/selat-skills★ 2same name
- BrightGold70/skills★ 1same name
- mfang0126/perplexity-toolkit★ 1same name
- yf8578/claude-skills-collection★ 1same name
1 more not listed
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 repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- server-deploySkill
- bump-versionSkill
- perplexity-searchSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 10
Use one workflow regardless of transport.
- Distinctive: line 47
Never print, quote, log, or commit real credentials.
- Very specific: line 51
Use perplexity_ask_v2 for current facts, news, comparisons, source-backed analysis, and ordinary searches.
- Very specific: line 77
Use perplexity_research_v2 for broad investigations with several subtopics, many sources, or report-like synthesis.
- Very specific: line 107
Check status before using a result.
- Distinctive: line 132
Keep the session ID with its operation family.
- Distinctive: line 156
Use detached tasks only when work must survive caller disconnects, is expected to run for a long time, or consists of independent …
“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.
Files
Perplexity Search
Use one workflow regardless of transport. A connected perplexity-mcp server exposes tools directly; the bundled scripts/client.py exposes matching Python methods over REST.
| Operation | MCP tool | Python REST method |
| Focused search or cited answer | perplexity_ask_v2 | client.perplexity_ask_v2(...) |
| Broad Deep Research | perplexity_research_v2 | client.perplexity_research_v2(...) |
| Submit detached work | perplexity_task_submit | client.perplexity_task_submit(...) |
| Observe detached work | perplexity_task_status | client.perplexity_task_status(...) |
| Cancel detached work | perplexity_task_cancel | client.perplexity_task_cancel(...) |
Choose the available transport, then keep the same operation names, arguments, session rules, and output handling. Do not switch to legacy MCP tools such as search, research, or perplexity_search; they are deprecated.
Python REST client
The client uses only the Python standard library. Load it from this skill's scripts directory:
import sys
from pathlib import Path
skill_dir = Path(".agents/skills/perplexity-search").resolve()
sys.path.insert(0, str(skill_dir / "scripts"))
from client import PerplexityRestClient
client = PerplexityRestClient.from_config(skill_dir / "config.json")
result = client.perplexity_ask_v2(
"What changed in Python packaging this month? Cite primary sources."
)Configuration is shared by every REST method:
PPLX_BASE_URL: service root, with or without/v1; defaults tohttp://127.0.0.1:8000.MCP_TOKENorPPLX_API_KEY: bearer token;MCP_TOKENtakes precedence.config.json: fallback configuration when environment variables are absent.
Never print, quote, log, or commit real credentials.
Focused Ask
Use perplexity_ask_v2 for current facts, news, comparisons, source-backed analysis, and ordinary searches.
MCP arguments and Python arguments are identical:
{
"query": "Compare the latest Python packaging changes and cite primary sources.",
"model": "gpt-5-6-terra",
"thinking": true,
"session_id": null,
"files": null
}result = client.perplexity_ask_v2(
query="Compare the latest Python packaging changes and cite primary sources.",
model="gpt-5-6-terra",
thinking=True,
)Omit model to use perplexity-search. When selecting a model, pass the exact OAI model ID exposed by the server. Set thinking=True to select its paired thinking variant. Do not pass perplexity-deepsearch to Ask.
Deep Research
Use perplexity_research_v2 for broad investigations with several subtopics, many sources, or report-like synthesis.
result = client.perplexity_research_v2(
query=(
"Research the 2026 enterprise AI agent market. Compare adoption, pricing, "
"security constraints, and primary-source evidence."
)
)This operation always selects perplexity-deepsearch; it does not accept model or thinking.
Response contract
Both transports return the same success shape for Ask and Research:
{
"status": "ok",
"session_id": "sess_...",
"job_id": "job_...",
"model": "perplexity-search",
"data": {
"answer": "...",
"sources": []
}
}Check status before using a result. Read the answer from data.answer, preserve direct URLs from data.sources, and distinguish sourced facts from your synthesis.
Failures use the same top-level convention:
{
"status": "error",
"error_type": "...",
"message": "..."
}Report the non-secret error type and message. Do not silently change models, replace sessions, or treat incomplete task output as success.
Sessions
Omit session_id to create a native session. For a same-topic follow-up, call the same operation with the returned ID and only the latest instruction:
follow_up = client.perplexity_ask_v2(
query="Add exact release dates and one primary source per claim.",
session_id=result["session_id"],
)Keep the session ID with its operation family. Start a new session when the topic changes. A session is permanently bound to its first account and supports at most one unfinished task; it does not fail over or accept concurrent turns.
Files
Pass attachments through files on either Ask, Research, or task submission.
For MCP, files follows the server tool schema. For Python REST, use either a filename-to-content mapping or an iterable of local paths:
client.perplexity_ask_v2(
"Summarize the attached evidence and verify current claims on the web.",
files=["reports/evidence.pdf"],
)
client.perplexity_ask_v2(
"Review this note.",
files={"note.txt": "local text content"},
)The REST client reads local paths and sends base64 input_file content, so the remote server does not need access to the client's filesystem. Respect server limits: at most 10 files, 20 MiB per file, 100 MiB per request, and allowed extensions.
Detached tasks
Use detached tasks only when work must survive caller disconnects, is expected to run for a long time, or consists of independent concurrent conversations.
MCP users should call get_skill_index and read get_tasks_use before the task tools. Python users call the same task operations through REST:
accepted = client.perplexity_task_submit(
query="Research WebAssembly component model adoption with primary sources.",
model="perplexity-deepsearch",
idempotency_key="wasm-adoption-1",
)
status = client.perplexity_task_status(
accepted["job_id"],
wait_seconds=20,
include_output=False,
)A successful submission means admission, not completion. Retain both job_id and session_id. Only state == "completed" is complete. Fetch output with include_output=True; the answer is in snapshot.answer. Treat failed, timed_out, cancelled, and interrupted as non-success even when a draft exists.
Reuse an idempotency_key only to recover the same submission after a lost receipt. Use a different session for each concurrent task. Cancel explicitly when the task is no longer needed:
client.perplexity_task_cancel(accepted["job_id"])Cancellation cannot undo upstream work already accepted.
Command line
The CLI uses the exact MCP tool names:
python3 "$SKILL_DIR/scripts/client.py" perplexity_ask_v2 \
"What changed this week? Cite primary sources."
python3 "$SKILL_DIR/scripts/client.py" perplexity_research_v2 \
"Research current enterprise AI agent adoption."
python3 "$SKILL_DIR/scripts/client.py" perplexity_task_status job_... \
--wait-seconds 20cli.py remains a compatibility entry point and dispatches to the same client. Use client.py for new integrations.
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.

