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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rag-paper-query

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00017 $0.00296
Sonnet 5.5 $0.00009 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 1mo ago against content hash 059f58d7a2c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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. 1mo 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 (2 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 741 once invoked, about $0.0002 per session on Opus 5.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

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

scientific-writing

Use when writing or revising scientific manuscripts, abstracts, figures, or references for journal submission and you need full-paragraph prose, scientific structure, citation-style guidance, or reporting-guideline support.

Boom5426/Nature-Paper-Skills · 43 tokens

manuscript-optimizer

Use when auditing, restructuring, or revising a research manuscript whose scientific question, claim hierarchy, evidence chain, section logic, figures, terminology, or prose may be unclear or out of sync. Apply before sentence-level polishing, especially for whole drafts, major revisions, resubmissions, overclaiming…

Boom5426/Nature-Paper-Skills · 85 tokens

review-article-architecture

Use when writing, restructuring, or auditing a Review, survey, or Perspective rather than a research article, especially a commissioned one written across many sessions. Covers the governing plan document, drift detection, single-definition thesis and field judgements, section-owns-figure allocation, display-item…

Boom5426/Nature-Paper-Skills · 90 tokens

write-scientific-manuscript

Diagnose and repair the clarity and logic of manuscript prose, journal-agnostic. Use when a passage is technically correct but hard to follow: buried topic sentences, missing logical bridges, ambiguous referents, abstract noun chains, overloaded sentences, incomplete comparisons with no stated dataset or metric or…

Boom5426/Nature-Paper-Skills · 152 tokens

paper-reviewer

Referee-side skill for Nature Portfolio manuscripts: write a referee report, inventory every ask and sub-ask in received comments, grade drafted replies, and test reply readability. Check methodology, statistics, reporting, reproducibility and data/code availability. Preserve referee wording, numbering and order…

Boom5426/Nature-Paper-Skills · 190 tokens