Token导航 LogoToken导航

Agent Skill · 研究检索

openalex(openalex 搜索)

openalex 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

openalex 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 66,285。

总安装 267周安装 11GitHub Stars 4下载 87核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openalex(openalex 搜索)
来源仓库:https://github.com/ondata/skills
仓库路径:skills/openalex
安装命令:
npx skills add https://github.com/ondata/skills --skill openalex
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ondata/skills --skill openalex

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。通过 npx skills add 命令从 GitHub 安装使用。安装前需确认权限范围和维护状态,注意是否触发联网或文件读写。

openalex 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/openalex

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ondata/skills --skill openalex;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openalex 怎么安装?

在终端执行 npx skills add https://github.com/ondata/skills --skill openalex。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openalex 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openalex 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

openalex 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

openalex 用的人多吗?

公开数据是累计安装 267 次,近一周安装 11 次,下载 87 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openalex 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
openalex

openalex 搜索 · 本页

2674接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

OpenAlex

Use this skill to run reliable OpenAlex API workflows from shell.

IMPORTANT: Always write curl commands on a single line. Multi-line \ continuation breaks argument parsing in agent environments and will cause errors.

Definition of Done

A task is complete when:

Results

  • The API returns at least one result (or a clear "no results found" message)
  • Each result shows: title (display_name), year, citation count
  • Output is readable — not a raw JSON blob

Process

  • curl written on a single line
  • api_key included in every request
  • select= used to limit returned fields
  • jq used to format output

PDF download (when requested)

  • If PDF is available: file saved locally, path printed
  • If PDF is not available: clear message, exit code 2, no crash

Quick Start

  1. Export API key:
export OPENALEX_API_KEY='...'

To verify it is set without printing the value:

[[ -n "${OPENALEX_API_KEY:-}" ]] && echo "key is set" || echo "ERROR: OPENALEX_API_KEY not set"
  1. Run list query (works):
curl -sS --get 'https://api.openalex.org/works' --data-urlencode 'search="data quality" AND "open government data"' --data-urlencode 'filter=type:article,from_publication_date:2023-01-01' --data-urlencode 'sort=relevance_score:desc' --data-urlencode 'per-page=200' --data-urlencode 'select=id,display_name,publication_year,cited_by_count,doi' --data-urlencode "api_key=$OPENALEX_API_KEY" | jq '.results[] | {title:.display_name, year:.publication_year, cited_by:.cited_by_count, doi}'

Workflow

  1. Define entity endpoint (works, authors, sources, etc.).
  2. Build a search block with boolean logic (AND, OR, NOT, quotes, parentheses).
  3. Add structured filter constraints (type/date/language/OA/citation fields).
  4. Restrict output with select (root-level fields only).
  5. Page results with page or cursor=*.
  6. Extract fields via jq and save/transform as needed.

Iterative Validation Workflow

Use this when building or debugging non-trivial queries.

  1. Start with a toy query (per-page=5 or per-page=10) and minimal select=.
  2. Manually inspect 5-10 records for relevance and field quality (display_name, year, DOI).
  3. Compare a baseline and a variant before scaling:

- baseline: filter=title.search:"..." - variant: search=... with same filters

  1. Tune one parameter at a time (search, filter, sort, per-page, pagination mode).
  2. Scale only after validation (per-page=200, then cursor=* for deep pagination).
  3. Log each run: command, key parameters, result count, and quick notes.

Avoid jumping directly from a paper/spec to a full extraction script without this short validation loop.

Query Blocks

  • title.search=: searches only in the title — use this by default for focused results. Must be passed inside filter=, not as a standalone parameter: filter=title.search:"your query".
  • search=: full-text search across the entire document — use only when title-only matching is too restrictive.
  • search.semantic=: semantic/conceptual search (costs $0.001/request; requires API key).
  • filter=: exact/structured constraints; comma means AND.
  • sort=: relevance_score:desc, cited_by_count:desc, publication_date:desc, etc.
  • per-page=: 1..200. Default is 25 — always set per-page=200 for bulk queries (8× fewer API calls).
  • page=: page number for standard pagination.
  • cursor=*: deep pagination beyond first 10k records.
  • select=: reduce payload; nested paths are not allowed in select.
  • group_by=: aggregate results by a field (e.g. group_by=publication_year, group_by=topics.id).
  • sample=: random sample of N results (e.g. sample=20). Add seed=42 for reproducibility.

Filter Syntax

Filters are comma-separated AND conditions. Within a single attribute:

LogicSyntaxExample
AND (comma)filter=a:x,b:yfilter=type:article,is_oa:true
OR (pipe)`filter=type:article\book`multiple values for same field
NOT (exclamation)filter=type:!journal-articlenegation
Greater thanfilter=cited_by_count:>100comparison
Less thanfilter=publication_year:<2020comparison
Rangefilter=publication_year:2020-2023inclusive range

