本文へ移動
cccskills
無料GitHub で公開

librarium

Runs evidence-aware, multi-provider research with the Librarium v2 CLI. Use for deep research, competitive research, answer-engine visibility checks, or questions needing grounded multi-source coverage.

インストール方法を見る

含まれるファイル(200)

  • SKILL.md7.6 KB
  • .agents/resume502 B
  • .agents/setup1.1 KB
  • .agents/skills/mcp-builder/reference/evaluation.md21.2 KB
  • .agents/skills/mcp-builder/reference/mcp_best_practices.md7.2 KB
  • .agents/skills/mcp-builder/reference/node_mcp_server.md27.9 KB
  • .agents/skills/mcp-builder/reference/python_mcp_server.md24.5 KB
  • .agents/skills/mcp-builder/scripts/connections.py4.8 KB
  • .agents/skills/mcp-builder/scripts/evaluation.py12.3 KB
  • .agents/skills/mcp-builder/scripts/example_evaluation.xml1.2 KB
  • .agents/skills/mcp-builder/scripts/requirements.txt29 B
  • .agents/skills/mcp-builder/SKILL.md8.8 KB
  • .gitattributes19 B
  • .github/FUNDING.yml18 B
  • .github/ISSUE_TEMPLATE/bug_report.yml2.7 KB
  • .github/ISSUE_TEMPLATE/config.yml357 B
  • .github/ISSUE_TEMPLATE/feature_request.yml1.3 KB
  • .github/ISSUE_TEMPLATE/new_provider.yml1.6 KB
  • .github/pull_request_template.md615 B
  • .github/scripts/parse-changelog.sh4.9 KB
  • .github/workflows/ci.yml6.1 KB
  • .github/workflows/release-candidate.yml21.8 KB
  • .github/workflows/release.yml15.4 KB
  • .gitignore141 B
  • art/demo.gif42.7 KB
  • art/demo.png93.0 KB
  • art/demo/build-demo-home.mjs343 B
  • art/demo/demo-run.mjs1.7 KB
  • art/demo/demo.tape570 B
  • art/demo/fixture.template.json184 B
  • art/demo/record.sh1.1 KB
  • art/demo/render.mjs2.4 KB
  • art/gh-og.png8.6 MB
  • benchmark/ci.mjs1.2 KB
  • benchmark/cli.mjs4.4 KB
  • benchmark/config.json562 B
  • benchmark/CONTRIBUTING.md1.8 KB
  • benchmark/datasets/live.json15.8 KB
  • benchmark/datasets/stable.json29.1 KB
  • benchmark/fixtures/v1/answers/live.md58 B
  • benchmark/fixtures/v1/answers/stable.md47 B
  • benchmark/fixtures/v1/judgment.json632 B
  • benchmark/fixtures/v1/manifest.json1.2 KB
  • benchmark/fixtures/v1/runs/live-group/brave-answers.meta.json499 B
  • benchmark/fixtures/v1/runs/live-group/exa.meta.json464 B
  • benchmark/fixtures/v1/runs/live-group/gemini-grounded.meta.json388 B
  • benchmark/fixtures/v1/runs/live-group/kagi-fastgpt.meta.json491 B
  • benchmark/fixtures/v1/runs/live-group/openrouter-online.meta.json499 B
  • benchmark/fixtures/v1/runs/live-group/parallel-turbo.meta.json489 B
  • benchmark/fixtures/v1/runs/live-group/run.json2.6 KB
  • benchmark/fixtures/v1/runs/live-group/shared.md77 B
  • benchmark/fixtures/v1/runs/live-group/sources.json358 B
  • benchmark/fixtures/v1/runs/live-provider/brave-search.md70 B
  • benchmark/fixtures/v1/runs/live-provider/brave-search.meta.json594 B
  • benchmark/fixtures/v1/runs/live-provider/run.json858 B
  • benchmark/fixtures/v1/runs/live-provider/sources.json234 B
  • benchmark/fixtures/v1/runs/stable-group/brave-answers.meta.json528 B
  • benchmark/fixtures/v1/runs/stable-group/exa.meta.json491 B
  • benchmark/fixtures/v1/runs/stable-group/gemini-grounded.meta.json417 B
  • benchmark/fixtures/v1/runs/stable-group/kagi-fastgpt.meta.json520 B
  • benchmark/fixtures/v1/runs/stable-group/openrouter-online.meta.json528 B
  • benchmark/fixtures/v1/runs/stable-group/parallel-turbo.meta.json501 B
  • benchmark/fixtures/v1/runs/stable-group/run.json3.0 KB
  • benchmark/fixtures/v1/runs/stable-group/shared.md103 B
  • benchmark/fixtures/v1/runs/stable-group/sources.json392 B
  • benchmark/fixtures/v1/runs/stable-provider/brave-search.md80 B
  • benchmark/fixtures/v1/runs/stable-provider/brave-search.meta.json623 B
  • benchmark/fixtures/v1/runs/stable-provider/run.json851 B
  • benchmark/fixtures/v1/runs/stable-provider/sources.json268 B
  • benchmark/fixtures/v1/synthesis.json270 B
  • benchmark/lib/artifacts.mjs14.2 KB
  • benchmark/lib/corpus.mjs7.4 KB
  • benchmark/lib/guard.mjs2.1 KB
  • benchmark/lib/io.mjs2.4 KB
  • benchmark/lib/judge.mjs8.1 KB
  • benchmark/lib/report.mjs6.7 KB
  • benchmark/lib/runner.mjs25.4 KB
  • benchmark/lib/scoring.mjs7.3 KB
  • benchmark/lib/targets.mjs8.7 KB
  • benchmark/performance/cli.mjs1.1 KB
  • benchmark/performance/lib.mjs1.5 KB
  • benchmark/performance/README.md2.0 KB
  • benchmark/performance/runner.ts14.9 KB
  • benchmark/README.md6.6 KB
  • benchmark/targets.json10.2 KB
  • benchmark/validate.mjs574 B
  • biome.json596 B
  • CHANGELOG.md44.2 KB
  • contracts/README.md2.4 KB
  • contracts/v1/checksums.sha2566.5 KB
  • contracts/v1/fixtures/index.json17.9 KB
  • contracts/v1/fixtures/invalid/citation-no-source.json837 B
  • contracts/v1/fixtures/invalid/error-not-namespaced.json267 B
  • contracts/v1/fixtures/invalid/error-rich.json289 B
  • contracts/v1/fixtures/invalid/failed-shape.json984 B
  • contracts/v1/fixtures/invalid/invalid-enum.json945 B
  • contracts/v1/fixtures/invalid/invalid-id.json978 B
  • contracts/v1/fixtures/invalid/invalid-timestamp.json992 B
  • contracts/v1/fixtures/invalid/partial-shape.json985 B
  • contracts/v1/fixtures/invalid/provenance-context-unknown.json1.0 KB
  • contracts/v1/fixtures/invalid/provenance-surface-no-collector.json1016 B
  • contracts/v1/fixtures/invalid/provenance-surface-snapshot-wrong-result.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-fused-access-token.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-fused-api-key.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-fused-raw-response.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-non-object.json1014 B
  • contracts/v1/fixtures/invalid/provider-meta-raw.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-secret.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-top-level.json1010 B
  • contracts/v1/fixtures/invalid/provider-meta-wrapped-api-key.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-wrapped-binary-payload.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-wrapped-credentials.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-wrapped-raw-response.json1.1 KB
  • contracts/v1/fixtures/invalid/provider-meta-wrapped-session-token.json1.1 KB
  • contracts/v1/fixtures/invalid/result-collection-graph.json1011 B
  • contracts/v1/fixtures/invalid/result-legacy-fields.json1013 B
  • contracts/v1/fixtures/invalid/result-plain-text-format.json989 B
  • contracts/v1/fixtures/invalid/result-profile-graph.json1004 B
  • contracts/v1/fixtures/invalid/result-semantic-facts.json1015 B
  • contracts/v1/fixtures/invalid/result-target-graph.json1007 B
  • contracts/v1/fixtures/invalid/result-wrong-content.json980 B
  • contracts/v1/fixtures/invalid/source-no-locator.json903 B
  • contracts/v1/fixtures/invalid/succeeded-shape.json209 B
  • contracts/v1/fixtures/invalid/terminal-execution-field.json1005 B
  • contracts/v1/fixtures/invalid/terminal-extensions.json1007 B
  • contracts/v1/fixtures/invalid/terminal-source-registry.json1012 B
  • contracts/v1/fixtures/invalid/terminal-version.json1005 B
  • contracts/v1/fixtures/invalid/usage-cost-no-currency.json1.0 KB
  • contracts/v1/fixtures/invalid/usage-malformed-decimal.json1.0 KB
  • contracts/v1/fixtures/invalid/usage-negative.json1.0 KB
  • contracts/v1/fixtures/invalid/usage-rich.json1.2 KB
  • contracts/v1/fixtures/valid/empty-retrieval-and-corpora.json926 B
  • contracts/v1/fixtures/valid/enum-branch-coverage.json5.8 KB
  • contracts/v1/fixtures/valid/failed.json290 B
  • contracts/v1/fixtures/valid/json-array-success.json1.0 KB
  • contracts/v1/fixtures/valid/json-object-success.json1016 B
  • contracts/v1/fixtures/valid/markdown-success.json987 B
  • contracts/v1/fixtures/valid/optional-result-fields.json1.3 KB
  • contracts/v1/fixtures/valid/partial-top-level-usage.json1.3 KB
  • contracts/v1/fixtures/valid/php-text-success.json1010 B
  • contracts/v1/fixtures/valid/provider-meta-benign-keys.json1.1 KB
  • contracts/v1/fixtures/valid/provider-meta-namespaces.json17.8 KB
  • contracts/v1/fixtures/valid/provider-reference-source.json962 B
  • contracts/v1/fixtures/valid/surface-context-authentication-anonymous.json1.3 KB
  • contracts/v1/fixtures/valid/surface-context-authentication-authenticated.json1.3 KB
  • contracts/v1/fixtures/valid/surface-context-authentication-managed.json1.3 KB
  • contracts/v1/fixtures/valid/surface-context-authentication-unknown.json1.3 KB
  • contracts/v1/fixtures/valid/untrusted-url-identifier.json960 B
  • contracts/v1/manifest.json9.6 KB
  • contracts/v1/schema/interchange.schema.json85.2 KB
  • docs/provider-development.md7.7 KB
  • docs/release-candidate-recovery.md5.4 KB
  • LICENSE1.0 KB
  • package-lock.json214.3 KB
  • package.json4.3 KB
  • README.md27.9 KB
  • scripts/build-sea.mjs3.2 KB
  • scripts/clean-dist.mjs650 B
  • scripts/contract-snapshot-path.ts2.6 KB
  • scripts/custom-providers/wikipedia-provider.mjs3.2 KB
  • scripts/generate-contract-snapshot.mjs614 B
  • scripts/generate-contract-snapshot.ts21.7 KB
  • scripts/install.sh9.5 KB
  • scripts/pricing-snapshot.mjs600 B
  • scripts/pricing-snapshot.ts5.7 KB
  • scripts/rc-artifacts.mjs591 B
  • scripts/rc-artifacts.ts3.7 KB
  • scripts/rc-distribution-proof.mjs601 B
  • scripts/rc-distribution-proof.ts146 B
  • scripts/rc-workflow.mjs588 B
  • scripts/rc-workflow.ts123 B
  • scripts/release-inventory.sh3.8 KB
  • scripts/release-promotion.mjs584 B
  • scripts/release-promotion.ts2.6 KB
  • scripts/run-typescript.mjs323 B
  • scripts/typescript-toolchain.mjs1.8 KB
  • scripts/verify-packed-consumer.mjs23.1 KB
  • scripts/verify-sea.mjs1.9 KB
  • scripts/verify-typescript-toolchain.mjs909 B
  • scripts/you-answer-live-smoke.mjs1.9 KB
  • src/adapters/base.ts5.7 KB
  • src/adapters/brave-answers.ts19.3 KB
  • src/adapters/brave-search.ts3.3 KB
  • src/adapters/claude.ts7.7 KB
  • src/adapters/custom.ts18.2 KB
  • src/adapters/exa-research.ts12.5 KB
  • src/adapters/exa.ts4.1 KB
  • src/adapters/firecrawl-search.ts15.9 KB
  • src/adapters/gemini-chat.ts6.9 KB
  • src/adapters/gemini-deep.ts14.9 KB
  • src/adapters/gemini-grounded.ts4.7 KB
  • src/adapters/grok-options.ts8.2 KB
  • src/adapters/grok-responses.ts13.4 KB
  • src/adapters/grok.ts1.2 KB
  • src/adapters/index.ts11.1 KB
  • src/adapters/jina-search.ts3.5 KB
  • src/adapters/kagi-fastgpt.ts4.0 KB
  • src/adapters/node-registry.ts5.5 KB
  • src/adapters/openai-chat.ts8.7 KB
  • src/adapters/openai-research.ts12.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Librarium -- Multi-Provider Deep Research

