Librarium Research
Run research queries across multiple search APIs and deduplicate results.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/skill-jkudish/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Run multi-provider deep research queries using the librarium CLI
What this skill does
Librarium -- Multi-Provider Deep Research
Run research queries across 10 search and deep-research APIs in parallel, collect results, deduplicate sources, and produce structured output.
Prerequisites
librariumCLI installed (npm install -g librarium)- API keys configured (
librarium init --auto) - Binary at:
librarium(ornpx librarium)
7-Phase Research Workflow
Phase 1: Query Analysis
Analyze the user's research question. Determine:
- Is this a technical, business, or general knowledge query?
- Which provider group is best suited? (
quickfor fast answers,deepfor thorough research,comprehensivefor important decisions,allfor maximum grounded coverage,llmfor an ungrounded baseline/contrast with no citations) - What execution mode? (
syncfor quick queries,mixedfor deep research)
Phase 2: Provider Selection
Select providers based on query type:
- Technical queries: Use
comprehensivegroup (deep research + AI-grounded) - Quick facts: Use
quickgroup (AI-grounded only, fast) - Competitive research: Use
allgroup (maximum coverage) - Specific provider: Use
--providersflag (accepts canonical IDs or display names, e.g.-p "Exa Search,brave-search") - Competitive research: Use
allgroup (maximum grounded coverage) - Ungrounded baseline / contrast: Use
llmgroup (Claude, OpenAI, Gemini, OpenRouter -- direct model answers, no citations) - Specific provider: Use
--providersflag
Phase 3: Dispatch
Run the query:
librarium run "your query here" --group <group> [--mode mixed]
Phase 4: Monitor Async Tasks
If deep-research providers were used in async mode:
librarium status --wait
Phase 5: Retrieve Results
Once complete, async results can be retrieved:
librarium status --retrieve
Phase 6: Analyze Output
Read the output files:
summary.md-- Overall research summary with statisticssources.json-- Deduplicated citations ranked by frequency- Individual
{provider}.mdfiles for detailed per-provider results run.json-- Machine-readable manifest
Phase 7: Synthesize
Combine findings from multiple providers into a coherent answer. Cross-reference sources that appear across multiple providers (higher citation count = higher confidence).
Key Commands
| Command | Purpose |
|---|---|
librarium run <query> | Run research query |
librarium run <query> --group quick | Fast AI-grounded search |
librarium run <query> --group deep | Deep research (async) |
librarium run <query> --group all | All providers |
librarium answer <query> | Fan out (default quick) and synthesize one grounded, cited answer to answer.md |
librarium run <query> --max-cost 0.50 | Stop launching providers once API-reported cost crosses the budget |
librarium run <query> --yes | Skip the deep-research pre-flight confirm (3+ deep providers) |
librarium status | Check async tasks |
librarium status --wait --retrieve | Wait and fetch async results |
librarium usage [--days N] [--json] | Aggregate API-reported cost and tokens across past runs |
librarium run <query> --html --open | Run, then open an HTML report |
librarium run <query> --jsonl | Run, then write machine-readable results.jsonl |
librarium browse | Browse past runs interactively |
librarium html [run-dir] | Generate report.html for a run |
librarium jsonl [run-dir] | Generate results.jsonl for a run |
librarium refine <goal> | Tier-tuned query variants, no dispatch |
librarium ls | List providers and status |
librarium doctor | Health check providers |
librarium config | Show resolved config |
librarium cleanup [--days N] [--dry-run] | Delete run dirs older than N days (default 30) |
librarium clear [--dry-run] [-i] [--yes] | Delete all run dirs (alias for cleanup --all); -i to pick interactively |
MCP Server
Instead of shelling out to the CLI, agents can drive librarium over the Model Context Protocol with librarium mcp (stdio transport). Register it once with claude mcp add librarium -- librarium mcp, then call the tools: research, get_results, check_async, list_providers, list_groups. The research tool runs the same silent file-writing pipeline as librarium run and returns a compact structured result; fetch full provider markdown with get_results.
Provider Tiers
| Tier | Providers | Speed | Depth |
|---|---|---|---|
| deep-research | perplexity-sonar-deep, perplexity-deep-research, perplexity-advanced-deep, openai-deep, openai-deep-o3, gemini-deep | Minutes | Comprehensive |
| ai-grounded | perplexity-sonar-pro, brave-answers, exa, you-research, kagi-fastgpt | Seconds | Good |
| raw-search | perplexity-search, brave-search, jina-search, searchapi, serpapi, tavily | Fast | Links only |
| llm | claude, openai-chat, gemini-chat, openrouter-chat | Seconds | Ungrounded (no citations) |
Output Structure
./agents/librarium/{timestamp}-{slug}/
prompt.md, run.json, summary.md, sources.json
{provider}.md, {provider}.meta.json
async-tasks.json (if applicable)
Related skills
Co-Marketing Partnerships
coreyhaines31
Find ideal partners and plan joint marketing campaigns with other companies.
Idea Sprint
solanabr
Validate crypto startup ideas and decide whether they're worth building.
Jobs to be Done Canvas
product-on-purpose
Map customer motivations across functional, emotional, and social dimensions.
App Store Review Arbitrage
Varnan-Tech
Turn competitor reviews into marketing positioning and ad copy opportunities.