AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Literature Search Openalex

skill-google-deepmind-science-skills-literature-search-openalex · by google-deepmind

>

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-google-deepmind-science-skills-literature-search-openalex

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-google-deepmind-science-skills-literature-search-openalex)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Literature Search Openalex? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

OpenAlex Skill

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure

uv is installed and on PATH.

  1. User Notification: If LICENSE_NOTIFICATION.txt does not already exist in

this skill directory then (1) prominently notify the user to check the terms at https://developers.openalex.org/ and to always check the license of the papers retrieved by the skill for any restrictions, then (2) create the file recording the notification text and timestamp.

  1. .env file: Make sure the .env file exists in your home directory.

Create one if it does not exist.

  1. OPENALEX_API_KEY (optional but recommended): Enables the OpenAlex

Premium API with higher rate limits. The skill works without it (using the free "polite pool"). If the variable is missing from .env, do NOT ask the user to paste it into the chat (this would leak the key into the agent's context). Instead, give the user this command — substituting ENV_FILE with the resolved literal path to the .env file:

``bash printf "Enter OpenAlex API key (typing hidden): " && read -s key && echo && echo "OPENALEX_API_KEY=$key" >> "ENV_FILE" && echo "Saved." ``

The scripts load credentials automatically via dotenv. NEVER read, print, or inspect the .env file or its variables (e.g. no cat, grep, echo, printenv, or os.environ.get on keys). Credentials must stay out of the agent's context. See the [Rate Limits section](#rate-limits) for more details.

Core Rules

  1. List Sources. If this skill is used, ensure this is mentioned in the

output AND list the URLs of all papers that were used in producing the output.

  1. Resolve before filter. NEVER filter by name. Always resolve a name to

an ID first, then use that ID in --filter.

  1. Use the CLI only. Never call the API via curl/urllib. The CLI

handles retries and rate limiting.

  1. No fabrication. Never invent OpenAlex IDs or DOIs. Use resolve/get

to look them up. Report empty results accurately.

  1. API key. If a command returns 401/429 or you need high-volume queries,

follow the prerequisite instructions above to help the user add OPENALEX_API_KEY to the .env file. Keys are at OpenAlex.org → account settings.

  1. Keep output small. Always use --select and --per-page 5–10 for

overview queries. Pipe filter output to a file (> results.json), then slim with jq before reading into context.

Rate Limits

  • With key: ~10 req/s, $1/day free budget.
  • Without key: Very limited, $0.01/day budget.

Operation | Cost ---------------------- | ------- Singleton get | Free filter | $0.0001 --search / resolve | $0.001 download-pdf | $0.01

CLI Reference

uv run scripts/openalex_cli.py [--api-key KEY]  [flags]

Entity types (shared across commands): works, authors, sources, institutions, topics, domains, fields, subfields, sdgs, countries, continents, languages, keywords, publishers, funders, work-types, source-types, institution-types, licenses

Commands

resolve — Name → ID candidates. Returns id, display_name, hint. Use --per-page N for more candidates.

get — Full metadata for one entity. Accepts short ID (W2741809807), full URL, or DOI URL. Use --select to limit fields.

filter `` — Search/filter entities. Key flags are:

  • --search : Full-text search (10× cost of --filter)
  • --filter : Filter expressions. Use , for AND and | for OR.
  • --sort : Sort results (e.g., cited_by_count:desc)
  • --select : Limit the fields returned in the output.
  • --group-by : Aggregate results by a specific field.
  • --per-page : Number of results per page (default 25, max 100).
  • --page : Specify the page number to retrieve.
  • --sample : Get a random sample of up to 10,000 results.
  • --seed : Seed for reproducible sampling.

download-pdf — Download PDF (requires API key). Falls back to alternative pdf_url locations if primary fails. Whenever you download a PDF, verify it is not empty or corrupted.

rate-limit — Check current rate limit status (requires API key).

Search Tips

  • If resolve returns no matches, try alternate spellings or abbreviations.
  • If --search returns 0 results, try broader terms (max 3 retries).
  • If resolve returns multiple candidates, present them to the user with

display_name and hint for manual selection.

Entity References

Consult references/ for valid filter, sort, and group-by fields per entity:

  • [Works](references/works.md) — [Authors](references/authors.md) —

[Sources](references/sources.md)

  • [Institutions](references/institutions.md) — [Topics](references/topics.md)

— [Taxonomy](references/taxonomy.md)

  • [Geo & Language](references/geoandlanguage.md) —

[Publishers & Funders](references/publishers_funders.md)

  • [Type Values](references/type_values.md)

Common Workflows

# Author's works (resolve → filter)
uv run scripts/openalex_cli.py resolve authors "Geoffrey Hinton"
uv run scripts/openalex_cli.py filter works \
  --filter "authorships.author.id:A5108093963" \
  --sort "cited_by_count:desc" --per-page 10 > papers.json
cat papers.json | jq '[.results[] | {id, title: .display_name, year: .publication_year, citations: .cited_by_count}]'

# DOI lookup
uv run scripts/openalex_cli.py get works "https://doi.org/10.1038/s41586-021-03819-2"

# Bulk DOI lookup (up to 100)
uv run scripts/openalex_cli.py filter works \
  --filter "doi:10.1234/a|10.1234/b|10.1234/c" --per-page 100 > results.json

# Institutional impact by year
uv run scripts/openalex_cli.py resolve institutions "MIT"
uv run scripts/openalex_cli.py filter works \
  --filter "authorships.institutions.id:I63966007" \
  --group-by "publication_year" > mit_by_year.json

# Random sample
uv run scripts/openalex_cli.py filter works \
  --filter "publication_year:2023,is_oa:true" \
  --sample 100 --seed 42 > results.json

Error Handling

Code | Meaning | Action ---- | ------------------- | ------------------------------------------------ 401 | Unauthorized | Help user add API key to .env (see prereqs) 403 | Plan upgrade needed | Inform user; see https://openalex.org/pricing 404 | Not found | Verify ID; try resolve first 429 | Rate limited | Wait and retry; suggest adding API key to .env

Known premium-only filters: from_updated_date, to_updated_date.

Never fabricate results on empty responses — report accurately and suggest alternate search terms.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.