Run research queries through Librarium’s v2 public provider/profile catalog. There are 34 built-in providers and 41 implemented profiles. Preserve the profile and collection provenance when reporting results; do not turn source counts or agreement into a confidence claim.

Prerequisites

Before the first query in an orb, run librarium --version and require major version 2. The Librarium repository's .agents/setup installs its built v2 checkout globally. In other orbs, install the published v2 package when it is available:

npm install -g 'librarium@^2'

Do not silently fall back to Librarium 1.x or install a mutable Git branch. If npm has no v2 release yet, report that distribution blocker instead. Configure available API keys with librarium init --auto, then inspect the usable matrix offline with librarium doctor and librarium ls --json. This confirms only configuration and credential presence, not authentication or connectivity, and does not load configured custom provider code. Use librarium doctor --live only when the user explicitly wants live connectivity tests; it loads trusted custom providers, makes provider network requests, and may incur charges. Never print secret values.

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 built-in workflow is best suited? (quick for a curated low-latency set, deep for research-report profiles, visibility for an explicit nine-perspective comparison, all for catalog-derived coverage). Use custom:<name> for a user-authored group.
  • What execution mode? (sync for quick queries, mixed for deep research)

Phase 2: Provider Selection

Select providers based on query type:

  • Technical queries: Start with quick; add named durable profiles or deep only when the question warrants the latency and possible spend.
  • Quick facts: Use quick group (AI-grounded only, fast)
  • Competitive research: Use all only after confirming its configured, credentialed membership and cost exposure.
  • Answer visibility: Use visibility only when you deliberately want six SearchAPI-collected consumer-surface observations compared with three first-party API baselines. Treat the six collection-vendor results as correlated evidence, not independent confirmation.
  • Specific provider: Use --providers (canonical IDs or display names, e.g. -p "Exa Search,brave-search")

