citation-management · lingzhi227 — Claude Code skill: BibTeX citations
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.
npx skills add lingzhi227/agent-research-skills --skill citation-management -a claude-codeWhat citation-management 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.
What it helps with
- find missing citations in a draft
- check that every
\citekey resolves in.bib - strip duplicate entries and keys
- sort and tidy
.bibbefore compilation - add one specific paper by title
Example prompts for the agent
- Validate the citations in
paper/main.texagainstpaper/references.biband list what's missing - Harvest missing citations for
paper/main.tex, start with--dry-run - Add the attention is all you need paper to
.biband clean up the key
How to install citation-management
1Skills CLI (Vercel)
npx skills add lingzhi227/agent-research-skills --skill citation-management -a claude-code2Manually: put the files in place
~/.claude/skills/citation-management/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/citation-management/
1Skills CLI (Vercel)
npx skills add lingzhi227/agent-research-skills --skill citation-management -a codex2Manually: put the files in place
.agents/skills/citation-management/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add lingzhi227/agent-research-skills --skill citation-management -a cursor2Manually: put the files in place
.cursor/skills/citation-management/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install lingzhi227/agent-research-skills citation-management2Manually: put the files in place
.github/skills/citation-management/SKILL.md1Skills CLI (Vercel)
npx skills add lingzhi227/agent-research-skills --skill citation-management -a gemini-cli2Platform CLI
gemini skills install https://github.com/lingzhi227/agent-research-skills --path skills/citation-managementManually: put the files in place
.devin/skills/citation-management/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add lingzhi227/agent-research-skills --skill citation-management -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about citation-management
How do I install citation-management in Claude?
Run npx skills add lingzhi227/agent-research-skills --skill citation-management -a claude-code. The skill lands at ~/.claude/skills/citation-management/SKILL.md.
What does citation-management do?
It harvests missing citations from a .tex draft via Semantic Scholar, validates cite keys against .bib, deduplicates entries, and formats the bibliography.
What do I need for the paper search?
A Semantic Scholar API key, passed to the script with --api-key. Without it the search for new entries will not run.
Similar skills
Everything for Science and research →citation-management by other authors comes first.