Skip to content
Skill

Add to library

Adds one PDF to a shared bibliography library with verified metadata and keywords

Add to library is an open-source agent skill for files and documents. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
18
Last commit
License
MIT
Listing updated

Similar skills

About Add to library

This skill places a single PDF you already have into a shared master reference library, outside any project's wiki workflow. The agent inspects the file's document properties and first-page text, looks for a DOI, and checks the bibliographic record against Crossref or OpenAlex before writing anything. It then curates a short set of search keywords from the abstract and proposes a citation key in the author-year-short-title pattern.

The deterministic steps (computing the key, copying the PDF into the library folder, appending a BibTeX entry, and re-indexing the search) are handled by a bundled Python script. The agent's job is the judgement: confirming the record matches the PDF, choosing the short title and entry type, and stopping to ask the user when the metadata cannot be verified. A log line is written to the project's knowledge folder when the entry is added.

The workflow expects a research project root so the shared library location can be resolved, plus the PDF path and optionally a DOI. Access to a paper-search MCP server is preferred for lookups, with a manual Crossref query as fallback. The skill is distributed as part of a research plugin for Claude Code under the MIT license.

When your agent uses it

Add ONE document (a PDF) directly to the shared master library — outside the project ingest flow. Auto-discovers the bibliographic metadata, VERIFIES it against Crossref/OpenAlex (never guessing), derives keywords cheaply from the PDF's docinfo + first-page abstract (no full read), computes the canonical bibkey, places the PDF at <library>/pdf/<bibkey>.pdf and appends the entry to <library>/references.bib. Stops and asks when metadata cannot be verified. Triggers on "add this PDF to the library", "add to the master bibliography", "put this straight in the library", "füge das Dokument der Bibliothek hinzu", "nimm das PDF in die Bibliothek auf". NOT ingest-source (which reads a source into a project's wiki), NOT acquire-sources (which downloads a review's worklist).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (12 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the research-superpowers plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add leiverkus/research-superpowers
/plugin install research-superpowers@leiverkus-research

Or copy only this skill to ~/.claude/skills/add-to-library:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/add-to-library &&
cp -R "$tmp/skills/add-to-library" ~/.claude/skills/add-to-library &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/add-to-library inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/add-to-library to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/add-to-library &&
cp -R "$tmp/skills/add-to-library" ~/.agents/skills/add-to-library &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/add-to-library inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/add-to-library to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/add-to-library &&
cp -R "$tmp/skills/add-to-library" ~/.cursor/skills/add-to-library &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/add-to-library inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/leiverkus/research-superpowers.git --path skills/add-to-library

Or copy the folder to ~/.gemini/skills/add-to-library yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/add-to-library:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/leiverkus/research-superpowers.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/add-to-library &&
cp -R "$tmp/skills/add-to-library" ~/.copilot/skills/add-to-library &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/add-to-library inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/leiverkus/research-superpowers.git

Then copy research-superpowers/skills/add-to-library into your agent's skills folder as add-to-library. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Verified metadata lookup
Checks the bibliographic record against Crossref or OpenAlex and cross-checks title, author and year with the PDF.
Keyword curation
Derives three to eight search keywords from document properties and the first-page abstract without a full read.
Citation key generation
Proposes an author-year-short-title key and handles letter suffixes for clashes.
Library placement
Copies the PDF into the library folder and appends a BibTeX entry to the shared references file.
Search verification
Re-indexes the library and runs a test search to confirm the new entry is findable.
Stop-and-ask safeguards
Halts instead of writing when metadata is unverified or a scanned PDF has no identifier.

Good for

  • Add a colleague's PDF to the shared research library
  • Put a downloaded paper into the master bibliography without ingesting it
  • Verify a paper's citation details against Crossref before filing it
  • Add a book chapter PDF to the library with the correct entry type

Add to library FAQ

What does the skill need to run?

It needs a path to the PDF and a research project root so the shared library can be resolved, and it can take an optional DOI. A paper-search MCP server is preferred for lookups, with manual Crossref as fallback.

How is this different from ingest-source?

Add-to-library only adds the PDF and its bibliographic entry to the shared library, with no wiki content and no full read. ingest-source reads a source into a project's wiki.

What happens if the metadata cannot be verified?

The skill stops and asks the user rather than writing an entry. The script also refuses to commit an unverified entry unless an explicit reason is given.

Which files does Add to library write?

It creates the PDF in the library's pdf folder, appends an entry to the library's references file, and adds a line to the project's knowledge log.

How do I install Add to library in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/add-to-library to use it in all your projects, or to .claude/skills/add-to-library in one project. Or install the research-superpowers plugin, which includes it: /plugin marketplace add leiverkus/research-superpowers, then /plugin install research-superpowers@leiverkus-research.

Does Add to library run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Add to library?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Add to library?

The closest alternatives to Add to library are Literature review, Acquire sources, Drift report, Baidu document parser and Finishing a research project.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from leiverkus/research-superpowers

  1. Guides the agent through creating a new research project from a template, no shell needed

    • Open source
    • 18 GitHub stars
    • Developer tools
  2. Fetches open-access PDFs for graded sources and builds a manual download list for the rest

    • Open source
    • 18 GitHub stars
    • Files and documents
  3. Guides an agent through turning a vague research interest into an approved design doc

    • Open source
    • 18 GitHub stars
    • Research methods
  4. Runs a deterministic drift check across library, wiki and registered research projects

    • Open source
    • 18 GitHub stars
    • Files and documents
  5. Runs a finished research plan task by task with subagents and two-stage review

    • Open source
    • 18 GitHub stars
    • Productivity
  6. Runs a final closing checklist before a research project is declared done

    • Open source
    • 18 GitHub stars
    • Research methods