Agent skill

Osf API

by wentorai in wentorai/research-plugins

Manage open science projects and preprints via the OSF REST API

MITAuto-check passedResearch & Science

Install Osf API

skills CLI
$ npx skills add wentorai/research-plugins --skill osf-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins osf-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/literature/fulltext/osf-api .claude/skills/osf-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
osf-api
GitHub stars
298
Used in
1 other repo
Token cost
~2k tokens
SKILL.md length
363 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Manage open science projects and preprints via the OSF REST API

  • Tasks that involve Academic paper search
  • SKILL.md covers Overview, Authentication, API Endpoints and Response Structure (Preprint), plus 4 more sections
  • Calls curl; reaches api.osf.io and osf.io; needs OSF_TOKEN
  • Tasks that involve Reproducible research

What it does

Osf API is an agent skill from wentorai/research-plugins. Manage open science projects and preprints via the OSF REST API

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Academic paper search, Reproducible research and REST APIs. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Academic paper search
  • Tasks that involve Reproducible research
  • Tasks that involve REST APIs

Example prompts

  • “/osf-api”

Requirements

  • Python 3
  • A credential in OSF_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.osf.io
    • osf.io

    Also links to:

    • developer.osf.io
    • cos.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OSF_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Osf API loads about 2k tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 363 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 363 words, ~2,047 tokens.

