Open Alex
/install open-alex-al
OpenAlex Skill
FEATURED — Teaches an agent how to use OpenAlex (the open scholarly graph) correctly: discover entities, query works with filters, read results, and cite accurately. No API key required. Set
OPENALEX_MAILTOfor the polite pool.
This skill pairs with the OpenAlex MCP server (see ../mcp/), which provides the 6 callable tools. The skill provides the know-how. Use imperative voice; do what each step says.
1. Name
openalex — Open scholarly metadata: works, authors, institutions, sources, topics, concepts, publishers, funders.
2. Purpose
Answer research questions using authoritative bibliographic data: find papers, authors, citations, open-access status, and bibliometric trends — and cite them precisely. OpenAlex is free and open.
3. When to use OpenAlex
Use OpenAlex when the task involves:
- Scholarly works (papers, preprints, datasets, books) and their metadata.
- Authors and their output, affiliations, and citation counts.
- Citations and impact (cited_by_count, FWCI).
- Open-access status and finding free full-text links.
- Bibliometrics / trends: counts by year, institution, topic, OA status.
- Institutions, journals/sources, topics, concepts, publishers, funders.
It is free — prefer it for any academic-metadata need.
4. When NOT to use OpenAlex
- Full-text PDFs / reading the paper body → OpenAlex gives metadata +
open_access.oa_url; follow that URL to the file. OpenAlex does not serve full text. - General/non-academic web information → use a web search API, not OpenAlex.
- Paywalled full text → OpenAlex can tell you if/where an OA copy exists, but cannot bypass paywalls.
5. Environment
- No API key. No required environment variables.
- Recommended: set
[email protected]to join the polite pool (faster, fewer429s). Not a secret. - Optional:
OPENALEX_API_BASE_URL,OPENALEX_TIMEOUT_MS(30000),OPENALEX_MAX_RETRIES(3),LOG_LEVEL.
6. Operations (the 6 tools + generic)
| Tool | Use it to |
|---|---|
openalex_search |
Resolve a name/title/keyword to entities (and IDs). |
openalex_works |
Query works with filter, sort, paging — the main tool. |
openalex_get |
Fetch one entity by OpenAlex ID / DOI / ORCID / ROR. |
openalex_authors |
Search/filter authors. |
openalex_group_by |
Counts grouped by a field (analytics). |
openalex_request |
Generic passthrough to any endpoint (sources, topics, autocomplete, …). |
7. Discovery workflow
- Start from human input (a name, title, keyword).
- Resolve to an entity ID with
openalex_searchoropenalex_request→autocomplete/{entity}. - Verify you picked the right entity (check
display_name, affiliation, works_count). - Note the ID prefix → entity type:
| Prefix | Entity | Prefix | Entity |
|---|---|---|---|
W |
Works | T |
Topics |
A |
Authors | C |
Concepts |
I |
Institutions | P |
Publishers |
S |
Sources | F |
Funders |
Entity types: works, authors, sources, institutions, topics, concepts, publishers, funders, keywords.
8. Query workflow
Build a filter (comma-separated, ANDed) and pick a sort:
| Need | Filter |
|---|---|
| Year | publication_year:2024 |
| Date range | from_publication_date:…,to_publication_date:… |
| Open access | is_oa:true |
| By author | authorships.author.id:A… |
| By institution | authorships.institutions.id:I… |
| By topic | primary_topic.id:T… |
| Highly cited | cited_by_count:>100 |
| Type | type:article |
- Sort by impact:
cited_by_count:desc. Sort by recency:publication_date:desc. per-page≤ 200.- For deep traversal, use cursor (
cursor=*thenmeta.next_cursor), not highpagenumbers.
9. Reading results
meta.count= total matches (not the number returned).results= the current page only.group_by=[{key, key_display_name, count}]for aggregations.- Abstract: works carry
abstract_inverted_index(a{word: [positions]}map), not plain text. Reconstruct by placing each word at its positions and joining in order. - Full text: follow
open_access.oa_urlfor the free PDF/HTML.
10. Citation rules
Cite every claim with: title, authors, year, DOI, and the OpenAlex ID + URL https://openalex.org/\x3CID>.
\x3CAuthors> (\x3Cyear>). \x3CTitle>. \x3CSource>. DOI: \x3Cdoi>. OpenAlex: https://openalex.org/\x3CWID>
The OpenAlex URL is mandatory for traceability, in addition to the DOI.
11. Freshness
OpenAlex data updates frequently (new works, citation counts, affiliations). Counts you report are point-in-time. When precision matters, note the access date and that figures may change.
12. Integrity
- Report only what the API returns. Never invent papers, authors, DOIs, or citation counts.
- If results are empty, say so and broaden — do not fabricate to satisfy a requested count.
- Keep totals (
meta.count) distinct from listedresults.
13. Error handling
| Error | Cause | Reaction |
|---|---|---|
| HTML 404 | Bad/typo ID | Fix the ID prefix/value; re-resolve via search/autocomplete. |
429 |
Not in polite pool / too fast | Set OPENALEX_MAILTO; back off; reduce volume. |
| Empty results | Filter too narrow | Broaden filter; check key spelling; try search. |
400 |
Bad filter syntax | Comma-separate; use key:value; verify keys. |
| Timeout | Query too broad | Add a filter; lower per-page. |
14. Cost / etiquette
- Free. Be polite: set
OPENALEX_MAILTO. - Cache resolved IDs and stable records.
- Avoid huge unfiltered scans. Always filter first.
- Use cursor, not high page numbers (
pageis capped ~10000 results).
15. Security
- No secrets to manage.
OPENALEX_MAILTOis not sensitive but keep configs clean. - Read-only API; outbound HTTPS only. Keep logs on stderr; protocol on stdout.
16. Agent checklist
- Resolved names to IDs (and verified the right entity)?
- Built a
filterinstead of scanning everything? - Chose an appropriate
sort? - Used cursor for deep paging?
- Read
meta.countvsresultscorrectly? - Reconstructed abstracts from the inverted index if needed?
- Cited title + authors + year + DOI + OpenAlex ID/URL?
- Set
OPENALEX_MAILTOto avoid429? - Reported only real, returned data?
17. Example workflows
- Literature review: resolve topic →
openalex_works(topic + year +is_oa, sort by citations) →openalex_gettop work → author/institution profiles → cited summary. Seerecipes/literature-search.md. - Author profile: resolve author →
openalex_getauthor →openalex_worksfiltered byauthorships.author.id→ top works + metrics. Seerecipes/author-profile.md. - Trend by year:
openalex_group_byonpublication_yearwith a topic/OA filter. Seerecipes/citation-trends.md.
18. Common mistakes
- Using
per_pageon the wire instead ofper-page(hyphen) inopenalex_request. - Deep-paging with high
pagenumbers (capped ~10000 results) instead of cursor. - Treating
abstract_inverted_indexas plain text. - Reporting
meta.countas the number of items returned. - Forgetting the OpenAlex ID/URL in citations.
- Skipping
OPENALEX_MAILTOand hitting429.
19. Maintenance
- Re-resolve IDs periodically; entities can merge/change.
- Re-check filter keys and limits against \x3Chttps://docs.openalex.org> when behavior changes.
- Update cached records given frequent data refreshes.
Verification needed: confirm filter keys, limits, and field names with \x3Chttps://docs.openalex.org>.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install open-alex-al - 安装完成后,直接呼叫该 Skill 的名称或使用
/open-alex-al触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Open Alex 是什么?
Use OpenAlex to find and cite scholarly works, authors, institutions, and trends via metadata queries without needing an API key. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。
如何安装 Open Alex?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install open-alex-al」即可一键安装,无需额外配置。
Open Alex 是免费的吗?
是的,Open Alex 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Open Alex 支持哪些平台?
Open Alex 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Open Alex?
由 Simon-Pierrre Boucher(@simonpierreboucher02)开发并维护,当前版本 v1.0.0。