用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/wentorai/research-plugins --skill osf-api命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Panel data analysis with fixed and random effects models
10 econometrics skills. Trigger: causal analysis, regression models, treatment effects, panel data. Design: method-centric guides with R/Python code and diagnostic tests.
Curated guide to generative AI covering LLMs and diffusion models
基于 SOC 职业分类
正在显示 SKILL.md
| name | osf-api |
| description | Manage open science projects and preprints via the OSF REST API |
| metadata | {"openclaw":{"emoji":"🔓","category":"literature","subcategory":"fulltext","keywords":["OSF","Open Science Framework","preprints","open data","reproducibility","preregistration"],"source":"https://osf.io/"}} |
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.
Public read access requires no authentication. For creating or modifying resources, generate a personal access token at https://osf.io/settings/tokens.
# 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/"
https://api.osf.io/v2
# 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"
# 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/"
| Provider | Filter | Disciplines |
|---|---|---|
| OSF Preprints | osf | Multidisciplinary |
| PsyArXiv | psyarxiv | Psychology |
| SocArXiv | socarxiv | Social sciences |
| EarthArXiv | eartharxiv | Earth sciences |
| BioHackrXiv | biohackrxiv | Bioinformatics |
| engrXiv | engrxiv | Engineering |
| MedArXiv | medarxiv | Medical sciences |
| NutriXiv | nutrixiv | Nutrition |
| Parameter | Description | Example |
|---|---|---|
filter[q] | Text search | filter[q]=open+data |
filter[provider] | Preprint server | filter[provider]=psyarxiv |
filter[subjects] | Subject filter | Subject taxonomy ID |
filter[date_created] | Date filter | filter[date_created][gte]=2024-01-01 |
page[size] | Results per page (max 100) | page[size]=50 |
page | Page number | page=2 |
{
"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",
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() -> :
params = {
: query,
: page_size,
}
resp = requests.get(, params=params)
resp.raise_for_status()
data = resp.json()
results = []
item data.get(, []):
attrs = item.get(, {})
results.append({
: item.get(),
: attrs.get(),
: (attrs.get() )[:],
: attrs.get(, )[:],
: attrs.get(),
})
results
() -> :
resp = requests.get()
resp.raise_for_status()
data = resp.json()
providers = []
item data.get(, []):
attrs = item.get(, {})
providers.append({
: attrs.get(),
: attrs.get(),
})
providers
preprints = search_preprints(, provider=)
p preprints[:]:
()
()
regs = search_registrations()
r regs[:]:
()
page and page[size] parameters; default page size is 10data key, relationships are linkedfields[nodes]=title,date_created to request only needed fieldsembed=contributors to include related resources in a single requestlinks.next URL for pagination