一键导入
export
Use when the user needs BibTeX, RIS, Markdown reference lists, filtered citation exports, custom citation styles, or a Markdown-to-DOCX export for sharing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user needs BibTeX, RIS, Markdown reference lists, filtered citation exports, custom citation styles, or a Markdown-to-DOCX export for sharing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user wants to install, configure, diagnose, or troubleshoot ScholarAIO, including setup check, dependency status, API keys, and bilingual setup flow.
Use when the user explicitly asks for Nature Skills, nature-skills, Nature style, Nature-style, Nature Communications, Nature-family, CNS, high-impact journal, or Springer Nature workflows, including Nature figure work, polishing, writing, reviewer critique, high-impact journal major revision response, Nature/CNS citations, Nature data-sharing workflows, paper readers, reviewer response, paper-to-PPT, submission checklist, or Nature-specific academic-search workflows.
Use when the user wants to rebuild or refresh ScholarAIO keyword, full-text, FTS5, FAISS, or semantic search indexes after data or metadata changes.
Use when the user wants to find academic papers, search the local library, run keyword or semantic search, search by author, explore topics, or federate across library, explore databases, and arXiv.
Use when the user wants to import papers from Endnote XML/RIS, Zotero Web API or local SQLite, attach PDFs, match PDFs to records, or supplement records with PDF content.
Use when the user wants to process new papers, patents, theses, documents, or proceedings from inbox queues into the knowledge base, run the ingest pipeline, or rebuild indexes.
| name | export |
| description | Use when the user needs BibTeX, RIS, Markdown reference lists, filtered citation exports, custom citation styles, or a Markdown-to-DOCX export for sharing. |
将本地论文库导出为标准引用格式,或将任意 Markdown 内容转换为 Word 文件。
| 格式 | 命令 | 用途 |
|---|---|---|
BibTeX .bib | export bibtex | LaTeX 写作引用 |
RIS .ris | export ris | Zotero / Endnote / Mendeley 导入 |
| Markdown 文献列表 | export markdown | 直接粘贴到文档、综述草稿 |
| Word DOCX | export docx | 分享给同事、导师,任意 Markdown 内容 |
# 导出全部论文到屏幕
scholaraio export bibtex --all
# 导出全部论文到文件
scholaraio export bibtex --all -o workspace/library.bib
# 导出指定论文
scholaraio export bibtex "Smith-2023-Turbulence" "Doe-2024-DNS"
# 按年份筛选导出
scholaraio export bibtex --all --year 2020-2024 -o workspace/recent.bib
# 按期刊筛选导出
scholaraio export bibtex --all --journal "Fluid Mechanics" -o workspace/jfm.bib
# 导出全部论文
scholaraio export ris --all -o workspace/library.ris
# 导出指定论文
scholaraio export ris "Smith-2023-Turbulence" "Doe-2024-DNS" -o workspace/refs.ris
# 按年份筛选
scholaraio export ris --all --year 2022-2024 -o workspace/recent.ris
导出后可直接在 Zotero 中:File → Import → 选择 .ris 文件
| 格式名 | 说明 | 典型场景 |
|---|---|---|
apa(默认) | APA 7th 作者-年份 | 社科、心理、教育 |
vancouver | Vancouver/ICMJE 编号 | 医学、生命科学 |
chicago-author-date | Chicago 17 作者-年份 | 人文、社科 |
mla | MLA 9th | 文学、语言学 |
<自定义> | 期刊专属格式 | 见下方「自定义格式」 |
# 导出全部论文(APA 风格,默认)
scholaraio export markdown --all
# 指定引用格式
scholaraio export markdown --all --style vancouver
scholaraio export markdown --all --style chicago-author-date
scholaraio export markdown --all --style jcp # 自定义格式
# 导出到文件
scholaraio export markdown --all --style apa -o workspace/references.md
# 无序列表
scholaraio export markdown --all --bullet
# 按年份筛选
scholaraio export markdown --all --year 2020-2024 -o workspace/recent_refs.md
scholaraio style list # 列出全部格式(内置 + 自定义)
scholaraio style show jcp # 查看某个自定义格式的代码
自定义格式以 Python 文件存储在配置的 citation styles 目录中。fresh 默认是
data/libraries/citation_styles/<name>.py。如果用户仍有旧版
data/citation_styles/ 内容,先通过 scholaraio migrate upgrade --migration-id <id> --confirm
迁移后再导出。格式文件必须实现一个函数:
def format_ref(meta: dict, idx: int | None = None) -> str:
"""
meta 字段:title, authors (list), year, journal, volume, issue,
pages, doi, publisher, paper_type, ...
idx: 有序列表的编号(None = 无序/bullet)
返回:格式化后的 Markdown 引用字符串
"""
当用户说「导出成 JCP 格式」「帮我按 Physical Review Letters 格式导出」:
检查是否已有缓存
scholaraio style list
如果已有 jcp 或目标格式名,直接跳到第 4 步。
获取期刊官方格式说明
<journal name> citation style guide 或 <journal name> reference formathttps://raw.githubusercontent.com/citation-style-language/styles/master/<slug>.cslhttps://github.com/citation-style-language/styles/(支持 10,000+ 期刊)写 Python 格式化函数并保存
format_ref(meta, idx) 函数cfg.citation_styles_dir / "<name>.py"(fresh 默认 data/libraries/citation_styles/<name>.py)<name>.json(记录来源和示例)导出
scholaraio export markdown --all --style <name> -o workspace/refs.md
# Journal of Chemical Physics / AIP Publishing 编号格式
# 来源:https://publishing.aip.org/wp-content/uploads/2021/05/JCP_Style_Guide.pdf
def format_ref(meta: dict, idx: int | None = None) -> str:
authors = meta.get("authors") or []
def _fmt(name):
parts = name.split(",", 1)
if len(parts) == 2:
last, first = parts[0].strip(), parts[1].strip()
initials = " ".join(f"{w[0]}." for w in first.split() if w)
return f"{initials} {last}"
return name
if len(authors) == 1:
author_str = _fmt(authors[0])
elif len(authors) <= 3:
fmt = [_fmt(a) for a in authors]
author_str = ", ".join(fmt[:-1]) + f", and {fmt[-1]}"
elif authors:
author_str = _fmt(authors[0]) + " et al."
else:
author_str = "Unknown"
title = meta.get("title") or "Untitled"
journal = meta.get("journal") or ""
volume = meta.get("volume") or ""
pages = meta.get("pages") or ""
year = meta.get("year") or "n.d."
doi = meta.get("doi") or ""
start_page = pages.split("-")[0].strip() if pages else ""
ref = f'{author_str}, "{title},"'
if journal: ref += f" *{journal}*"
if volume: ref += f" **{volume}**,"
if start_page: ref += f" {start_page}"
ref += f" ({year})."
if doi: ref += f" doi:{doi}"
prefix = f"{idx}. " if idx is not None else "- "
return prefix + ref
输出示例:
1. A. Vaswani et al., "Attention Is All You Need," *Advances in Neural Information Processing Systems* **30**, 5998 (2017). doi:10.48550/arXiv.1706.03762
# 将 Markdown 文件导出为 Word
scholaraio export docx --input workspace/literature_review.md --output workspace/review.docx
# 添加文档标题
scholaraio export docx --input workspace/report.md --output workspace/report.docx --title "研究报告"
# 从 stdin 读取(配合 Claude 生成内容直接导出)
echo "# 标题\n内容..." | scholaraio export docx --output workspace/doc.docx
支持的 Markdown 元素:标题(H1-H9)、段落、粗体、斜体、列表、表格、代码块、引用块
依赖:需安装 pip install python-docx
高级排版:
export docx仅做简单 Markdown → Word 转换。需要自定义样式、嵌入图片、表格等高级排版时,请使用/documentskill(直接调用 python-docx API)。
用户说:"把我所有论文导出成 BibTeX"
→ 执行 export bibtex --all
用户说:"导出成 RIS,我要导入 Zotero"
→ 执行 export ris --all -o workspace/library.ris
用户说:"给我一份 Markdown 格式的参考文献列表"
→ 执行 export markdown --all
用户说:"按 Vancouver 格式导出文献列表"
→ 执行 export markdown --all --style vancouver
用户说:"按 JCP 格式导出,我要投 Journal of Chemical Physics"
→ 先 style list 检查,若无则获取 JCP 格式说明、写入当前 citation styles 目录(fresh 默认 data/libraries/citation_styles/jcp.py),再 export markdown --all --style jcp
用户说:"把这篇文献综述导出成 Word 文件"
→ 执行 export docx --input workspace/review.md --output workspace/review.docx
用户说:"导出 DNS 相关的论文引用"
→ 先用 usearch "DNS" 搜索,从结果中提取目录名,再 export markdown <dir1> <dir2> ...