Phase 3: Dispatch

Run the query:

librarium run "your query here" --group <group> [--mode mixed]

Phase 4: Monitor Async Tasks

If a profile is background/durable and was submitted in async mode:

librarium status --wait

Phase 5: Retrieve Results

Once the provider is observed complete, retrieve the terminal result:

librarium status --retrieve

Phase 6: Analyze Output

Read the output files:

  1. summary.md -- Overall research summary with statistics
  2. sources.json -- Deduplicated citations ranked by frequency
  3. Individual {provider}.md files for detailed per-provider results
  4. run.json -- Machine-readable manifest

Phase 7: Synthesize

Combine findings from multiple providers into a coherent answer. Record source overlap and provenance, but do not convert a higher citation count into a confidence score: shared collectors and repeated sources can make that evidence correlated.

Key Commands

CommandPurpose
librarium run <query>Run research query
librarium run <query> --group quickFast AI-grounded search
librarium run <query> --group deepDeep research (async)
librarium run <query> --group visibilityCompare six collected consumer surfaces with three first-party API baselines
librarium run <query> --group allCatalog-derived selectable coverage
librarium answer <query>Fan out (default quick) and synthesize one grounded, cited answer to answer.md
librarium run <query> --max-cost 0.50Stop launching providers once API-reported cost crosses the budget
librarium run <query> --yesSkip the deep-research pre-flight confirm (3+ deep providers)
librarium statusCheck async tasks
librarium status --wait --retrieveWait and fetch Node CLI async results
librarium live-validation --fixture /absolute/path/to/fixture.jsonReplay a strict, network-free canonical fixture
librarium usage [--days N] [--json]Aggregate API-reported cost and tokens across past runs
librarium run <query> --html --openRun, then open an HTML report
librarium run <query> --jsonlRun, then write machine-readable results.jsonl
librarium browseBrowse 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 lsList providers and status
librarium doctorCheck provider configuration and credential presence offline
librarium doctor --liveTest connectivity with provider network requests; charges may apply
librarium configShow 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

