# Add to library

> Add to library is an open-source agent skill for files and documents. Adds one PDF to a shared bibliography library with verified metadata and keywords. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/leiverkus/research-superpowers/tree/main/skills/add-to-library
- **Repository:** https://github.com/leiverkus/research-superpowers
- **GitHub stars:** 18
- **License:** MIT
- **Skill name:** add-to-library
- **Collection:** https://github.com/leiverkus/research-superpowers
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [research methods](https://ai-powered.com/categories/research-methods)
- **Listing updated:** 2026-12-03

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/leiverkus/research-superpowers/tree/HEAD/skills/add-to-library)
- [License: MIT](https://github.com/leiverkus/research-superpowers/tree/HEAD/skills/add-to-library)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Literature review](https://ai-powered.com/skills/literature-review-leiverkus): Literature review is an open-source agent skill for research methods.
- [Acquire sources](https://ai-powered.com/skills/acquire-sources): Acquire sources is an open-source agent skill for files and documents.
- [Drift report](https://ai-powered.com/skills/drift-report): Drift report is an open-source agent skill for files and documents.
- [Baidu document parser](https://ai-powered.com/skills/baidu-document-parser): Baidu document parser is an open-source agent skill for files and documents.
- [Finishing a research project](https://ai-powered.com/skills/finishing-a-research-project): Finishing a research project is an open-source agent skill for research methods.
- [Web research](https://ai-powered.com/skills/web-research): Web research is an open-source agent skill for files and documents.
- [Ni book downloader](https://ai-powered.com/skills/ni-book-downloader): Ni book downloader is an open-source agent skill for files and documents.
- [Deep reader](https://ai-powered.com/skills/deep-reader): Deep reader is an open-source agent skill for files and documents.

---
Source: https://ai-powered.com/skills/add-to-library
