openalex
What it does
This skill searches the OpenAlex academic database for papers and their metadata. It is for researchers who need citation data, affiliations, or funding details.
When to use it
- βWhen you need open citation data for a set of papers.
- βWhen you want to know which institutions or funders support a line of work.
- βWhen you want metadata such as topics, keywords, or open access status for papers.
Skill link
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/openalex/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to search OpenAlex for papers on federated learning, sorted by citation count, with their funders listed.β
5 new skills a week. 1 minute to read.
How it works
The agent sends your query to the OpenAlex API and returns matching works with their metadata. You can set the number of results and the sort order.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
OpenAlex Academic Search
Search query: $ARGUMENTS
Role & Positioning
This skill uses OpenAlex as a comprehensive open academic graph source:
| Skill | Source | Best for |
|---|---|---|
/arxiv |
arXiv API | Latest preprints, cutting-edge unrefereed work |
/semantic-scholar |
Semantic Scholar API | Published venue papers (IEEE, ACM, Springer) with citation counts |
/openalex |
OpenAlex API | Open citation graph, institutional affiliations, funding data, comprehensive metadata |
/deepxiv |
DeepXiv CLI | Layered reading: search, brief, section map, section reads |
/exa-search |
Exa API | Broad web search: blogs, docs, news, companies, research papers |
/gemini-search |
Gemini MCP / CLI | AI-powered broad literature discovery |
Use OpenAlex when you want:
- Open citation data β fully open citation graph (no API key required for basic use)
- Institutional affiliations β author institutions and collaborations
- Funding information β NSF, NIH, and other funding sources
- Comprehensive metadata β topics, keywords, abstract, open access status
- Cross-database coverage β indexes 250M+ works from multiple sources
Constants
- MAX_RESULTS = 10 β Default number of results. Override with
β max: 20. - DEFAULT_SORT = relevance β Sort by relevance. Override with
β sort: citationsorβ sort: date. - OPENALEX_FETCHER β canonical name
openalex_fetch.py, resolved pershared-references/integration-contract.mdΒ§2 (Policy D1 β standalone/openalexhas no documented inline fallback, so unresolved helper terminates with an explicit error).
Overrides (append to arguments):
/openalex "topic" β max: 20β return up to 20 results/openalex "topic" β year: 2023-β papers from 2023 onward/openalex "topic" β year: 2020-2023β papers from 2020 to 2023/openalex "topic" β type: articleβ only journal articles/openalex "topic" β type: preprintβ only preprints/openalex "topic" β open-accessβ only open access papers/openalex "topic" β min-citations: 50β minimum 50 citations/openalex "topic" β sort: citationsβ sort by citation count (descending)/openalex "topic" β sort: dateβ sort by publication date (newest first)
Setup
Prerequisites
Python 3.7+ with
requestslibrary:pip install requestsOptional: API key and email β Set the variables you use in the same shell before starting Claude Code so helper commands inherit them:
export OPENALEX_API_KEY='your-key-here' export OPENALEX_EMAIL='your-email@example.com' claudeThe helper reads
OPENALEX_API_KEYandOPENALEX_EMAILfrom its process environment. A separate tool-shellexportdoes not update an already running host. If you keep credentials in an environment file, load it explicitly before starting the host rather than relying on automatic.envloading.Get API keys (optional but recommended):
- OpenAlex API key: Free tier $1/day (10,000 list calls, 1,000 search calls) from openalex.org
- Email for polite pool: Faster response times (no registration needed)
Verify Setup
python3 "$OPENALEX_FETCHER" search "machine learning" --max 3
(Resolve $OPENALEX_FETCHER via the canonical chain first β see Step 2 below.)
Workflow
Step 1: Parse Arguments
Parse $ARGUMENTS for:
- query: The research topic (required)
- max: Override MAX_RESULTS
- year: Publication year filter (e.g.,
2023-,2020-2023) - type: Work type filter (
article,preprint,book,book-chapter,dataset,dissertation) - open-access: Only include open access papers
- min-citations: Minimum citation count threshold
- sort: Sort order (
relevance,citations,date)
Step 2: Locate Script
Resolve $OPENALEX_FETCHER via the canonical strict-safe chain (see
shared-references/integration-contract.md Β§2).
Policy D1: there is no native inline fallback for OpenAlex
(retrieval requires the requests SDK + optional API key β the
fetcher script encapsulates pagination, throttling, and per-source
parameters), so unresolved helper terminates with explicit remediation.
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .
FAQ
Does it need an API key?
The skill says basic use does not need an API key.
How many results does it return?
The default is ten, and you can set a different number with the max option.
How can I sort the results?
By default they are sorted by relevance, and you can sort by citations or by date instead.
Details
Original description by the author
Search academic papers via OpenAlex API for open citation data, institutional affiliations, and funding information. Use when user says "openalex search", "search openalex", "open citation graph", or wants comprehensive academic metadata beyond arXiv/Semantic Scholar.
Popularity
- GitHub stars
- 18k
- Ranking position
- #10556
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
ablation-planner
18kHelps your agent plan ablation studies for a paper, choosing the tests reviewers are likely to ask for once the main results look good.
alphaxiv
18kLets your agent quickly read one research paper using AlphaXiv summaries, with full text or LaTeX source as backup, from an arXiv link or ID.
analyze-results
18kHelps your agent analyze machine learning experiment results, compare runs against a baseline, and turn the numbers into clear findings and next steps.
arxiv
18kLets your agent search arXiv for academic papers, read their details, and save PDFs to your library for a research topic.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.