来源信息
- 仓库
- brycewang-stanford/Auto-Empirical-Research-Skills
- 最近来源活动
- 2026年4月3日 02:07
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 3,291
- 分支
- 432
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
菜单
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill doi-content-negotiation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | doi-content-negotiation |
| description | Retrieve structured metadata from any DOI via HTTP content negotiation |
| metadata | {"openclaw":{"emoji":"🔗","category":"literature","subcategory":"metadata","keywords":["DOI","content negotiation","metadata retrieval","BibTeX","citation metadata","linked data"],"source":"https://citation.crosscite.org/"}} |
Any DOI can return structured metadata in multiple formats through HTTP content negotiation — simply set the Accept header when requesting https://doi.org/{doi}. This is the most universal way to get citation metadata, BibTeX entries, JSON-LD, and RDF from any publisher without needing a specific API. Works for all 300M+ registered DOIs. Free, no authentication.
# Get JSON citation metadata (Citeproc JSON)
curl -LH "Accept: application/vnd.citationstyles.csl+json" \
"https://doi.org/10.1038/nature14539"
# Get BibTeX
curl -LH "Accept: application/x-bibtex" \
"https://doi.org/10.1038/nature14539"
# Get RIS format
curl -LH "Accept: application/x-research-info-systems" \
"https://doi.org/10.1038/nature14539"
# Get formatted citation (APA style)
curl -LH "Accept: text/x-bibliography; style=apa" \
"https://doi.org/10.1038/nature14539"
# Get formatted citation (Chicago style)
curl -LH "Accept: text/x-bibliography; style=chicago-author-date" \
"https://doi.org/10.1038/nature14539"
| Accept Header | Format | Use Case |
|---|---|---|
application/vnd.citationstyles.csl+json | Citeproc JSON | Programmatic metadata |
application/x-bibtex | BibTeX | LaTeX bibliography |
application/x-research-info-systems | RIS | Reference managers |
text/x-bibliography; style=apa | Formatted text | Direct citation |
application/rdf+xml | RDF/XML | Linked data |
text/turtle | Turtle RDF | Linked data |
application/vnd.schemaorg.ld+json | Schema.org JSON-LD | Web metadata |
application/json | DataCite JSON | DataCite DOIs |
application/vnd.crossref.unixref+xml | Crossref XML | Full Crossref metadata |
Over 9,000 CSL styles available:
# APA 7th edition
style=apa
# Chicago Manual of Style (author-date)
style=chicago-author-date
# IEEE
style=ieee
# MLA
style=modern-language-association
# Harvard
style=harvard-cite-them-right
# Vancouver (medical)
style=vancouver
# Nature
style=nature
{
"DOI": "10.1038/nature14539",
"type": "article-journal",
"title": "Deep learning",
"author": [
{"given": "Yann", "family": "LeCun"},
{"given": "Yoshua", "family": "Bengio"},
{"given": "Geoffrey", "family": "Hinton"}
],
"container-title": "Nature",
"volume": "521",
"issue": "7553",
import requests
def get_metadata(doi: str) -> dict:
"""Get structured metadata for a DOI."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={"Accept": "application/vnd.citationstyles.csl+json"},
allow_redirects=True,
)
resp.raise_for_status()
return resp.json()
def get_bibtex(doi: str) -> str:
"""Get BibTeX entry for a DOI."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={"Accept": "application/x-bibtex"},
allow_redirects=True,
)
resp.raise_for_status()
return resp.text
def get_formatted_citation(doi: str,
style: str = "apa") -> str:
"""Get a formatted citation string."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={
"Accept": f"text/x-bibliography; style={style}",
},
allow_redirects=True,
)
resp.raise_for_status()
return resp.text.strip()
def batch_bibtex(dois: list) -> str:
entries = []
doi dois:
:
bib = get_bibtex(doi)
entries.append(bib)
requests.HTTPError:
entries.append()
.join(entries)
meta = get_metadata()
authors = .join(
a meta.get(, [])
)
()
()
()
bibtex = get_bibtex()
()
apa = get_formatted_citation(, )
()
bibliography = batch_bibtex([
,
,
])
(, ) f:
f.write(bibliography)