Download SKILL.mdSave it as .claude/skills/osf-api/SKILL.md (or your agent's skills folder).
name
osf-api
description
Manage open science projects and preprints via the OSF REST API

OSF (Open Science Framework) API

Overview

The Open Science Framework by the Center for Open Science provides infrastructure for the entire research lifecycle — project management, file storage, preprint hosting, and registrations. The API enables search, project creation, file management, and preprint discovery across OSF Preprints, PsyArXiv, SocArXiv, and 25+ community preprint servers. Free, no auth for read access.

Authentication

Public read access requires no authentication. For creating or modifying resources, generate a personal access token at https://osf.io/settings/tokens.

bash
# Public access (no auth needed)
curl "https://api.osf.io/v2/nodes/?filter[title]=reproducibility"

# Authenticated access for write operations
export OSF_TOKEN=$OSF_TOKEN
curl -H "Authorization: Bearer $OSF_TOKEN" \
  "https://api.osf.io/v2/users/me/"

API Endpoints

Base URL
https://api.osf.io/v2
bash
# Search across all OSF content
curl "https://api.osf.io/v2/search/?q=replication+crisis&page[size]=20"

# Search preprints
curl "https://api.osf.io/v2/preprints/?filter[q]=machine+learning&page[size]=20"

# Filter by preprint provider
curl "https://api.osf.io/v2/preprints/?filter[provider]=psyarxiv&filter[q]=cognitive+bias"

# Search registrations (pre-registered studies)
curl "https://api.osf.io/v2/registrations/?filter[q]=randomized+controlled+trial"
Projects
bash
# Get public projects
curl "https://api.osf.io/v2/nodes/?filter[public]=true&filter[q]=neuroimaging"

# Get project details
curl "https://api.osf.io/v2/nodes/{node_id}/"

# Get project files
curl "https://api.osf.io/v2/nodes/{node_id}/files/"

# Get project contributors
curl "https://api.osf.io/v2/nodes/{node_id}/contributors/"
Preprint Providers
ProviderFilterDisciplines
OSF PreprintsosfMultidisciplinary
PsyArXivpsyarxivPsychology
SocArXivsocarxivSocial sciences
EarthArXiveartharxivEarth sciences
BioHackrXivbiohackrxivBioinformatics
engrXivengrxivEngineering
MedArXivmedarxivMedical sciences
NutriXivnutrixivNutrition
Query Parameters
ParameterDescriptionExample
filter[q]Text searchfilter[q]=open+data
filter[provider]Preprint serverfilter[provider]=psyarxiv
filter[subjects]Subject filterSubject taxonomy ID
filter[date_created]Date filterfilter[date_created][gte]=2024-01-01
page[size]Results per page (max 100)page[size]=50
pagePage numberpage=2

Response Structure (Preprint)

json
{
  "data": [
    {
      "id": "abc12",
      "type": "preprints",
      "attributes": {
        "title": "Replication of the Ego Depletion Effect",
        "description": "We attempted to replicate...",
        "date_created": "2024-06-15T10:00:00Z",
        "date_published": "2024-06-16T08:00:00Z",
        "doi": "10.31234/osf.io/abc12",
        "is_published": true,
        "subjects": [["Social and Behavioral Sciences", "Psychology"]],
        "tags": ["replication", "ego depletion"]
      },
      "relationships": {
        "contributors": {"links": {"related": {"href": "..."}}},
        "primary_file": {"links": {"related": {"href": "..."}}}
      }
    }
  ]
}

Python Usage

python
import requests

BASE_URL = "https://api.osf.io/v2"


def search_preprints(query: str, provider: str = None,
                     page_size: int = 20) -> list:
    """Search OSF preprints across providers."""
    params = {
        "filter[q]": query,
        "page[size]": page_size,
    }
    if provider:
        params["filter[provider]"] = provider

    resp = requests.get(f"{BASE_URL}/preprints/", params=params)
    resp.raise_for_status()
    data = resp.json()

    results = []
    for item in data.get("data", []):
        attrs = item.get("attributes", {})
        results.append({
            "id": item.get("id"),
            "title": attrs.get("title"),
            "description": (attrs.get("description") or "")[:300],
            "doi": attrs.get("doi"),
            "date": attrs.get("date_published", "")[:10],
            "tags": attrs.get("tags", []),
            "url": f"https://osf.io/{item.get('id')}/",
        })
    return results


def search_registrations(query: str,
                         page_size: int = 20) -> list:
    """Search pre-registered studies on OSF."""
    params = {
        "filter[q]": query,
        "page[size]": page_size,
    }
    resp = requests.get(f"{BASE_URL}/registrations/", params=params)
    resp.raise_for_status()
    data = resp.json()

    results = []
    for item in data.get("data", []):
        attrs = item.get("attributes", {})
        results.append({
            "id": item.get("id"),
            "title": attrs.get("title"),
            "description": (attrs.get("description") or "")[:300],
            "date_registered": attrs.get("date_registered", "")[:10],
            "registration_schema": attrs.get("registration_supplement"),
        })
    return results


def get_project_files(node_id: str) -> list:
    """List files in an OSF project."""
    resp = requests.get(f"{BASE_URL}/nodes/{node_id}/files/")
    resp.raise_for_status()
    data = resp.json()

    providers = []
    for item in data.get("data", []):
        attrs = item.get("attributes", {})
        providers.append({
            "provider": attrs.get("provider"),
            "name": attrs.get("name"),
        })
    return providers


# Example: search psychology preprints
preprints = search_preprints("cognitive load", provider="psyarxiv")
for p in preprints[:5]:
    print(f"[{p['date']}] {p['title']}")
    print(f"  DOI: {p['doi']}")

# Example: find pre-registered clinical trials
regs = search_registrations("randomized placebo")
for r in regs[:5]:
    print(f"[{r['date_registered']}] {r['title']}")

Common Research Patterns

  • Preregistration Review: Search for preregistered studies in your field to understand how others formulate hypotheses, specify sample sizes, and plan analyses before data collection. Essential for meta-science and methodological research.
  • Preprint Discovery: Use the preprints endpoint to find the latest unrefereed manuscripts across multiple community servers, getting access to cutting-edge findings before formal publication.
  • Open Data Access: Retrieve datasets attached to OSF projects for replication attempts, secondary analyses, or meta-analyses. OSF projects often include raw data, analysis scripts, and materials.
  • Collaboration Mapping: Explore contributors and linked projects to understand research collaboration networks in specific domains.
  • Reproducibility Audits: Programmatically check whether published studies have associated preregistrations, open data, or open materials on OSF.
Show full SKILL.md (93 more words)Show less

Rate Limits and Best Practices

  • Rate limit: 100 requests per minute for unauthenticated, higher limits for authenticated requests
  • Pagination: Use page and page[size] parameters; default page size is 10
  • JSON:API format: Responses follow JSON:API specification; data is under the data key, relationships are linked
  • Sparse fieldsets: Use fields[nodes]=title,date_created to request only needed fields
  • Embedding: Use embed=contributors to include related resources in a single request
  • Respect the service: Add delays between rapid sequential requests; use the links.next URL for pagination

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/literature/fulltext/osf-api of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Osf API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Osf API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Osf API this skillwentorai/research-plugins2981 repos~2kAutomated safety check: PassMIT
Bio Ensembl RESTGPTomics/bioSkills1.2k2 repos~3.6kAutomated safety check: PassMIT
Peer ReviewK-Dense-AI/claude-scientific-writer2.4k2 repos~3.1kAutomated safety check: NotesMIT
Literature ReviewK-Dense-AI/scientific-agent-skills48k1 repos~3.2kAutomated safety check: NotesMIT
Literature Search Methodologyaiming-lab/AutoResearchClaw15k—~709Automated safety check: PassMIT
Lit SynthesizerClawBio/ClawBio1.2k1 repos~2.5kAutomated safety check: PassMIT

Similar skills

  • Bio Ensembl REST

    GPTomics/bioSkills

    Query the Ensembl REST API for gene/transcript/protein lookup, sequence retrieval, comparative genomics (Compara), variant effect prediction (VEP), regulatory features, and cross-species…

    1.2k GitHub starsUsed in 2 repos~3.6k tokens
    Research & ScienceAuto-check passed
  • Peer Review

    K-Dense-AI/claude-scientific-writer

    Prepare evidence-bounded, constructive peer-review drafts and structured manuscript assessments.

    2.4k GitHub starsUsed in 2 repos~3.1k tokens
    Research & ScienceAuto-check: notes
  • Literature Review

    K-Dense-AI/scientific-agent-skills

    Runs systematic, scoping or narrative literature reviews across PubMed, arXiv, bioRxiv and Semantic Scholar, with citation checks and Markdown or PDF output.

    48k GitHub starsUsed in 1 repo~3.2k tokens
    Research & ScienceAuto-check: notes
  • Literature Search Methodology

    aiming-lab/AutoResearchClaw

    Lays out a systematic literature review method: PICO-based search strategy, inclusion criteria, PRISMA screening, quality assessment tools and synthesis approaches.

    15k GitHub stars~709 tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Lit Synthesizer

    ClawBio/ClawBio

    Search PubMed and bioRxiv for bioinformatics literature, synthesise results into a structured report, and build a citation graph — all locally, with a reproducibility bundle.

    1.2k GitHub starsUsed in 1 repo~2.5k tokens
    Research & ScienceAuto-check passed
  • Scholar Open

    joshzyj/open-scholar-skill

    Implement open science practices for a social science study.

    168 GitHub stars~14k tokensUpdated 19 days ago
    Research & ScienceAuto-check passed

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Osf API

What does Osf API do?

Manage open science projects and preprints via the OSF REST API. Osf API is an agent skill from wentorai/research-plugins.

When should I use Osf API?

Osf API fits situations like: tasks that involve Academic paper search; tasks that involve Reproducible research; tasks that involve REST APIs.

How do I install Osf API in Claude Code?

Run `npx skills add wentorai/research-plugins --skill osf-api -a claude-code`. Or copy the skill folder (skills/literature/fulltext/osf-api in wentorai/research-plugins) into .claude/skills/osf-api in your project. Claude Code loads it when a task matches its description.

How do I install Osf API in Codex?

Run `npx skills add wentorai/research-plugins --skill osf-api -a codex`. Or copy the skill folder (skills/literature/fulltext/osf-api in wentorai/research-plugins) into .agents/skills/osf-api in your project. Codex loads it when a task matches its description.

Can I use Osf API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill osf-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/osf-api, .gemini/skills/osf-api, .github/skills/osf-api and .opencode/skills/osf-api in your project.

What does Osf API need to run?

Going by SKILL.md and its folder, Osf API needs the command-line tools its instructions call (curl) and credentials named OSF_TOKEN. Our summary lists: Python 3; A credential in OSF_TOKEN.

Does Osf API access the network?

SKILL.md names 4 domains. In commands or code: api.osf.io and osf.io; the agent is likely to contact these when it follows the instructions. As links in the text: developer.osf.io and cos.io. This is read from the text; nothing was executed.

Is Osf API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Osf API use?

Osf API is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Osf API use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Osf API?

Skills that share tags, products or a category with Osf API: Bio Ensembl REST (GPTomics/bioSkills, 1.2k stars), Peer Review (K-Dense-AI/claude-scientific-writer, 2.4k stars), Literature Review (K-Dense-AI/scientific-agent-skills, 48k stars) and Literature Search Methodology (aiming-lab/AutoResearchClaw, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Osf API?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.