TierProvidersSpeedDepth
background/durableexa/research, openai-research/research, gemini-deep/research, perplexity-sonar-deep/research, perplexity-deep-research/research, you-research/research, parallel/research, and valyu/researchMinutes to longerPersisted handles that can be polled and retrieved
inlineSearch, grounded, collected surface, and chat profilesUsually secondsImmediate response; no durable handle

Visibility and privacy boundary

The six SearchAPI surface profiles observe consumer-facing ChatGPT, Gemini, Perplexity, Google AI Mode, Bing Copilot, and Google AI Overview output through one upstream collector. Treat agreement among them as correlated visibility evidence, not independent corroboration or parity with a particular logged-in user. zeroRetention is an account capability: if explicitly configured, Librarium fails closed when the account rejects it. It makes no broader retention or privacy guarantee. SerpBase may log search queries for billing, debugging, abuse prevention, and account logs; no zero-retention mode or fixed public retention period is documented.

Output Structure

./agents/librarium/{timestamp}-{slug}/
  prompt.md, run.json, summary.md, sources.json
  {provider}.md, {provider}.meta.json
  answer.md (when using `librarium answer`)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

日本語の概要は準備中です。原文の説明を表示しています。

jkudish/librarium1342026年10月11日 更新

jkudish のスキルをすべて見る

このスキルの問題を報告する