bib-exportlisted
Install: claude install-skill SungFeng-Huang/research-cards
# bib-export
Turn a curated card into a `.bib` file. The overview cards and project cards
already ARE hand-vetted reference lists (every linked paper card carries an
`arxiv ID` property) — this skill closes the knowledge-base → paper-writing
gap by fetching the **official** BibTeX for each linked paper.
## Agent(claude / codex)
兩個 agent 皆可駕駛——純 CLI script,無 MCP 依賴。
## Backend
`heptabase`/`both`:`<card>` 傳卡片 UUID。`obsidian`:傳 vault 卡 id
(`Folder/Name`);mentions 從 wikilinks 重建、`arxiv ID` 讀 frontmatter
`arxiv_id`。路由由 config `backend` 自動決定。注意:vault 是部分鏡像——
未同步的卡(如 blog 卡)在 vault 端是 Heptabase URL 而非 wikilink,obsidian
模式收不到;要完整清單(含 no-arxiv-ID 的 TODO 列表)用 heptabase 模式跑。
## Usage
```bash
cd "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/skills/research-cards}/skills/bib-export"
python3 bib_export.py <card-id> # anchor 卡的直接 card-links
python3 bib_export.py <hub-card-id> --depth 2 # hub → 子 overview 卡 → 論文
python3 bib_export.py --ids 2606.12345,aclanthology:2026.eacl-short.18
python3 bib_export.py <card-id> -o refs.bib # 指定輸出('-' = stdout)
```
Default output: `<anchor-title>.bib` in the current directory.
## Fetch chain(絕不捏造)
| id form | chain |
|---|---|
| `2606.12345` (arxiv) | Semantic Scholar `citationStyles`(有正式 venue 就拿到出版版)→ `arxiv.org/bibtex/<id>`(官方) |
| `aclanthology:<id>` | 官方 `aclanthology.org/<id>.bib` → S2 `ACL:<id>` |
| `openreview:<id>` | OpenReview API v2→v1 `content._bibtex` → S2 title match |
| `alphaxiv:<slug>` | S2 title match,**僅在 normali