Awesome-Agent-Skills-for-Empirical-Research cite
Finds a paper by title, author, or DOI, adds BibTeX to references.bib, and shows citation syntax. Use when adding a reference.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/29-quarcs-lab-project20XXy/dot-claude/skills/cite" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-cite && rm -rf "$T"
manifest:
skills/29-quarcs-lab-project20XXy/dot-claude/skills/cite/SKILL.mdsource content
Add Citation
Find a paper, create a BibTeX entry, add it to
references.bib, and provide the citation syntax.
Arguments
— a paper description, title, author name, or DOI (e.g., "Acemoglu 2001 colonial origins" or "10.1257/aer.91.5.1369")$ARGUMENTS
Steps
-
Parse the argument to determine if it is a DOI or a descriptive search query.
-
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
-
Construct a valid BibTeX entry with these fields (at minimum):
(or@article{key,
,@book
, etc. as appropriate)@incollection
,author
,title
(orjournal
),booktitle
,year
,volume
,number
,pagesdoi- Use a citation key in the format:
(e.g.,lastname_yearword
)acemoglu2001colonial
-
Read
and check for duplicate keys:references.bib- 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
-
Append the new entry to
(add a blank line before the new entry)references.bib -
Show the user the citation syntax for use in
:index.qmd- Narrative:
→ "Author (Year)"@key - Parenthetical:
→ "(Author, Year)"[@key] - Multiple:
[@key1; @key2]
- Narrative:
-
Ask if the user wants to create an annotation note in
(seereferences/
)/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
does not exist, create it with the new entry.references.bib