Article/skills/ads_metadata_search/SKILL.md
Asfmq dfd0a980a5 feat: 重写 ADS 搜索脚本为 REST API,新增 Obsidian 转换 skill,修复路径
- ads_metadata_search: 移除 ads 库依赖,改用 requests 直连 ADS REST API;
  移除硬编码 API Key,改为 .env 文件/环境变量加载
- 新增 ads_html_to_obsidian skill:将下载的 HTML 文献批量转换为
  Obsidian Markdown 笔记(BS4 提取正文 + Pandoc 转换 + 清洗后处理)
- 两个 SKILL.md 中的 Windows 绝对路径改为相对路径
2026-05-26 17:30:36 +08:00

33 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: ads_metadata_search
description: "用于在 ADS 中搜索天体物理文献,提取元数据信息。当用户要求搜索天文论文、查找作者、查看论文引用情况、查询 Bibcode或者想了解某篇特定天体物理文献的信息时务必触发并使用本技能哪怕用户没有明确提到 ADS。注意如果用户明确要求下载全文 PDF 或 HTML请不要使用本技能应转用 downloader 技能)。"
---
# ADS Metadata Search (ADS 文献元数据搜索)
本技能利用 ADS API 搜索关于天文学、天体物理学、物理学的文献提取特定的字段信息如作者、标题、年份、Bibcode、摘要、被引数等。**注意:它不会下载文献的 PDF 或 HTML只提取元数据。如果你需要下载文献全文包请使用 `ads_literature_downloader`。**
## 运行方式
由于查询通过命令行参数直接获取较困难(尤其是复杂的 query 字符串),我们通过内部包含的 Python 脚本 `scripts/search.py` 完成。
你可以通过执行该脚本来工作:
```bash
python .claude/skills/ads_metadata_search/scripts/search.py \
--query "author:\"Hawking, S.\"" \
--output "results.json" \
--rows 10
```
### 参数选项
- `--query`: ADS查询语法字符串 (例如: `author:"Smith, J." year:2020``orcid:0000-0001-xxxx-xxxx`)
- `--output`: 结果保存到的 JSON 文件路径
- `--rows`: 返回的条目数量(默认 10。如果你需要大量数据可以增加到 50, 100 等。如果您只需要一条精准记录,可以设置为 1。
- `--year_range`: 年份区间,例如 `2018-2023``2020`
### 脚本输出
脚本不仅会将详细元数据如 `bibcode`, `title`, `author`, `year`, `abstract`, `citation_count`, `reference_count` 写入 `output` 的 JSON 文件,还会在终端输出摘要预览,方便你进行查看。
拿到信息以后,如有必要,可以调用下载能力技能或者向用户继续询问后续需要分析什么。