Before non-trivial changes, consult the project's references/ directory — vendored repos and paper notes — to ground the work in primary sources instead of guessing. Trigger when about to design, implement, or modify code that involves an algorithm, formula, or API that's covered by a paper or reference repo in references/; when the user mentions a concept that matches a reference (e.g. "DSR", "CPCV", "GEPA", "Pareto selection"); or when the user explicitly says "check references", "consult the literature", "look up X in the repos". Also use to bootstrap references/ structure in a new project.
Ships in research-engineering-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most LLM mistakes on technical code come from confidently misremembering an algorithm or API. The fix is dirt cheap: read the actual paper or repo before writing the code. This skill makes that reflex automatic.
The convention assumes a project layout like:
references/
INDEX.md # catalog rendered from each reference's front-matter
repos/
<name>/ # git submodule or shallow clone, read-only
AGENTS.md # overlay: YAML front-matter + entry points + when-to-consult
papers/
<slug>/
NOTES.md # human-readable summary (the primary thing you read)
main.tex # or paper.pdf / paper.html — source of truth for equations
SOURCE.md # provenance + equation fidelity
arxiv-id.txt
web/
<slug>/
NOTES.md # summary of a blog post / web page
SOURCE.md
Every reference's primary markdown file (NOTES.md, or AGENTS.md for repos)
opens with a YAML front-matter block carrying the formal metadata schema:
type, a key citation handle in <surname>-<year>-<slug> form, title,
authors, year, a short summary, a consult_for line, and at least one link
(arxiv / doi / url). The read-arxiv-paper skill documents the full schema
and writes it for new papers; INDEX.md is a catalog rendered from these blocks.
If the project doesn't have this layout yet, use Mode B to set it up.
Consult mode (most common):
papers/deflated-sharpe/).repos/gepa/).Bootstrap mode:
references/ directory and the work clearly needs one.references/INDEX.md
This is hand-curated and the source of truth for what's available and when to use each. If it doesn't exist, fall back to listing references/repos/ and references/papers/ and inferring from directory names.
Match the task to entries in INDEX.md. Be generous — it's cheaper to check one extra reference than to misimplement something.
Papers: papers/<slug>/NOTES.md first. Only open the .tex source when you need to verify an equation, algorithm, or assumption exactly. The LaTeX is there precisely so you can copy formulas verbatim instead of paraphrasing them.
Repos: start from the entry point listed in INDEX.md. If none listed, scan the top-level README.md and then the module that names suggest is relevant. Use grep/glob to find the specific functions or types you'll be calling or imitating — don't read the whole repo.
When you write the code or design, cite with author + year + title (and the
citation key / path), never a bare path or bare arXiv id — the author/year/title
is what lets a reader recognize the source without opening it:
# Deflated Sharpe Ratio — Bailey & López de Prado 2014, eq. 9
# [bailey-2014-deflated-sharpe] See references/papers/deflated-sharpe/NOTES.md
# $$ \hat{SR} = \frac{(SR - SR_0)\sqrt{N-1}}{\sqrt{1 - \gamma_3 SR + \frac{\gamma_4 - 1}{4} SR^2}} $$
Author et al. YEAR, "Title" + section/figure, plus the key.The reference wins. Update the code, and if you find that the paper's NOTES.md was misleading, note the discrepancy and offer to update NOTES.md.
Tell the user. Suggest fetching the missing paper (the read-arxiv-paper skill handles this) or vendoring the missing repo before proceeding. Don't fall back to "winging it from memory" silently.
When setting up a fresh references directory:
Create the structure:
mkdir -p references/repos references/papers
Create references/INDEX.md — a catalog whose entries are rendered from each
reference's YAML front-matter, citing author + year + title:
# References
Catalog of repos and papers this project depends on, rendered from each
reference's YAML front-matter. Update whenever you add something.
## Repos
- **[<key>]** <Authors> (<year>), *<title>* — `repos/<name>/`. <repo_url>.
Entry point: `<path>`. <summary> **Consult for:** <when>.
## Papers
- **[<key>]** <Surname> et al. (<year>), *<title>* — `papers/<slug>/`.
[arXiv:<id>](https://arxiv.org/abs/<id>) · doi:<doi>. <summary> **Consult for:** <when>.
## Web
- **[<key>]** <Author> (<year>), *<title>* — `web/<slug>/`. <url>.
<summary> **Consult for:** <when>.
Create references/README.md with a short explanation of the convention (so anyone — human or agent — opening the project understands it).
If the user named specific repos to vendor, suggest:
git submodule add <url> references/repos/<name>git clone --depth 1 <url> references/repos/<name> and add references/repos/*/.git to .gitignore (or just commit the snapshot).If the user named papers, hand off to the read-arxiv-paper skill for each.
Add a pointer in the root CLAUDE.md:
## References
Before non-trivial changes, consult `references/INDEX.md` for relevant repos and papers.
Use the `consult-references` skill.
references/ is small, curated, and project-specific.references/, open it first. Your explanation will be better and you'll catch the assumptions you'd have missed.references/INDEX.md lists something nobody uses, suggest removing it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/research-engineering-skills:consult-referencesfrom research-engineering-skills
npx claudepluginhub 0x0f0f0f/research-engineering-skills --plugin research-engineering-skills16 skills in this plugin
/add-molab-badgeAdd "Open in molab" badge(s) linking to marimo notebooks. Works with READMEs, docs, websites, or any markdown/HTML target./anywidget-generatorGenerate anywidget components for marimo notebooks./auto-paper-demoMake a demo of a research paper in a marimo notebook fully automatically without extra user input./implement-paperImplement a research paper as an interactive marimo notebook together with the user. Start by understanding what the user wants to explore, fetch the paper via alphaxiv, then build a focused notebook./implement-paper-autoImplement a research paper in a marimo notebook fully automatically without extra user input./improve-codebase-architectureFind deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.