The problem. Claude is great at reasoning, but for anything current or contested, you want sources you can check. These two skills give you that.
Two tools, two jobs. perplexity-research gets you one fast, cited answer from live search. compare-research runs the same question through several sources and tells you where they agree and where they disagree. Use the first for a quick sourced answer, the second when the stakes are high enough that you want it triangulated.
Both install in one paste. Each skill is a single copy-paste prompt you drop into Claude Code; it writes the files, wires up the key, and verifies the install. The prompts are below.
This skill sends your question to the Perplexity API, which searches the live web and returns an answer with a numbered list of sources. Claude then summarizes it for you and passes the source links through so you can verify.
You want a current, sourced answer to a specific question, and one good source pass is enough. Benchmarks, recent changes, "what is the state of X in 2026," a quick sanity check on a claim.
Trigger it by naming Perplexity in your request:
Perplexity has several models, from a fast general one up to a slower deep-research one. The skill chooses a sensible default and can go heavier for strategic, multi-angle questions. You do not have to specify.
This skill calls the Perplexity API, so it needs a Perplexity API key. Install the skill below, then the Create a Perplexity API key step shows exactly how to get one and where to put it. A typical query costs a few cents, with deep research running higher, so use the heavy mode only when it earns it.
Open Claude Code in any folder, paste the prompt below, hit enter. Claude creates the skill in your global skills folder (~/.claude/skills/perplexity-research/), writes both files, sets up the (empty) key file, and verifies the install.
One-paste install prompt — self-contained: SKILL.md + the query script inline.
Paste this single message into Claude Code. After it finishes, add your API key (next step), then restart Claude Code so the skill loads.
perplexity-research authenticates to Perplexity with an API key. Here is how to get one.
Open the Perplexity API console →
~/.claude/skills/perplexity-research/.env. Open it and paste your key between the quotes, or set it in one command:That file is gitignored, so your key never gets committed. The skill reads it automatically on every run, so there is nothing to export and no terminal restart needed.
Pro subscribers get $5 in API credits each month, so you may already have a balance to spend. You still create the key the same way, in the API Keys tab.
This skill takes one research question and runs it through several independent sources, then synthesizes the results. Instead of trusting a single answer, you see where the sources line up and where they split.
The decision matters and you do not want to bet it on one source. Contested topics, strategic calls, anything where being wrong is expensive. This is the "get a second and third opinion" tool.
Trigger it with phrases like compare research, triangulate, cross-check, or get multiple AI opinions:
What you get back is structured: a synthesized answer up top, the points all sources agree on (treat those as high-confidence), the contradictions spelled out source by source, anything unique that only one source raised, and the list of sources.
By default compare-research does a single triangulation pass. If you ask it to "go deeper" or "drill into" something, it recursively investigates the contested or thinly-supported claims instead of leaving them hanging. That deep mode costs more and takes longer, so reach for it only on the calls that justify it.
This skill is pure orchestration — no script of its own. It calls perplexity-research for its first source, so install that one first. Paste the prompt below into Claude Code.
One-paste install prompt — writes the skill's SKILL.md and an (optional) Gemini key file.
compare-research triangulates Perplexity + Gemini + web search. Perplexity and web search work out of the box. The Gemini leg needs a free Google AI Studio key — create one here and paste it into ~/.claude/skills/compare-research/.env as GEMINI_API_KEY="...". No key? The skill quietly drops to a Perplexity + web two-source compare.
A simple rule:
You want one good cited answer, fast. The question is fairly settled, you just need current numbers and sources. Lower cost, quicker.
The answer matters enough to verify across sources, or you suspect sources might disagree. You want agreement, contradictions, and confidence levels laid out. Higher cost, more thorough.
In practice: start with perplexity-research for most questions. Escalate to compare-research when a single source is not enough to make the call.
"Invalid API key" from Perplexity
Your key is missing or wrong. Open ~/.claude/skills/perplexity-research/.env and confirm your real key is between the quotes (PERPLEXITY_API_KEY="pplx-..."). A placeholder or empty value is the usual cause.
".env file not found" or "PERPLEXITY_API_KEY not set"
The skill never got its key. Re-run the Create a Perplexity API key step to write ~/.claude/skills/perplexity-research/.env.
Empty or thin result
Your question may be too vague. Reframe it as a specific, self-contained question with concrete terms and the year, then retry. Specific questions get specific answers.
compare-research did not trigger
Use one of its trigger phrases directly: "compare research on...", "triangulate...", "cross-check...", or "get multiple AI opinions on..." Those route the request through the skill.
compare-research skipped Gemini
Expected if you never set a GEMINI_API_KEY — it triangulates with Perplexity + web search instead. To add the third source, drop a Google AI Studio key into ~/.claude/skills/compare-research/.env.
A skill is not found
Run ls ~/.claude/skills/ — you should see perplexity-research and compare-research. If one is missing, its install didn't complete. Restart Claude Code after installing so it picks up new skills.
Made by AI Service Engine · what is a skill? · build your own skill