npx claudepluginhub data-wise/scholarplugin-api/commands/literature/# Add BibTeX Entry I'll help you add a BibTeX entry to your bibliography file. **Usage:** `/research:bib:add <bib-file>` **Examples:** - `/research:bib:add ~/Documents/references/mediation.bib` - `/research:bib:add ./references.bib` ## Add Entry Please provide: 1. The .bib file path (where to add the entry) 2. The BibTeX entry to add You can get BibTeX entries from: - `/research:doi <doi>` - Get BibTeX from DOI - Google Scholar (cite → BibTeX) - Publisher websites - Zotero export <system> This command adds a BibTeX entry to a bibliography file. ## Implementation Use the shell API w...
/factcheckVerifies BibTeX entries and cited claims in LaTeX papers against DBLP and web sources. Produces a structured report with corrections, unverified claims, and fixed BibTeX entries.
/verify-citationsVerifies all citations in the main LaTeX file against the BibTeX bibliography using paper search tools. Classifies each as OK, PARTIAL, MISMATCH, UNVERIFIED, or MISSING and outputs a report.
/citeGenerates a formatted, numbered bibliography from the latest research session's findings in academic, GitHub, or Discourse styles. Supports --session <id> for specific sessions.
/bibliographyGenerates formatted bibliographies and citations in academic styles: APA, MLA, Chicago, IEEE, Harvard, Vancouver.
/researchResearches evidence for PR/FAQ claims or topics from .tex files, generates biblatex citations, caches results, and offers to update documents.
/research-citeGenerates properly formatted, policy-compliant citations from research corpus using REF-ID, keyword, or author match. Supports inline, BibTeX, reference formats with GRADE hedging and page/quote options.
Share bugs, ideas, or general feedback.
I'll help you add a BibTeX entry to your bibliography file.
Usage: /research:bib:add <bib-file>
Examples:
/research:bib:add ~/Documents/references/mediation.bib/research:bib:add ./references.bibPlease provide:
You can get BibTeX entries from:
/research:doi <doi> - Get BibTeX from DOIUse the shell API wrapper from ${CLAUDE_PLUGIN_ROOT}/lib/bibtex-utils.sh:
# Source the API wrapper
source "${CLAUDE_PLUGIN_ROOT}/lib/bibtex-utils.sh"
# Extract bib file path
BIB_FILE="$1"
if [[ -z "$BIB_FILE" ]]; then
echo "Error: .bib file path required"
exit 1
fi
# Expand ~ to home directory
BIB_FILE="${BIB_FILE/#\~/$HOME}"
# Ask for BibTeX entry if not provided
if [[ -z "$2" ]]; then
echo "Please provide the BibTeX entry to add:"
echo "(Enter the complete @article{...} or @book{...} entry)"
echo ""
# Read multi-line entry until we see a closing }
BIBTEX_ENTRY=""
while IFS= read -r line; do
BIBTEX_ENTRY+="$line"$'\n'
# Check if we've reached the end of the entry
if [[ "$line" =~ ^\} ]]; then
break
fi
done
else
BIBTEX_ENTRY="$2"
fi
# Add entry to file
bib_add "$BIB_FILE" "$BIBTEX_ENTRY"
Can be used after:
/research:doi <doi> - Get BibTeX from DOI, then add to file/research:arxiv <query> - Find paper, get DOI, get BibTeX, add to fileUser: /research:doi 10.1037/met0000310
(Shows metadata and BibTeX)
User: /research:bib:add ~/Documents/references/mediation.bib
(Adds the BibTeX entry from previous command)
After adding entry, offer to: