shiquda/openalex-skill/openalex
Claude Code and agent skill by shiquda/openalex-skill
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks about academic literature, research papers, scholarly works, authors, citations, institutions, journals, or any academic metadata. Trigger when users want to search for papers, find author profiles, track citations, discover related works, or explore academic topics. Also use when users mention DOIs, ORCIDs, h-index, publication venues, or research metrics.
Install
npx vskill@latest install shiquda/openalex-skill/openalexSKILL.md
OpenAlex CLI Skill
Use the openalex CLI to retrieve academic metadata from the OpenAlex API.
When to Use
Invoke this skill when the user needs to:
- Search for academic papers or scholarly works
- Find information about authors, institutions, or journals
- Track citations (who cited a paper, what a paper references)
- Discover related works or research topics
- Look up metadata by DOI, ORCID, or OpenAlex ID
- Analyze publication trends or research metrics
Initial Setup
First time using this skill? Read references/setup.md for installation and API key configuration.
Prerequisites
The CLI must be built and available. Check with:
If openalex is not installed yet, install it first:
For installation, persistent API key setup, and first-run verification, see references/setup.md.
Core Commands
Entity Types
OpenAlex organizes data into 8 entity types:
works- research papers, articles, preprintsauthors- researchers and their profilessources- journals, conferences, repositoriesinstitutions- universities, research centerstopics- research areas and subjectspublishers- academic publishersfunders- funding organizationsconcepts- (legacy) subject classifications
OpenAlex ID Format
ID format: OpenAlex IDs start with W (e.g., W2626778328). The summary format displays reusable IDs on a secondary line:
Get ID from search results:
⚠️ ID usage restrictions:
cited-by,references, andrelatedsupport both DOI and OpenAlex ID- bare DOIs like
10.1038/nature12373anddoi:10.1038/nature12373are normalized automatically for work lookups and helpers - OpenAlex IDs are still the most reusable follow-up identifiers when chaining multiple commands
Common Operations
Search for papers:
Get specific work by ID or DOI:
Find author:
Get author by ORCID:
Track citations:
Filter and sort:
Autocomplete (for non-works entities):
Group by field:
Download full-text PDF:
The download command tries multiple sources in order:
primary_location.pdf_urlbest_oa_location.pdf_urlopen_access.oa_urlprimary_location.landing_page_urlbest_oa_location.landing_page_url- Any
locations[].pdf_urlorlocations[].landing_page_url
Default filename is based on DOI or OpenAlex ID (sanitized for filesystem safety).
Output Formats
The CLI defaults to summary format. For detailed format options, see references/output-formats.md.
Quick reference:
summary(default) - Concise one-line format, ~2KB for 5 resultsdetail- Human-readable with inline lists for repeated fieldsjson- Full structured payload, ~40KB-268KB per querybibtex- BibTeX entries for work records--field <path>- Client-side projection to extract specific fields--select <field>- Server-side selection to reduce network payload
Common patterns:
Note: --field abstract and --select don't combine well; use --field abstract alone when you need abstract text.
Workflow Patterns
Pattern 1: Quick Paper Search
Pattern 2: Author Research
Pattern 3: Citation Analysis
If cited-by or references returns a 404, verify the work first with openalex works get <id-or-doi>. A valid-looking W... id can still be missing upstream.
Pattern 4: Topic Exploration
Pattern 5: Field Discovery and Extraction
Pattern 6: Handling Noisy or Empty Results
Search too broad? Add filters:
Have a DOI? Use direct lookup:
Pattern 7: Download Full-Text Papers
Download tries multiple sources in order: primary_location.pdf_url, best_oa_location.pdf_url, open_access.oa_url, then landing pages.
`--select` caveats:
- OpenAlex
selectonly supports root-level fields groupandautocompletedo not supportselectabstractandabstract_inverted_indexare not selectable upstream
ORCID format matters:
Tips
- Default format is `summary` - no need to specify unless you want something else
- Use
<entity> fieldscommand to discover available field paths before querying - Use
--fieldprojection to extract specific data efficiently - Use
--selectfor network efficiency when you know which fields you need - Combine
--selectand--fieldfor optimal performance and presentation - Use
--per-pageto control result count (default varies by endpoint) - Use
--allto auto-follow cursor pagination for list-style commands - Filters use
:syntax:field:value,field:>value,field:<value - Sort uses
:syntax:field:ascorfield:desc - DOIs and OpenAlex IDs are interchangeable in most commands
- ORCID filters use bare ORCID value, not the
https://orcid.org/URL form - If author work lookup returns nothing, use
author.orcidinstead ofauthor.id - If
cited-byorreferencesfails with 404, verify the work first withworks get - For some preprint or repository records, the queried DOI and the record DOI may differ; use
detailorjsonwhen provenance matters - Check rate limits with:
openalex rate-limit
Configuration Commands
The CLI supports persistent configuration for API keys and other settings.
View current configuration:
Set API key (recommended):
Other config options:
View config file path:
Remove a setting:
Configuration is stored in ~/.openalex-skill/config.json. Environment variables (OPENALEX_API_KEY, OPENALEX_BASE_URL, OPENALEX_MAILTO) override stored config.
Common Filters
For works:
publication_year:2024orpublication_year:>2020is_oa:true(open access)type:articleortype:reviewauthor.id:A5070829652author.orcid:0000-0002-3141-5845- institution-related filters are passed through as-is; verify the exact OpenAlex path with
--format jsonif needed primary_location.source.id:S123456(journal)
For authors:
last_known_institutions.id:I123456works_count:>100
Error Handling
If a command fails:
- Check the entity type is correct (
works,authors, etc.) - Verify ID format (OpenAlex IDs start with W/A/S/I/T/P/F/C)
- Check filter syntax (use
:not=) - Try with
--format jsonto see full error details - If search results are empty, retry with broader keywords
- If author lookup fails, verify ORCID format (bare value, not URL)
- Use DOI direct lookup when you know the exact paper
- If a work helper 404s, the identifier may be valid in shape but absent in OpenAlex
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/openalex/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shiquda/openalex-skill/openalex)