Skip to content
Back to skills

Cite

ASecurity

Finds a paper by title, author, or DOI, adds BibTeX to references.bib, and shows citation syntax. Use when adding a reference.

  • 5,142 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
researchbash

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill cite --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cite?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cite
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brycewang-stanford-cite/badge)](https://www.skillsdirectory.com/skills/brycewang-stanford-cite)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cite
description: Finds a paper by title, author, or DOI, adds BibTeX to references.bib, and shows citation syntax. Use when adding a reference.
argument-hint: <paper or DOI>
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, WebSearch, WebFetch
---

# Add Citation

Find a paper, create a BibTeX entry, add it to `references.bib`, and provide the citation syntax.

## Arguments

- `$ARGUMENTS` — a paper description, title, author name, or DOI (e.g., "Acemoglu 2001 colonial origins" or "10.1257/aer.91.5.1369")

## Steps

1. Parse the argument to determine if it is a DOI or a descriptive search query.

2. Search for the paper:
   - If a DOI is provided, fetch the metadata directly (use web search or CrossRef)
   - If a description is provided, search the web to identify the paper and its DOI/metadata

3. Construct a valid BibTeX entry with these fields (at minimum):
   - `@article{key,` (or `@book`, `@incollection`, etc. as appropriate)
   - `author`, `title`, `journal` (or `booktitle`), `year`, `volume`, `number`, `pages`, `doi`
   - Use a citation key in the format: `lastname_yearword` (e.g., `acemoglu2001colonial`)

4. Read `references.bib` and check for duplicate keys:
   - If the exact key already exists, inform the user and show the existing entry
   - If a similar key exists (same author and year), warn the user

5. Append the new entry to `references.bib` (add a blank line before the new entry)

6. Show the user the citation syntax for use in `index.qmd`:
   - Narrative: `@key` → "Author (Year)"
   - Parenthetical: `[@key]` → "(Author, Year)"
   - Multiple: `[@key1; @key2]`

7. Ask if the user wants to create an annotation note in `references/` (see `/project:literature-note`)

## Error handling

- If the paper cannot be found, report the search results and ask the user to provide more details or a DOI.
- If `references.bib` does not exist, create it with the new entry.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.