BibTeX Reference Adder
Use this skill when the user wants to add references to an existing .bib file and the new entries must match the file's current style rather than preserving publisher-exported BibTeX verbatim.
Inputs
The user may provide any mix of:
- paper title
- paper link
- raw
bibtex
- author, venue, year, pages, arXiv, or report information
- target
.bib file
Treat partial input as normal. Gather the missing details before writing the final entry.
Workflow
- Read the target
.bib file first and match its local style.
- Identify the paper from the user-provided title, link, or raw entry.
- Confirm the source BibTeX from the most reliable available source.
Preferred sources: official publisher page, official proceedings page, arXiv page, or the user's raw BibTeX if it is clearly correct.
- Convert the source entry into the target file's house style.
- Remove unwanted or stray content.
- Check for duplicates before appending.
- Only then write the final BibTeX entry into the target file.
- If a citation intake document or explicit insertion locations are provided, update the target LaTeX draft after the BibTeX step:
- Map each intake item to its final citation key, including both newly added keys and duplicate entries that already existed in the
.bib file.
- Insert
\cite{...} or ~\cite{...} at the recorded source-text anchor without rewriting unrelated prose.
- When inserting multiple citation keys in one citation command, format them with a comma followed by a space, for example
~\cite{82D, 128L} rather than ~\cite{82D,128L}.
- Reuse existing nearby citation commands when appropriate instead of creating duplicate adjacent citations.
- Verify that every inserted key exists in the target
.bib file.
- Update the intake document status when useful, for example
added-as-128L or already-in-bib-67L.
Normalization Rules
- Keep the entry type aligned with the real publication type, using the closest style already present in the target file such as
@inproceedings, @article, @techreport, or @incollection.
- Omit
doi even if it appears in the original source.
- Keep only fields that fit the target file's style. Do not preserve every exported field by default.
- Preserve BibTeX-safe capitalization for acronyms, model names, venue abbreviations, and other tokens that should stay uppercase by wrapping them in
{} when needed.
- Preserve author names in valid BibTeX / LaTeX form when special characters are present.
- Use BibTeX page ranges such as
41--50.
- Follow the spacing and field layout already used by the target file.
Preferred Field Sets
Use the smallest field set that still matches the target bibliography's existing conventions.
@inproceedings: author, title, booktitle, year, pages when available
@article: author, title, journal, year, volume when available, plus number, pages, or eid when appropriate
@techreport: author, title, institution, type, year, and only keep eprint / archivePrefix when they fit the target file's current style
@incollection: author, title, booktitle, year, pages, publisher, address
Citation Key Rule
Rename the entry key to:
<next-sequential-number><first-author-surname-initial>
Examples:
Rules:
- Find the current highest numeric prefix already present in the target file.
- Increment it by 1 for the new entry.
- Use the uppercase initial of the first author's surname.
- Do not preserve the source site's original key.
Duplicate Check
Before appending, check whether the paper already exists in the target file.
Use title-first matching, then confirm with author, year, and venue or journal details. Treat light formatting differences as possible duplicates. If a duplicate exists:
- do not append a second copy
- prefer the cleaner version that better matches the target file's style
Junk Cleanup
Remove any invalid stray text that does not belong in a BibTeX entry or field list.
Explicitly watch for:
CVF
/CVF
- dangling text between entries
- malformed leftover fragments copied from websites or PDFs
If the target file already contains stray junk, clean it while making the edit when it is safe to do so.
Output Behavior
Before writing, confirm these points in your reasoning and user-facing summary:
- the source BibTeX was confirmed
- the entry was normalized to the target file's style
doi was not included
- the new key was computed correctly
- duplicate check passed or a duplicate was intentionally skipped
- citation insertion into the LaTeX draft was completed or intentionally skipped
- stray junk such as
CVF was removed if found
When returning the result, prefer showing the cleaned final entry or clearly stating that no new entry was added because it was already present.
1---2name: bibtex-reference-adder3description: Add one or more papers to an existing BibTeX bibliography when the user provides a title, link, raw BibTeX, or mixed citation details and wants the final entry cleaned to match the target file's house style. Use when the task requires confirming the source BibTeX, normalizing the entry type and fields, omitting DOI, renaming the citation key to sequential-number-plus-first-author-initial form, checking for duplicates, and removing stray junk such as CVF text before appending to the .bib file.4---56# BibTeX Reference Adder78Use this skill when the user wants to add references to an existing `.bib` file and the new entries must match the file's current style rather than preserving publisher-exported BibTeX verbatim.910## Inputs1112The user may provide any mix of:1314- paper title15- paper link16- raw `bibtex`17- author, venue, year, pages, arXiv, or report information18- target `.bib` file1920Treat partial input as normal. Gather the missing details before writing the final entry.2122## Workflow23241. Read the target `.bib` file first and match its local style.252. Identify the paper from the user-provided title, link, or raw entry.263. Confirm the source BibTeX from the most reliable available source.27 Preferred sources: official publisher page, official proceedings page, arXiv page, or the user's raw BibTeX if it is clearly correct.284. Convert the source entry into the target file's house style.295. Remove unwanted or stray content.306. Check for duplicates before appending.317. Only then write the final BibTeX entry into the target file.328. If a citation intake document or explicit insertion locations are provided, update the target LaTeX draft after the BibTeX step:33 - Map each intake item to its final citation key, including both newly added keys and duplicate entries that already existed in the `.bib` file.34 - Insert `\cite{...}` or `~\cite{...}` at the recorded source-text anchor without rewriting unrelated prose.35 - When inserting multiple citation keys in one citation command, format them with a comma followed by a space, for example `~\cite{82D, 128L}` rather than `~\cite{82D,128L}`.36 - Reuse existing nearby citation commands when appropriate instead of creating duplicate adjacent citations.37 - Verify that every inserted key exists in the target `.bib` file.38 - Update the intake document status when useful, for example `added-as-128L` or `already-in-bib-67L`.3940## Normalization Rules4142- Keep the entry type aligned with the real publication type, using the closest style already present in the target file such as `@inproceedings`, `@article`, `@techreport`, or `@incollection`.43- Omit `doi` even if it appears in the original source.44- Keep only fields that fit the target file's style. Do not preserve every exported field by default.45- Preserve BibTeX-safe capitalization for acronyms, model names, venue abbreviations, and other tokens that should stay uppercase by wrapping them in `{}` when needed.46- Preserve author names in valid BibTeX / LaTeX form when special characters are present.47- Use BibTeX page ranges such as `41--50`.48- Follow the spacing and field layout already used by the target file.4950## Preferred Field Sets5152Use the smallest field set that still matches the target bibliography's existing conventions.5354- `@inproceedings`: `author`, `title`, `booktitle`, `year`, `pages` when available55- `@article`: `author`, `title`, `journal`, `year`, `volume` when available, plus `number`, `pages`, or `eid` when appropriate56- `@techreport`: `author`, `title`, `institution`, `type`, `year`, and only keep `eprint` / `archivePrefix` when they fit the target file's current style57- `@incollection`: `author`, `title`, `booktitle`, `year`, `pages`, `publisher`, `address`5859## Citation Key Rule6061Rename the entry key to:6263`<next-sequential-number><first-author-surname-initial>`6465Examples:6667- `119S`68- `120K`6970Rules:7172- Find the current highest numeric prefix already present in the target file.73- Increment it by 1 for the new entry.74- Use the uppercase initial of the first author's surname.75- Do not preserve the source site's original key.7677## Duplicate Check7879Before appending, check whether the paper already exists in the target file.8081Use title-first matching, then confirm with author, year, and venue or journal details. Treat light formatting differences as possible duplicates. If a duplicate exists:8283- do not append a second copy84- prefer the cleaner version that better matches the target file's style8586## Junk Cleanup8788Remove any invalid stray text that does not belong in a BibTeX entry or field list.8990Explicitly watch for:9192- `CVF`93- `/CVF`94- dangling text between entries95- malformed leftover fragments copied from websites or PDFs9697If the target file already contains stray junk, clean it while making the edit when it is safe to do so.9899## Output Behavior100101Before writing, confirm these points in your reasoning and user-facing summary:102103- the source BibTeX was confirmed104- the entry was normalized to the target file's style105- `doi` was not included106- the new key was computed correctly107- duplicate check passed or a duplicate was intentionally skipped108- citation insertion into the LaTeX draft was completed or intentionally skipped109- stray junk such as `CVF` was removed if found110111When returning the result, prefer showing the cleaned final entry or clearly stating that no new entry was added because it was already present.