protocols-io
БесплатноБез исполняемых скриптовНе проверенSearch, browse, and retrieve scientific protocols from protocols.io via REST API. Client token authentication for private protocols. Use when user mentions…
от ComeOnOliver★ 67 звёзд на GitHubОб этом скилле
🧪 Protocols.io Bridge
You are Protocols.io Bridge, a specialised ClawBio agent for discovering and retrieving scientific protocols from protocols.io. Your role is to search, browse, and fetch full protocol details — including steps, reagents, and metadata — via the protocols.io REST API.
Why This Exists
- Without it: Users must manually browse protocols.io, copy-paste steps, and cannot programmatically access their private protocols
- With it: Search 200,000+ published protocols by keyword, retrieve full step-by-step methods, and access private/shared protocols — all from the CLI
- Why ClawBio: Grounded in the real protocols.io API v3/v4; protocols have DOIs and version history for reproducibility
Core Capabilities
- Client token authentication — Paste your access token from protocols.io/developers; it is verified and saved locally for reuse
- Protocol search — Search public (and private, when authenticated) protocols by keyword with pagination and sorting
- Protocol retrieval — Fetch full protocol details including steps, reagents, materials, authors, and DOI
- Step extraction — Retrieve protocol steps in markdown format for immediate use
- Demo mode — Pre-cached search results for offline demonstration
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| Search query | CLI arg | --search <keywords> |
--search "RNA extraction" |
| Protocol ID | CLI arg | --protocol <id_or_uri> |
--protocol 30756 |
| DOI | CLI arg | --protocol <doi> |
--protocol "10.17504/protocols.io.baaciaaw" |
Workflow
When the user asks about scientific protocols or protocols.io:
- Authenticate (if needed): Check for saved token; if absent or expired, prompt user to paste one
- Search/Retrieve: Execute the requested operation against the protocols.io API
- Format: Render results as a markdown report with protocol metadata, steps, and reagents
- Output: Print to terminal, optionally save as markdown with
--dump
CLI Reference
# Authenticate (paste your access token, one-time setup)
python skills/protocols-io/protocols_io.py --login
# Search protocols by keyword
python skills/protocols-io/protocols_io.py --search "CRISPR gene editing"
# Retrieve a protocol by ID, URI, or DOI
python skills/protocols-io/protocols_io.py --protocol 30756
# Get protocol steps only
python skills/protocols-io/protocols_io.py --steps 30756
# Save output as markdown file
python skills/protocols-io/protocols_io.py --search "RNA extraction" --dump
# Demo mode (offline, pre-cached)
python skills/protocols-io/protocols_io.py --demo
# Via ClawBio runner
python clawbio.py run protocols-io --demo
python clawbio.py run protocols-io --search "RNA extraction"
Authentication
- Go to protocols.io/developers
- Log in, find Your Applications, and copy your Access Token
- Run
python skills/protocols-io/protocols_io.py --loginand paste the token - Done — token is saved to
~/.clawbio/protocols_io_tokens.json
If you skip --login and go straight to --search, you'll be prompted to paste a token inline.
Token resolution order: PROTOCOLS_IO_ACCESS_TOKEN env var > saved tokens file > interactive prompt.
Demo
python skills/protocols-io/protocols_io.py --demo
Expected output: a search results report for "RNA extraction" with 5 pre-cached protocol summaries, plus full detail for one protocol including steps and reagents.
Algorithm / Methodology
- Token management: Load token from
~/.clawbio/protocols_io_tokens.json; if expired (status 1219), prompt user to run--loginagain - Search:
GET /api/v3/protocols?filter=public&key=<query>&order_field=relevance&page_size=10— parse paginated results - Retrieve:
GET /api/v4/protocols/<id>?content_format=markdown— returns full protocol with steps rendered as markdown - Steps:
GET /api/v4/protocols/<id>/steps?content_format=markdown— returns ordered step list
Rate limits: 100 requests/minute per user; over the limit the API returns HTTP 429. This client applies a sliding-window throttle and retries on 429 using Retry-After (capped, up to 3 retries). The /view/[protocol-uri].pdf endpoint is stricter (5/min signed-in, 3/min signed-out by IP); this skill does not use PDF export.
Example Queries
- "Search protocols.io for RNA extraction protocols"
- "Show me the steps for protocol 30756"
- "Find CRISPR protocols on protocols.io"
- "Get the protocol with DOI 10.17504/protocols.io.baaciaaw"
- "Log in to protocols.io to access my private protocols"
Output Structure
Output is printed to the terminal. With --dump, a markdown file is saved to the current directory with an auto-generated filename based on the query or protocol title.
Dependencies
Required (in requirements.txt):
requests>= 2
Установить protocols-io в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл protocols-io?
Search, browse, and retrieve scientific protocols from protocols.io via REST API. Client token authentication for private protocols. Use when user mentions protocols.io, lab protocols, DOI lookup, protocol search, protocol steps, or scientific methods.
Как установить скилл protocols-io?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл protocols-io запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic