# citation-management

A skill that keeps citations in a LaTeX paper in order: harvests missing references via Semantic Scholar, validates cite keys against .bib, and formats the bibliography.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2100 installs · ★ 433
- Author: lingzhi227
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lingzhi227/agent-research-skills/tree/HEAD/skills/citation-management/SKILL.md
- Updated: 2026-02-27
- HTML: https://affpapa.org/en/nevibecode/skills/lingzhi227-citation-management

## What it does

The skill covers the whole citation lifecycle in a LaTeX paper. It scans the `.tex` draft, spots claims without citations, searches Semantic Scholar, and appends entries to `.bib`. Keys follow `firstAuthorLastNameYearFirstContentWord`, so you get something like `vaswani2017attention`.

Four actions are available: `harvest`, `validate`, `add`, `format`. Harvesting runs in rounds, up to 20, until the gaps close. Validation reports unresolved cite keys, unused entries, duplicate keys and sections, undefined references, and missing figures. Searching needs a Semantic Scholar key, passed with `--api-key`.

There is a `--dry-run` flag for previewing and a `--fix` flag that writes `references_fixed.bib` with placeholders for missing keys. Nothing gets invented: only entries returned by the API are added, and an existing citation is never duplicated. Worth running before you compile, not after.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill citation-management -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/citation-management/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/citation-management/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill citation-management -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/citation-management/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill citation-management -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/citation-management/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lingzhi227/agent-research-skills citation-management
```

2. **Manually: put the files in place**
- File: `.github/skills/citation-management/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill citation-management -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lingzhi227/agent-research-skills --path skills/citation-management
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/citation-management/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill citation-management -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lingzhi227/agent-research-skills/tree/HEAD/skills/citation-management/SKILL.md

## When to use it
- find missing citations in a draft
- check that every `\cite` key resolves in `.bib`
- strip duplicate entries and keys
- sort and tidy `.bib` before compilation
- add one specific paper by title

## Example prompts
- Validate the citations in `paper/main.tex` against `paper/references.bib` and list what's missing
- Harvest missing citations for `paper/main.tex`, start with `--dry-run`
- Add the attention is all you need paper to `.bib` and clean up the key

## Similar
- [citation-audit](https://affpapa.org/en/nevibecode/skills/citation-audit.md) — skill · 483 installs
- [citation-verification](https://affpapa.org/en/nevibecode/skills/citation-verification.md) — skill · 1400 installs
- [literature-review](https://affpapa.org/en/nevibecode/skills/collaborative-deep-research-literature-review.md) — skill · 732 installs
- [lit-review](https://affpapa.org/en/nevibecode/skills/lit-review.md) — skill · ★ 1668
- [semanticscholar-skill](https://affpapa.org/en/nevibecode/skills/semanticscholar-skill.md) — skill · 3400 installs
- [paper-write](https://affpapa.org/en/nevibecode/skills/paper-write.md) — skill · 539 installs

## Other versions with the same name
- [citation-management · k-dense-ai](https://affpapa.org/en/nevibecode/skills/citation-management.md) — 2200 installs

From the same set: [lingzhi227/agent-research-skills](https://affpapa.org/en/nevibecode/by/lingzhi227/agent-research-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
