Back to list
grahama1970

perplexity

by grahama1970

1🍴 0📅 Jan 20, 2026

SKILL.md


name: perplexity description: > Paid research assistant with real-time web search. Use when user asks "what's the latest", "current pricing for", "recent news about", "search the web for", "fact check this", "what's new in", or needs up-to-date information beyond training data. allowed-tools: Bash, Read triggers:

  • what's the latest
  • current pricing
  • recent news
  • search the web
  • fact check
  • what's new in
  • look up online
  • research this topic
  • paid search metadata: short-description: AI research with web search

Perplexity Skill

AI-powered research assistant with real-time web search capabilities.

Prerequisites

When to Use

  • Current information (news, recent releases, pricing)
  • Technical questions requiring up-to-date docs
  • Fact-checking and verification
  • Research questions needing multiple sources
  • Comparisons (libraries, tools, approaches)

Quick Start

# Simple query (quick answer)
python .agents/skills/perplexity/perplexity.py ask "What's new in Python 3.12?"

# With citations (JSON output)
python .agents/skills/perplexity/perplexity.py research "ArangoDB vs Neo4j for knowledge graphs"

# With specific model
python .agents/skills/perplexity/perplexity.py ask --model large "Best practices for Lean4 proofs"

Commands at a Glance

CommandWhat it doesNotes
askFast answer with short citations previewMatches the Typer command implemented in perplexity.py ask
researchFull answer + citations JSONEquivalent to calling _research() and prints JSON unless --no-json
modelsLists available model aliases → API IDsUseful when wiring the skill into other agents

Every CLI example must include the subcommand (ask, research, or models) because the Typer app requires it; omitting the subcommand will raise a usage error. The shipped SKILL docs now mirror the exact runner arguments, so you can copy/paste them without edits.

CLI Usage

Two commands: ask (quick answer) and research (with citations):

# Quick answer
python .agents/skills/perplexity/perplexity.py ask [OPTIONS] "your question"

# Research with citations (JSON output)
python .agents/skills/perplexity/perplexity.py research [OPTIONS] "your question"

Options:
  --model, -m     small|large|huge  (default: small, fast)
  --system, -s    Custom system prompt
  --json/--no-json  JSON output (research default: --json)

Python API

# Import the internal function
from perplexity import _research

# Research with citations
result = _research("What is BM25 scoring?", model="small")
print(result["answer"])
print(result["citations"])

Note: The CLI commands ask and research are the primary interface. For Python usage, use _research() directly.

Shared Helpers

  • .agents/skills/dotenv_helper.py is auto-imported so .env keys (e.g., PERPLEXITY_API_KEY) load without manual sourcing.
  • .agents/skills/json_utils.py is available if you need to repair downstream JSON before writing it to files; the research command already emits valid JSON, so most callers can stream it directly.

Models

ModelAPI NameSpeedUse Case
smallsonarFastQuick lookups, simple questions
largesonar-proMediumTechnical research, comparisons
hugesonar-reasoningSlowComplex analysis, reasoning

Examples

Technical Research

python .agents/skills/perplexity/perplexity.py ask "How to implement hybrid search with BM25 and vector similarity?"

Current Information

python .agents/skills/perplexity/perplexity.py ask "Latest Anthropic Claude API changes 2024"

Comparison

python .agents/skills/perplexity/perplexity.py ask --model large "sentence-transformers vs OpenAI embeddings for code search"

vs Context7

PerplexityContext7
General researchLibrary-specific docs
Real-time web searchCurated documentation
Any topicCode libraries only
Synthesized answersRaw doc snippets

Use Context7 for: specific library API syntax, exact function signatures Use Perplexity for: research, comparisons, current information, general questions

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon