用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/yf8578/citation-grabber --skill citation-grabber命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | citation-grabber |
| description | Search for scientific papers and fetch citations in BibTeX or NBIB format from PubMed and CrossRef |
| version | 1.1.0 |
| usage | citation-grabber <title_or_doi_or_pmid_or_file> [--format bibtex|nbib] [--output <file>] [--quiet] |
| metadata | {"openclaw":{"emoji":"📚","os":["darwin","linux","win32"],"requires":{"bins":["python3"],"python":">=3.8"},"install":[{"id":"pip-deps","kind":"pip","packages":["requests>=2.25.0"],"label":"Install Python dependencies"}]}} |
Instantly fetch scientific paper citations from the command line.
The skill automatically ensures dependencies are installed. Manual installation:
pip3 install requests>=2.25.0
By Title:
python3 citation.py "Attention Is All You Need"
By DOI:
python3 citation.py "10.1038/nature14539"
By PubMed ID:
python3 citation.py "12345678"
BibTeX (Default):
python3 citation.py "Deep Learning" --format bibtex
NBIB (PubMed Format for EndNote/Zotero):
python3 citation.py "COVID-19 vaccine" --format nbib
Create a file papers.txt with paper titles/DOIs/PMIDs (one per line):
Attention Is All You Need
10.1038/nature14539
Deep Residual Learning for Image Recognition
Process all at once:
python3 citation.py papers.txt --output references.bib
python3 citation.py "Paper Title" --output my_citations.bib
Suppress progress messages (useful for scripting):
python3 citation.py "Paper Title" --quiet
| Option | Short | Description | Default |
|---|---|---|---|
--format | Output format: bibtex or nbib | bibtex | |
--output | -o | Save to file instead of stdout | stdout |
--quiet | -q | Suppress progress messages | false |
--version | Show version and exit | - | |
--help | -h | Show help message | - |
Get BibTeX for a Classic Paper:
python3 citation.py "The structure of DNA"
Get NBIB for a Medical Paper:
python3 citation.py "COVID-19 vaccine effectiveness" --format nbib
Process a List of Papers:
# Create papers.txt
echo "Attention Is All You Need" > papers.txt
echo "BERT: Pre-training of Deep Bidirectional Transformers" >> papers.txt
echo "Deep Residual Learning for Image Recognition" >> papers.txt
# Fetch all citations
python3 citation.py papers.txt --output all_refs.bib
Silent Mode for Scripts:
python3 citation.py "10.1038/nature14539" --quiet > paper.bib 2>/dev/null
--format nbib to get PubMed-native format--format bibtexNo citation found:
Timeout errors:
Wrong paper returned:
requests library (auto-installed by skill)