Batch Lookup

Combine up to 50 IDs in one request using the pipe operator — avoid sequential calls:

# Batch DOI lookup (up to 50 per request)
curl -sS --get 'https://api.openalex.org/works' --data-urlencode 'filter=doi:https://doi.org/10.1/abc|https://doi.org/10.2/def' --data-urlencode 'per-page=50' --data-urlencode "api_key=$OPENALEX_API_KEY" | jq '.results[] | {title:.display_name, doi}'

Two-Step Entity Lookup

Names are ambiguous; always resolve to an OpenAlex ID first, then filter.

Step 1 — find the entity ID:

curl -sS --get 'https://api.openalex.org/authors' --data-urlencode 'search=Heather Piwowar' --data-urlencode 'per-page=5' --data-urlencode "api_key=$OPENALEX_API_KEY" | jq '.results[] | {id, display_name}'

Step 2 — use the ID in a filter:

curl -sS --get 'https://api.openalex.org/works' --data-urlencode 'filter=authorships.author.id:A5023888391' --data-urlencode 'per-page=200' --data-urlencode 'select=id,display_name,publication_year,cited_by_count' --data-urlencode "api_key=$OPENALEX_API_KEY" | jq '.results[] | {title:.display_name, year:.publication_year}'

Applies to: authors (authorships.author.id), institutions (authorships.institutions.id), sources/journals (primary_location.source.id). External IDs are also accepted: ORCID, ROR, ISSN, DOI.

PDF Retrieval

For a work ID:

  1. Fetch work metadata.
  2. Resolve PDF URL in this order:

- .content_urls.pdf - .best_oa_location.pdf_url - .primary_location.pdf_url - first non-null .locations[].pdf_url

  1. Download with api_key query parameter when source is content.openalex.org.

Output Format

When displaying results, always show display_name as the title — never use doi or id in its place.

Minimal jq for a results table:

| jq -r '.results[] | [.display_name, .publication_year, .cited_by_count, .doi] | @tsv'

Or as structured objects:

| jq '.results[] | {title: .display_name, year: .publication_year, cited_by: .cited_by_count, doi}'

CSV Export

To save results as a CSV file, use jq with @csv and include a header row:

curl -sS --get 'https://api.openalex.org/works' ... --data-urlencode "api_key=$OPENALEX_API_KEY" | jq -r '["title","year","cited_by","doi"], (.results[] | [.display_name, .publication_year, .cited_by_count, (.doi // "")]) | @csv' > results.csv

Rules:

  • Use // "" for fields that may be null (e.g. doi) — @csv fails on null values.
  • The header array and data array must have the same number of columns.
  • Use -r (raw output) so @csv produces plain text, not JSON strings.

Error Handling

Implement exponential backoff on 403 (rate limit) and 500 (server error):

attempt 1 → wait 1s → attempt 2 → wait 2s → attempt 3 → wait 4s → attempt 4 → wait 8s

HTTP codes:

  • 200 — success
  • 400 — invalid parameter or filter syntax; fix the query
  • 403 — rate limit exceeded; back off and retry
  • 404 — entity not found
  • 500 — temporary server error; retry with backoff

Endpoint Costs

With the free $1/day budget:

Request typeCostDaily limit
Singleton (/works/W123)freeunlimited
List / filter$0.0001~10,000 requests
Search (full-text or semantic)$0.001~1,000 requests
PDF download (content.openalex.org)$0.01~100 downloads

Use select= and per-page=200 to minimize request count.

Common Pitfalls

  • Do not sort by relevance_score without a search query.
  • Do not use nested fields in select (example: use open_access, then parse .open_access.is_oa with jq).
  • Do not filter by entity names directly — use the two-step entity lookup to get the ID first.
  • Do not use sequential calls for batch ID lookups — batch up to 50 with the pipe operator.
  • Do not use per-page=25 (default) for bulk extraction — always set per-page=200.
  • Expect some records to have no downloadable PDF.
  • search= searches full text and can return loosely related results. Use title.search= when the topic must appear in the title.
  • Always write curl commands on a single line — multi-line \ continuation breaks argument parsing in agent environments.
  • title.search is NOT a valid standalone parameter — always pass it inside filter=: filter=title.search:"your query".
  • Always include api_key=$OPENALEX_API_KEY in every request.
  • Never print or echo $OPENALEX_API_KEY to verify it is set — use [[-n "${OPENALEX_API_KEY:-}"]] instead.

Resources

  • Query recipes and jq snippets: references/query-recipes.md
  • Generic query helper: scripts/openalex_query.sh
  • PDF downloader for work IDs: scripts/openalex_download_pdf.sh

平台分布

Codex

36.8%
按下载量换算32

Claude

27.06%
按下载量换算24

Cursor

18.26%
按下载量换算16

Gemini CLI

8.48%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills