[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79XQ2WR5C5EPRKKHC3ES4MQ":3,"skill-same:01M79XQ2WR5C5EPRKKHC3ES4MQ":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M79XQ2WR5C5EPRKKHC3ES4MQ","openalex-database",null,"Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly works. Use for literature searches, research output analysis, citation analysis, and academic database queries.","KrismithReddy12\u002Fclaude-code-templates","KrismithReddy12","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182916557?v=4","01M79T8DNGJRHG48G3H3Q02MK8","01M79TA8ZWV2PP7R4ARWVYWZFE",0,"MIT","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: openalex-database\ndescription: Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly works. Use for literature searches, research output analysis, citation analysis, and academic database queries.\n---\n\n# OpenAlex Database\n\n## Overview\n\nOpenAlex is a comprehensive open catalog of 240M+ scholarly works, authors, institutions, topics, sources, publishers, and funders. This skill provides tools and workflows for querying the OpenAlex API to search literature, analyze research output, track citations, and conduct bibliometric studies.\n\n## Quick Start\n\n### Basic Setup\n\nAlways initialize the client with an email address to access the polite pool (10x rate limit boost):\n\n```python\nfrom scripts.openalex_client import OpenAlexClient\n\nclient = OpenAlexClient(email=\"your-email@example.edu\")\n```\n\n### Installation Requirements\n\nInstall required package using uv:\n\n```bash\nuv pip install requests\n```\n\nNo API key required - OpenAlex is completely open.\n\n## Core Capabilities\n\n### 1. Search for Papers\n\n**Use for**: Finding papers by title, abstract, or topic\n\n```python\n# Simple search\nresults = client.search_works(\n    search=\"machine learning\",\n    per_page=100\n)\n\n# Search with filters\nresults = client.search_works(\n    search=\"CRISPR gene editing\",\n    filter_params={\n        \"publication_year\": \">2020\",\n        \"is_oa\": \"true\"\n    },\n    sort=\"cited_by_count:desc\"\n)\n```\n\n### 2. Find Works by Author\n\n**Use for**: Getting all publications by a specific researcher\n\nUse the two-step pattern (entity name → ID → works):\n\n```python\nfrom scripts.query_helpers import find_author_works\n\nworks = find_author_works(\n    author_name=\"Jennifer Doudna\",\n    client=client,\n    limit=100\n)\n```\n\n**Manual two-step approach**:\n```python\n# Step 1: Get author ID\nauthor_response = client._make_request(\n    '\u002Fauthors',\n    params={'search': 'Jennifer Doudna', 'per-page': 1}\n)\nauthor_id = author_response['results'][0]['id'].split('\u002F')[-1]\n\n# Step 2: Get works\nworks = client.search_works(\n    filter_params={\"authorships.author.id\": author_id}\n)\n```\n\n### 3. Find Works from Institution\n\n**Use for**: Analyzing research output from universities or organizations\n\n```python\nfrom scripts.query_helpers import find_institution_works\n\nworks = find_institution_works(\n    institution_name=\"Stanford University\",\n    client=client,\n    limit=200\n)\n```\n\n### 4. Highly Cited Papers\n\n**Use for**: Finding influential papers in a field\n\n```python\nfrom scripts.query_helpers import find_highly_cited_recent_papers\n\npapers = find_highly_cited_recent_papers(\n    topic=\"quantum computing\",\n    years=\">2020\",\n    client=client,\n    limit=100\n)\n```\n\n### 5. Open Access Papers\n\n**Use for**: Finding freely available research\n\n```python\nfrom scripts.query_helpers import get_open_access_papers\n\npapers = get_open_access_papers(\n    search_term=\"climate change\",\n    client=client,\n    oa_status=\"any\",  # or \"gold\", \"green\", \"hybrid\", \"bronze\"\n    limit=200\n)\n```\n\n### 6. Publication Trends Analysis\n\n**Use for**: Tracking research output over time\n\n```python\nfrom scripts.query_helpers import get_publication_trends\n\ntrends = get_publication_trends(\n    search_term=\"artificial intelligence\",\n    filter_params={\"is_oa\": \"true\"},\n    client=client\n)\n\n# Sort and display\nfor trend in sorted(trends, key=lambda x: x['key'])[-10:]:\n    print(f\"{trend['key']}: {trend['count']} publications\")\n```\n\n### 7. Research Output Analysis\n\n**Use for**: Comprehensive analysis of author or institution research\n\n```python\nfrom scripts.query_helpers import analyze_research_output\n\nanalysis = analyze_research_output(\n    entity_type='institution',  # or 'author'\n    entity_name='MIT',\n    client=client,\n    years='>2020'\n)\n\nprint(f\"Total works: {analysis['total_works']}\")\nprint(f\"Open access: {analysis['open_access_percentage']}%\")\nprint(f\"Top topics: {analysis['top_topics'][:5]}\")\n```\n\n### 8. Batch Lookups\n\n**Use for**: Getting information for multiple DOIs, ORCIDs, or IDs efficiently\n\n```python\ndois = [\n    \"https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-021-03819-2\",\n    \"https:\u002F\u002Fdoi.org\u002F10.1126\u002Fscience.abc1234\",\n    # ... up to 50 DOIs\n]\n\nworks = client.batch_lookup(\n    entity_type='works',\n    ids=dois,\n    id_field='doi'\n)\n```\n\n### 9. Random Sampling\n\n**Use for**: Getting representative samples for analysis\n\n```python\n# Small sample\nworks = client.sample_works(\n    sample_size=100,\n    seed=42,  # For reproducibility\n    filter_params={\"publication_year\": \"2023\"}\n)\n\n# Large sample (>10k) - automatically handles multiple requests\nworks = client.sample_works(\n    sample_size=25000,\n    seed=42,\n    filter_params={\"is_oa\": \"true\"}\n)\n```\n\n### 10. Citation Analysis\n\n**Use for**: Finding papers that cite a specific work\n\n```python\n# Get the work\nwork = client.get_entity('works', 'https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-021-03819-2')\n\n# Get citing papers using cited_by_api_url\nimport requests\nciting_response = requests.get(\n    work['cited_by_api_url'],\n    params={'mailto': client.email, 'per-page': 200}\n)\nciting_works = citing_response.json()['results']\n```\n\n### 11. Topic and Subject Analysis\n\n**Use for**: Understanding research focus areas\n\n```python\n# Get top topics for an institution\ntopics = client.group_by(\n    entity_type='works',\n    group_field='topics.id',\n    filter_params={\n        \"authorships.institutions.id\": \"I136199984\",  # MIT\n        \"publication_year\": \">2020\"\n    }\n)\n\nfor topic in topics[:10]:\n    print(f\"{topic['key_display_name']}: {topic['count']} works\")\n```\n\n### 12. Large-Scale Data Extraction\n\n**Use for**: Downloading large datasets for analysis\n\n```python\n# Paginate through all results\nall_papers = client.paginate_all(\n    endpoint='\u002Fworks',\n    params={\n        'search': 'synthetic biology',\n        'filter': 'publication_year:2020-2024'\n    },\n    max_results=10000\n)\n\n# Export to CSV\nimport csv\nwith open('papers.csv', 'w', newline='', encoding='utf-8') as f:\n    writer = csv.writer(f)\n    writer.writerow(['Title', 'Year', 'Citations', 'DOI', 'OA Status'])\n\n    for paper in all_papers:\n        writer.writerow([\n            paper.get('title', 'N\u002FA'),\n            paper.get('publication_year', 'N\u002FA'),\n            paper.get('cited_by_count', 0),\n            paper.get('doi', 'N\u002FA'),\n            paper.get('open_access', {}).get('oa_status', 'closed')\n        ])\n```\n\n## Critical Best Practices\n\n### Always Use Email for Polite Pool\nAdd email to get 10x rate limit (1 req\u002Fsec → 10 req\u002Fsec):\n```python\nclient = OpenAlexClient(email=\"your-email@example.edu\")\n```\n\n### Use Two-Step Pattern for Entity Lookups\nNever filter by entity names directly - always get ID first:\n```python\n# ✅ Correct\n# 1. Search for entity → get ID\n# 2. Filter by ID\n\n# ❌ Wrong\n# filter=author_name:Einstein  # This doesn't work!\n```\n\n### Use Maximum Page Size\nAlways use `per-page=200` for efficient data retrieval:\n```python\nresults = client.search_works(search=\"topic\", per_page=200)\n```\n\n### Batch Multiple IDs\nUse batch_lookup() for multiple IDs instead of individual requests:\n```python\n# ✅ Correct - 1 request for 50 DOIs\nworks = client.batch_lookup('works', doi_list, 'doi')\n\n# ❌ Wrong - 50 separate requests\nfor doi in doi_list:\n    work = client.get_entity('works', doi)\n```\n\n### Use Sample Parameter for Random Data\nUse `sample_works()` with seed for reproducible random sampling:\n```python\n# ✅ Correct\nworks = client.sample_works(sample_size=100, seed=42)\n\n# ❌ Wrong - random page numbers bias results\n# Using random page numbers doesn't give true random sample\n```\n\n### Select Only Needed Fields\nReduce response size by selecting specific fields:\n```python\nresults = client.search_works(\n    search=\"topic\",\n    select=['id', 'title', 'publication_year', 'cited_by_count']\n)\n```\n\n## Common Filter Patterns\n\n### Date Ranges\n```python\n# Single year\nfilter_params={\"publication_year\": \"2023\"}\n\n# After year\nfilter_params={\"publication_year\": \">2020\"}\n\n# Range\nfilter_params={\"publication_year\": \"2020-2024\"}\n```\n\n### Multiple Filters (AND)\n```python\n# All conditions must match\nfilter_params={\n    \"publication_year\": \">2020\",\n    \"is_oa\": \"true\",\n    \"cited_by_count\": \">100\"\n}\n```\n\n### Multiple Values (OR)\n```python\n# Any institution matches\nfilter_params={\n    \"authorships.institutions.id\": \"I136199984|I27837315\"  # MIT or Harvard\n}\n```\n\n### Collaboration (AND within attribute)\n```python\n# Papers with authors from BOTH institutions\nfilter_params={\n    \"authorships.institutions.id\": \"I136199984+I27837315\"  # MIT AND Harvard\n}\n```\n\n### Negation\n```python\n# Exclude type\nfilter_params={\n    \"type\": \"!paratext\"\n}\n```\n\n## Entity Types\n\nOpenAlex provides these entity types:\n- **works** - Scholarly documents (articles, books, datasets)\n- **authors** - Researchers with disambiguated identities\n- **institutions** - Universities and research organizations\n- **sources** - Journals, repositories, conferences\n- **topics** - Subject classifications\n- **publishers** - Publishing organizations\n- **funders** - Funding agencies\n\nAccess any entity type using consistent patterns:\n```python\nclient.search_works(...)\nclient.get_entity('authors', author_id)\nclient.group_by('works', 'topics.id', filter_params={...})\n```\n\n## External IDs\n\nUse external identifiers directly:\n```python\n# DOI for works\nwork = client.get_entity('works', 'https:\u002F\u002Fdoi.org\u002F10.7717\u002Fpeerj.4375')\n\n# ORCID for authors\nauthor = client.get_entity('authors', 'https:\u002F\u002Forcid.org\u002F0000-0003-1613-5981')\n\n# ROR for institutions\ninstitution = client.get_entity('institutions', 'https:\u002F\u002Fror.org\u002F02y3ad647')\n\n# ISSN for sources\nsource = client.get_entity('sources', 'issn:0028-0836')\n```\n\n## Reference Documentation\n\n### Detailed API Reference\nSee `references\u002Fapi_guide.md` for:\n- Complete filter syntax\n- All available endpoints\n- Response structures\n- Error handling\n- Performance optimization\n- Rate limiting details\n\n### Common Query Examples\nSee `references\u002Fcommon_queries.md` for:\n- Complete working examples\n- Real-world use cases\n- Complex query patterns\n- Data export workflows\n- Multi-step analysis procedures\n\n## Scripts\n\n### openalex_client.py\nMain API client with:\n- Automatic rate limiting\n- Exponential backoff retry logic\n- Pagination support\n- Batch operations\n- Error handling\n\nUse for direct API access with full control.\n\n### query_helpers.py\nHigh-level helper functions for common operations:\n- `find_author_works()` - Get papers by author\n- `find_institution_works()` - Get papers from institution\n- `find_highly_cited_recent_papers()` - Get influential papers\n- `get_open_access_papers()` - Find OA publications\n- `get_publication_trends()` - Analyze trends over time\n- `analyze_research_output()` - Comprehensive analysis\n\nUse for common research queries with simplified interfaces.\n\n## Troubleshooting\n\n### Rate Limiting\nIf encountering 403 errors:\n1. Ensure email is added to requests\n2. Verify not exceeding 10 req\u002Fsec\n3. Client automatically implements exponential backoff\n\n### Empty Results\nIf searches return no results:\n1. Check filter syntax (see `references\u002Fapi_guide.md`)\n2. Use two-step pattern for entity lookups (don't filter by names)\n3. Verify entity IDs are correct format\n\n### Timeout Errors\nFor large queries:\n1. Use pagination with `per-page=200`\n2. Use `select=` to limit returned fields\n3. Break into smaller queries if needed\n\n## Rate Limits\n\n- **Default**: 1 request\u002Fsecond, 100k requests\u002Fday\n- **Polite pool (with email)**: 10 requests\u002Fsecond, 100k requests\u002Fday\n\nAlways use polite pool for production workflows by providing email to client.\n\n## Notes\n\n- No authentication required\n- All data is open and free\n- Rate limits apply globally, not per IP\n- Use LitLLM with OpenRouter if LLM-based analysis is needed (don't use Perplexity API directly)\n- Client handles pagination, retries, and rate limiting automatically\n","# OpenAlex Database\n\n## Overview\n\nOpenAlex is a comprehensive open catalog of 240M+ scholarly works, authors, institutions, topics, sources, publishers, and funders. This skill provides tools and workflows for querying the OpenAlex API to search literature, analyze research output, track citations, and conduct bibliometric studies.\n\n## Quick Start\n\n### Basic Setup\n\nAlways initialize the client with an email address to access the polite pool (10x rate limit boost):\n\n```python\nfrom scripts.openalex_client import OpenAlexClient\n\nclient = OpenAlexClient(email=\"your-email@example.edu\")\n```\n\n### Installation Requirements\n\nInstall required package using uv:\n\n```bash\nuv pip install requests\n```\n\nNo API key required - OpenAlex is completely open.\n\n## Core Capabilities\n\n### 1. Search for Papers\n\n**Use for**: Finding papers by title, abstract, or topic\n\n```python\n# Simple search\nresults = client.search_works(\n    search=\"machine learning\",\n    per_page=100\n)\n\n# Search with filters\nresults = client.search_works(\n    search=\"CRISPR gene editing\",\n    filter_params={\n        \"publication_year\": \">2020\",\n        \"is_oa\": \"true\"\n    },\n    sort=\"cited_by_count:desc\"\n)\n```\n\n### 2. Find Works by Author\n\n**Use for**: Getting all publications by a specific researcher\n\nUse the two-step pattern (entity name → ID → works):\n\n```python\nfrom scripts.query_helpers import find_author_works\n\nworks = find_author_works(\n    author_name=\"Jennifer Doudna\",\n    client=client,\n    limit=100\n)\n```\n\n**Manual two-step approach**:\n```python\n# Step 1: Get author ID\nauthor_response = client._make_request(\n    '\u002Fauthors',\n    params={'search': 'Jennifer Doudna', 'per-page': 1}\n)\nauthor_id = author_response['results'][0]['id'].split('\u002F')[-1]\n\n# Step 2: Get works\nworks = client.search_works(\n    filter_params={\"authorships.author.id\": author_id}\n)\n```\n\n### 3. Find Works from Institution\n\n**Use for**: Analyzing research output from universities or organizations\n\n```python\nfrom scripts.query_helpers import find_institution_works\n\nworks = find_institution_works(\n    institution_name=\"Stanford University\",\n    client=client,\n    limit=200\n)\n```\n\n### 4. Highly Cited Papers\n\n**Use for**: Finding influential papers in a field\n\n```python\nfrom scripts.query_helpers import find_highly_cited_recent_papers\n\npapers = find_highly_cited_recent_papers(\n    topic=\"quantum computing\",\n    years=\">2020\",\n    client=client,\n    limit=100\n)\n```\n\n### 5. Open Access Papers\n\n**Use for**: Finding freely available research\n\n```python\nfrom scripts.query_helpers import get_open_access_papers\n\npapers = get_open_access_papers(\n    search_term=\"climate change\",\n    client=client,\n    oa_status=\"any\",  # or \"gold\", \"green\", \"hybrid\", \"bronze\"\n    limit=200\n)\n```\n\n### 6. Publication Trends Analysis\n\n**Use for**: Tracking research output over time\n\n```python\nfrom scripts.query_helpers import get_publication_trends\n\ntrends = get_publication_trends(\n    search_term=\"artificial intelligence\",\n    filter_params={\"is_oa\": \"true\"},\n    client=client\n)\n\n# Sort and display\nfor trend in sorted(trends, key=lambda x: x['key'])[-10:]:\n    print(f\"{trend['key']}: {trend['count']} publications\")\n```\n\n### 7. Research Output Analysis\n\n**Use for**: Comprehensive analysis of author or institution research\n\n```python\nfrom scripts.query_helpers import analyze_research_output\n\nanalysis = analyze_research_output(\n    entity_type='institution',  # or 'author'\n    entity_name='MIT',\n    client=client,\n    years='>2020'\n)\n\nprint(f\"Total works: {analysis['total_works']}\")\nprint(f\"Open access: {analysis['open_access_percentage']}%\")\nprint(f\"Top topics: {analysis['top_topics'][:5]}\")\n```\n\n### 8. Batch Lookups\n\n**Use for**: Getting information for multiple DOIs, ORCIDs, or IDs efficiently\n\n```python\ndois = [\n    \"https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-021-03819-2\",\n    \"https:\u002F\u002Fdoi.org\u002F10.1126\u002Fscience.abc1234\",\n    # ... up to 50 DOIs\n]\n\nworks = client.batch_lookup(\n    entity_type='works',\n    ids=dois,\n    id_field='doi'\n)\n```\n\n### 9. Random Sampling\n\n**Use for**: Getting representative samples for analysis\n\n```python\n# Small sample\nworks = client.sample_works(\n    sample_size=100,\n    seed=42,  # For reproducibility\n    filter_params={\"publication_year\": \"2023\"}\n)\n\n# Large sample (>10k) - automatically handles multiple requests\nworks = client.sample_works(\n    sample_size=25000,\n    seed=42,\n    filter_params={\"is_oa\": \"true\"}\n)\n```\n\n### 10. Citation Analysis\n\n**Use for**: Finding papers that cite a specific work\n\n```python\n# Get the work\nwork = client.get_entity('works', 'https:\u002F\u002Fdoi.org\u002F10.1038\u002Fs41586-021-03819-2')\n\n# Get citing papers using cited_by_api_url\nimport requests\nciting_response = requests.get(\n    work['cited_by_api_url'],\n    params={'mailto': client.email, 'per-page': 200}\n)\nciting_works = citing_response.json()['results']\n```\n\n### 11. Topic and Subject Analysis\n\n**Use for**: Understanding research focus areas\n\n```python\n# Get top topics for an institution\ntopics = client.group_by(\n    entity_type='works',\n    group_field='topics.id',\n    filter_params={\n        \"authorships.institutions.id\": \"I136199984\",  # MIT\n        \"publication_year\": \">2020\"\n    }\n)\n\nfor topic in topics[:10]:\n    print(f\"{topic['key_display_name']}: {topic['count']} works\")\n```\n\n### 12. Large-Scale Data Extraction\n\n**Use for**: Downloading large datasets for analysis\n\n```python\n# Paginate through all results\nall_papers = client.paginate_all(\n    endpoint='\u002Fworks',\n    params={\n        'search': 'synthetic biology',\n        'filter': 'publication_year:2020-2024'\n    },\n    max_results=10000\n)\n\n# Export to CSV\nimport csv\nwith open('papers.csv', 'w', newline='', encoding='utf-8') as f:\n    writer = csv.writer(f)\n    writer.writerow(['Title', 'Year', 'Citations', 'DOI', 'OA Status'])\n\n    for paper in all_papers:\n        writer.writerow([\n            paper.get('title', 'N\u002FA'),\n            paper.get('publication_year', 'N\u002FA'),\n            paper.get('cited_by_count', 0),\n            paper.get('doi', 'N\u002FA'),\n            paper.get('open_access', {}).get('oa_status', 'closed')\n        ])\n```\n\n## Critical Best Practices\n\n### Always Use Email for Polite Pool\nAdd email to get 10x rate limit (1 req\u002Fsec → 10 req\u002Fsec):\n```python\nclient = OpenAlexClient(email=\"your-email@example.edu\")\n```\n\n### Use Two-Step Pattern for Entity Lookups\nNever filter by entity names directly - always get ID first:\n```python\n# ✅ Correct\n# 1. Search for entity → get ID\n# 2. Filter by ID\n\n# ❌ Wrong\n# filter=author_name:Einstein  # This doesn't work!\n```\n\n### Use Maximum Page Size\nAlways use `per-page=200` for efficient data retrieval:\n```python\nresults = client.search_works(search=\"topic\", per_page=200)\n```\n\n### Batch Multiple IDs\nUse batch_lookup() for multiple IDs instead of individual requests:\n```python\n# ✅ Correct - 1 request for 50 DOIs\nworks = client.batch_lookup('works', doi_list, 'doi')\n\n# ❌ Wrong - 50 separate requests\nfor doi in doi_list:\n    work = client.get_entity('works', doi)\n```\n\n### Use Sample Parameter for Random Data\nUse `sample_works()` with seed for reproducible random sampling:\n```python\n# ✅ Correct\nworks = client.sample_works(sample_size=100, seed=42)\n\n# ❌ Wrong - random page numbers bias results\n# Using random page numbers doesn't give true random sample\n```\n\n### Select Only Needed Fields\nReduce response size by selecting specific fields:\n```python\nresults = client.search_works(\n    search=\"topic\",\n    select=['id', 'title', 'publication_year', 'cited_by_count']\n)\n```\n\n## Common Filter Patterns\n\n### Date Ranges\n```python\n# Single year\nfilter_params={\"publication_year\": \"2023\"}\n\n# After year\nfilter_params={\"publication_year\": \">2020\"}\n\n# Range\nfilter_params={\"publication_year\": \"2020-2024\"}\n```\n\n### Multiple Filters (AND)\n```python\n# All conditions must match\nfilter_params={\n    \"publication_year\": \">2020\",\n    \"is_oa\": \"true\",\n    \"cited_by_count\": \">100\"\n}\n```\n\n### Multiple Values (OR)\n```python\n# Any institution matches\nfilter_params={\n    \"authorships.institutions.id\": \"I136199984|I27837315\"  # MIT or Harvard\n}\n```\n\n### Collaboration (AND within attribute)\n```python\n# Papers with authors from BOTH institutions\nfilter_params={\n    \"authorships.institutions.id\": \"I136199984+I27837315\"  # MIT AND Harvard\n}\n```\n\n### Negation\n```python\n# Exclude type\nfilter_params={\n    \"type\": \"!paratext\"\n}\n```\n\n## Entity Types\n\nOpenAlex provides these entity types:\n- **works** - Scholarly documents (articles, books, datasets)\n- **authors** - Researchers with disambiguated identities\n- **institutions** - Universities and research organizations\n- **sources** - Journals, repositories, conferences\n- **topics** - Subject classifications\n- **publishers** - Publishing organizations\n- **funders** - Funding agencies\n\nAccess any entity type using consistent patterns:\n```python\nclient.search_works(...)\nclient.get_entity('authors', author_id)\nclient.group_by('works', 'topics.id', filter_params={...})\n```\n\n## External IDs\n\nUse external identifiers directly:\n```python\n# DOI for works\nwork = client.get_entity('works', 'https:\u002F\u002Fdoi.org\u002F10.7717\u002Fpeerj.4375')\n\n# ORCID for authors\nauthor = client.get_entity('authors', 'https:\u002F\u002Forcid.org\u002F0000-0003-1613-5981')\n\n# ROR for institutions\ninstitution = client.get_entity('institutions', 'https:\u002F\u002Fror.org\u002F02y3ad647')\n\n# ISSN for sources\nsource = client.get_entity('sources', 'issn:0028-0836')\n```\n\n## Reference Documentation\n\n### Detailed API Reference\nSee `references\u002Fapi_guide.md` for:\n- Complete filter syntax\n- All available endpoints\n- Response structures\n- Error handling\n- Performance optimization\n- Rate limiting details\n\n### Common Query Examples\nSee `references\u002Fcommon_queries.md` for:\n- Complete working examples\n- Real-world use cases\n- Complex query patterns\n- Data export workflows\n- Multi-step analysis procedures\n\n## Scripts\n\n### openalex_client.py\nMain API client with:\n- Automatic rate limiting\n- Exponential backoff retry logic\n- Pagination support\n- Batch operations\n- Error handling\n\nUse for direct API access with full control.\n\n### query_helpers.py\nHigh-level helper functions for common operations:\n- `find_author_works()` - Get papers by author\n- `find_institution_works()` - Get papers from institution\n- `find_highly_cited_recent_papers()` - Get influential papers\n- `get_open_access_papers()` - Find OA publications\n- `get_publication_trends()` - Analyze trends over time\n- `analyze_research_output()` - Comprehensive analysis\n\nUse for common research queries with simplified interfaces.\n\n## Troubleshooting\n\n### Rate Limiting\nIf encountering 403 errors:\n1. Ensure email is added to requests\n2. Verify not exceeding 10 req\u002Fsec\n3. Client automatically implements exponential backoff\n\n### Empty Results\nIf searches return no results:\n1. Check filter syntax (see `references\u002Fapi_guide.md`)\n2. Use two-step pattern for entity lookups (don't filter by names)\n3. Verify entity IDs are correct format\n\n### Timeout Errors\nFor large queries:\n1. Use pagination with `per-page=200`\n2. Use `select=` to limit returned fields\n3. Break into smaller queries if needed\n\n## Rate Limits\n\n- **Default**: 1 request\u002Fsecond, 100k requests\u002Fday\n- **Polite pool (with email)**: 10 requests\u002Fsecond, 100k requests\u002Fday\n\nAlways use polite pool for production workflows by providing email to client.\n\n## Notes\n\n- No authentication required\n- All data is open and free\n- Rate limits apply globally, not per IP\n- Use LitLLM with OpenRouter if LLM-based analysis is needed (don't use Perplexity API directly)\n- Client handles pagination, retries, and rate limiting automatically\n",{"name":5,"description":7},"main","e3744adb7654df443f12927f3e001252b3a26b6d","cli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates","https:\u002F\u002Fgithub.com\u002FKrismithReddy12","2026-07-29 08:15:10",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add KrismithReddy12\u002Fclaude-code-templates --skill openalex-database",{"tool":35,"command":36},"bunx","bunx skills add KrismithReddy12\u002Fclaude-code-templates --skill openalex-database",{"tool":38,"command":39},"pnpm","pnpm dlx skills add KrismithReddy12\u002Fclaude-code-templates --skill openalex-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002FSKILL.md",true,[43,49,53,59],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fapi_guide.md","REFERENCE","参考文档",10185,"https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002Freferences\u002Fapi_guide.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcommon_queries.md",9587,"https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002Freferences\u002Fcommon_queries.md",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fopenalex_client.py","SCRIPT","脚本",10148,"https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002Fscripts\u002Fopenalex_client.py",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fquery_helpers.py",8443,"https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopenalex-database\u002Fscripts\u002Fquery_helpers.py",[64,71,80,87,94,101],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M79YMXJ07S2BQVB7JAM3657Q","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fzapier-make-patterns\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M79YMVPMK3Y4JDP2KDJKQ2ZD","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M79YMMQ4XXMPJHDQHY8FR7ME","workflow-automation","Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off.  This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation.  Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fworkflow-automation\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M79YMHQY3CP1XXMQ00TGQFAW","trigger-dev","Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Ftrigger-dev\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M79YME4Z3DRW0MT6BNYW1D7P","slack-automation","Automate Slack workspace operations including messaging, search, channel management, and reaction workflows through Composio's Slack toolkit.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fslack-automation\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M79YMAX7NFYDFXFZH2TJS7SS","planning-with-files","Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.","https:\u002F\u002Fgithub.com\u002FKrismithReddy12\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fworkflow-automation\u002Fplanning-with-files\u002FSKILL.md",[],[]]