rag-paper-query

rag-paper-query is a skill for Claude Code, Codex from i1ight/ragPaper. It costs 43 tokens per session (741 once invoked), scanned A, original, MIT.

A query skill for searching and reasoning over paper PDFs stored in a local rag-paper index. It can identify indexed papers, inspect their details, search their contents, and retrieve exact passages.

In plain words
What is it for?
Use it to find papers, look up metadata, search paper content, retrieve supporting passages, and combine evidence from several indexed papers.
Why use it?
It helps answer questions from a local collection of research papers without manually opening and searching every PDF.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find papers, look up metadata, search paper content, retrieve supporting passages, and combine evidence from several indexed papers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/i1ight/ragpaper/rag-paper-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add i1ight/ragPaper --skill rag-paper-query
Clone the repo
git clone --depth 1 https://github.com/i1ight/ragPaper

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rag-paper-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/i1ight/ragpaper/rag-paper-query.svg)](https://agentmods.dev/skills/i1ight/ragpaper/rag-paper-query)
Your own site
<a href="https://agentmods.dev/skills/i1ight/ragpaper/rag-paper-query"><img src="https://agentmods.dev/badge/skills/i1ight/ragpaper/rag-paper-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00741
Opus 5 $0.00022 $0.00370
Sonnet 5 $0.00009 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 7d ago against content hash 059f58d7a2c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

rag-paper-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rag-paper-query/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

rag-paper-query

Use this skill whenever the user asks about papers that may exist in the local rag-paper knowledge base.

Priority

Prefer MCP tools when available. Use direct local commands or Python access only when MCP is unavailable, incomplete, or the user explicitly asks for direct Chroma/local access.

MCP Workflow

If MCP server rag-paper is available, use these tools:

  1. list_indexed_papers

    • Use first when the user asks what papers are indexed.
    • Use to confirm whether a paper exists before detailed lookup.
  2. show_indexed_paper

    • Use for metadata, DOI, authors, source path, chunk IDs, or indexed-paper details.
    • Use fuzzy selectors: title fragment, filename fragment, source path fragment, or DOI fragment.
  3. search_papers

    • Use for semantic or keyword-like questions over paper content.
    • Prefer concise, content-rich search queries.
    • Use filters when the user mentions author, year, tag, or file name.
  4. search_by_metadata

    • Use when the user asks for papers by author, year, tag, or filename.
  5. get_chunk

    • Use when exact chunk text is needed.
  6. export_context

    • Use when synthesizing an answer from multiple chunks.
    • Export only relevant chunks.

Direct Local Workflow

If MCP is unavailable, use local rag-paper commands from the project environment:

rag-paper list-indexed-papers
rag-paper show-indexed-paper "selector"
rag-paper search "query" --top-k 8
rag-paper search "query" --author "name"
rag-paper search "query" --year 2024
rag-paper search "query" --tag transformer

If commands are unavailable but Python package access works, use:

from rag_paper.config import load_config
from rag_paper.retrieval import HybridRetriever, result_to_dict

config = load_config("./config.json")
retriever = HybridRetriever(config)
results = retriever.search("your query", top_k=8)
items = [result_to_dict(result) for result in results]

For direct Chroma inspection without semantic search:

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 90 lines · 43 tokens per session scan A 059f58d7a2c0

Subscribe to this mod's changes

rag-paper-query is a skill published in the GitHub repository i1ight/ragPaper (1 stars, last pushed 29d ago), licensed MIT. It adds 43 tokens to every session and 741 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

academic-research

Nested swiss-knife reference for academic literature work — find papers, fetch full-text PDFs, trace citations, write LaTeX manuscripts. First action for any "get me this paper" request: python3 /scripts/fetchpaper.py — walks arXiv → Unpaywall → Europe PMC → CORE → in-house publisher-page extraction…

Lingtai-AI/lingtai · 180 tokens

fin-submit-check

A pre-submission checklist for an academic paper and its LaTeX files. It checks journal requirements such as anonymous authorship, length, spacing, margins, citations, figures, data availability, and other submission details.

csmar432/finai-research · 37 tokens

paper2poster-poster

Use when the user wants to turn an academic paper into a conference poster, poster outline, poster copy deck, poster layout brief, poster.yaml style draft, or Paper2Poster-ready generation package. Trigger for paper-to-poster requests involving PDF papers, arXiv links, manuscripts, PPTX posters, conference…

Paper2Poster/Paper2Poster · 80 tokens

nature-citation

Add strict Nature/CNS citations to manuscript text by splitting long passages into citable segments, searching only accepted flagship and subjournal titles from Nature Portfolio, the AAAS Science family, and Cell Press, filtering by publication time range, and exporting one reference-manager-ready output by default.…

YuanyuanMa03/academic-research-skills · 150 tokens

nature-academic-search

Multi-source literature search, citation verification, MeSH search strategy, citation file management (.nbib/.ris/.bib conversion), and reference management (BibTeX, related articles, ID conversion) via MCP tools (PubMed, CrossRef, arXiv). Use when the user needs coordinated multi-step literature workflows beyond a…

YuanyuanMa03/academic-research-skills · 74 tokens

paper-workbench

Researcher-profile-driven paper intake and literature workbench for academic workflows. Use whenever the user wants to skim, deep-read, card, compare, synthesize, map research gaps, or build a literature review from papers, arXiv/AlphaXiv links, DOIs, PDFs, or existing workbench artifacts. Trigger even when the user…

bahayonghang/my-ai-cli-toolkit · 102 tokens