protocolsio-integration
정보
이 스킬은 protocols.io의 완전한 API v3 통합을 제공하여, 개발자가 과학적 프로토콜, 단계, 재료, 작업 공간을 프로그래밍 방식으로 검색, 생성, 업데이트 및 관리할 수 있게 합니다. 워크플로우 내에서 프로토콜 발견, 협업 개발, 실험 추적 및 실험실 문서화를 자동화하는 데 사용하세요. 파일 관리, 토론, 게시를 포함한 핵심 플랫폼 기능을 처리합니다.
빠른 설치
Claude Code
추천npx skills add K-Dense-AI/claude-scientific-skills -a claude-code/plugin add https://github.com/K-Dense-AI/claude-scientific-skillsgit clone https://github.com/K-Dense-AI/claude-scientific-skills.git ~/.claude/skills/protocolsio-integrationClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Protocols.io Integration
Overview
Protocols.io is a comprehensive platform for developing, sharing, and managing scientific protocols. This skill provides complete integration with the protocols.io API v3, enabling programmatic access to protocols, workspaces, discussions, file management, and collaboration features.
When to Use This Skill
Use this skill when working with protocols.io in any of the following scenarios:
- Protocol Discovery: Searching for existing protocols by keywords, DOI, or category
- Protocol Management: Creating, updating, or publishing scientific protocols
- Step Management: Adding, editing, or organizing protocol steps and procedures
- Collaborative Development: Working with team members on shared protocols
- Workspace Organization: Managing lab or institutional protocol repositories
- Discussion & Feedback: Adding or responding to protocol comments
- File Management: Uploading data files, images, or documents to protocols
- Experiment Tracking: Documenting protocol executions and results
- Data Export: Backing up or migrating protocol collections
- Integration Projects: Building tools that interact with protocols.io
Core Capabilities
This skill provides comprehensive guidance across five major capability areas:
1. Authentication & Access
Manage API authentication using access tokens and OAuth flows. Includes both client access tokens (for personal content) and OAuth tokens (for multi-user applications).
Key operations:
- Generate authorization links for OAuth flow
- Exchange authorization codes for access tokens
- Refresh expired tokens
- Manage rate limits and permissions
Reference: Read references/authentication.md for detailed authentication procedures, OAuth implementation, and security best practices.
2. Protocol Operations
Complete protocol lifecycle management from creation to publication.
Key operations:
- Search and discover protocols by keywords, filters, or DOI
- Retrieve detailed protocol information with all steps
- Create new protocols with metadata and tags
- Update protocol information and settings
- Manage protocol steps (create, update, delete, reorder)
- Handle protocol materials and reagents
- Publish protocols with DOI issuance
- Bookmark protocols for quick access
- Generate protocol PDFs
Reference: Read references/protocols_api.md for comprehensive protocol management guidance, including API endpoints, parameters, common workflows, and examples.
3. Discussions & Collaboration
Enable community engagement through comments and discussions.
Key operations:
- View protocol-level and step-level comments
- Create new comments and threaded replies
- Edit or delete your own comments
- Analyze discussion patterns and feedback
- Respond to user questions and issues
Reference: Read references/discussions.md for discussion management, comment threading, and collaboration workflows.
4. Workspace Management
Organize protocols within team workspaces with role-based permissions.
Key operations:
- List and access user workspaces
- Retrieve workspace details and member lists
- Request access or join workspaces
- List workspace-specific protocols
- Create protocols within workspaces
- Manage workspace permissions and collaboration
Reference: Read references/workspaces.md for workspace organization, permission management, and team collaboration patterns.
5. File Operations
Upload, organize, and manage files associated with protocols.
Key operations:
- Search workspace files and folders
- Upload files with metadata and tags
- Download files and verify uploads
- Organize files into folder hierarchies
- Update file metadata
- Delete and restore files
- Manage storage and organization
Reference: Read references/file_manager.md for file upload procedures, organization strategies, and storage management.
6. Additional Features
Supplementary functionality including profiles, notifications, and exports.
Key operations:
- Manage user profiles and settings
- Query recently published protocols
- Create and track experiment records
- Receive and manage notifications
- Export organization data for archival
Reference: Read references/additional_features.md for profile management, publication discovery, experiment tracking, and data export.
Getting Started
Step 1: Authentication Setup
Before using any protocols.io API functionality:
- Obtain an access token (CLIENT_ACCESS_TOKEN or OAUTH_ACCESS_TOKEN)
- Read
references/authentication.mdfor detailed authentication procedures - Store the token securely
- Include in all requests as:
Authorization: Bearer YOUR_TOKEN
Step 2: Identify Your Use Case
Determine which capability area addresses your needs:
- Working with protocols? → Read
references/protocols_api.md - Managing team protocols? → Read
references/workspaces.md - Handling comments/feedback? → Read
references/discussions.md - Uploading files/data? → Read
references/file_manager.md - Tracking experiments or profiles? → Read
references/additional_features.md
Step 3: Implement Integration
Follow the guidance in the relevant reference files:
- Each reference includes detailed endpoint documentation
- API parameters and request/response formats are specified
- Common use cases and workflows are provided with examples
- Best practices and error handling guidance included
Base URL and Request Format
All API requests use the base URL:
https://protocols.io/api/v3
All requests require the Authorization header:
Authorization: Bearer YOUR_ACCESS_TOKEN
Most endpoints support JSON request/response format with Content-Type: application/json.
Content Format Options
Many endpoints support a content_format parameter to control how protocol content is returned:
json: Draft.js JSON format (default)html: HTML formatmarkdown: Markdown format
Include as query parameter: ?content_format=html
Rate Limiting
Be aware of API rate limits:
- Standard endpoints: 100 requests per minute per user
- PDF endpoint: 5 requests/minute (signed-in), 3 requests/minute (unsigned)
Implement exponential backoff for rate limit errors (HTTP 429).
Common Workflows
Workflow 1: Import and Analyze Protocol
To analyze an existing protocol from protocols.io:
- Search: Use
GET /protocolswith keywords to find relevant protocols - Retrieve: Get full details with
GET /protocols/{protocol_id} - Extract: Parse steps, materials, and metadata for analysis
- Review discussions: Check
GET /protocols/{id}/commentsfor user feedback - Export: Generate PDF if needed for offline reference
Reference files: protocols_api.md, discussions.md
Workflow 2: Create and Publish Protocol
To create a new protocol and publish with DOI:
- Authenticate: Ensure you have valid access token (see
authentication.md) - Create: Use
POST /protocolswith title and description - Add steps: For each step, use
POST /protocols/{id}/steps - Add materials: Document reagents in step components
- Review: Verify all content is complete and accurate
- Publish: Issue DOI with
POST /protocols/{id}/publish
Reference files: protocols_api.md, authentication.md
Workflow 3: Collaborative Lab Workspace
To set up team protocol management:
- Create/join workspace: Access or request workspace membership (see
workspaces.md) - Organize structure: Create folder hierarchy for lab protocols (see
file_manager.md) - Create protocols: Use
POST /workspaces/{id}/protocolsfor team protocols - Upload files: Add experimental data and images
- Enable discussions: Team members can comment and provide feedback
- Track experiments: Document protocol executions with experiment records
Reference files: workspaces.md, file_manager.md, protocols_api.md, discussions.md, additional_features.md
Workflow 4: Experiment Documentation
To track protocol executions and results:
- Execute protocol: Perform protocol in laboratory
- Upload data: Use File Manager API to upload results (see
file_manager.md) - Create record: Document execution with
POST /protocols/{id}/runs - Link files: Reference uploaded data files in experiment record
- Note modifications: Document any protocol deviations or optimizations
- Analyze: Review multiple runs for reproducibility assessment
Reference files: additional_features.md, file_manager.md, protocols_api.md
Workflow 5: Protocol Discovery and Citation
To find and cite protocols in research:
- Search: Query published protocols with
GET /publications - Filter: Use category and keyword filters for relevant protocols
- Review: Read protocol details and community comments
- Bookmark: Save useful protocols with
POST /protocols/{id}/bookmarks - Cite: Use protocol DOI in publications (proper attribution)
- Export PDF: Generate formatted PDF for offline reference
Reference files: protocols_api.md, additional_features.md
Python Request Examples
Basic Protocol Search
import requests
token = "YOUR_ACCESS_TOKEN"
headers = {"Authorization": f"Bearer {token}"}
# Search for CRISPR protocols
response = requests.get(
"https://protocols.io/api/v3/protocols",
headers=headers,
params={
"filter": "public",
"key": "CRISPR",
"page_size": 10,
"content_format": "html"
}
)
protocols = response.json()
for protocol in protocols["items"]:
print(f"{protocol['title']} - {protocol['doi']}")
Create New Protocol
import requests
token = "YOUR_ACCESS_TOKEN"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
# Create protocol
data = {
"title": "CRISPR-Cas9 Gene Editing Protocol",
"description": "Comprehensive protocol for CRISPR gene editing",
"tags": ["CRISPR", "gene editing", "molecular biology"]
}
response = requests.post(
"https://protocols.io/api/v3/protocols",
headers=headers,
json=data
)
protocol_id = response.json()["item"]["id"]
print(f"Created protocol: {protocol_id}")
Upload File to Workspace
import requests
token = "YOUR_ACCESS_TOKEN"
headers = {"Authorization": f"Bearer {token}"}
# Upload file
with open("data.csv", "rb") as f:
files = {"file": f}
data = {
"folder_id": "root",
"description": "Experimental results",
"tags": "experiment,data,2025"
}
response = requests.post(
"https://protocols.io/api/v3/workspaces/12345/files/upload",
headers=headers,
files=files,
data=data
)
file_id = response.json()["item"]["id"]
print(f"Uploaded file: {file_id}")
Error Handling
Implement robust error handling for API requests:
import requests
import time
def make_request_with_retry(url, headers, max_retries=3):
for attempt in range(max_retries):
try:
response = requests.get(url, headers=headers)
if response.status_code == 200:
return response.json()
elif response.status_code == 429: # Rate limit
retry_after = int(response.headers.get('Retry-After', 60))
time.sleep(retry_after)
continue
elif response.status_code >= 500: # Server error
time.sleep(2 ** attempt) # Exponential backoff
continue
else:
response.raise_for_status()
except requests.exceptions.RequestException as e:
if attempt == max_retries - 1:
raise
time.sleep(2 ** attempt)
raise Exception("Max retries exceeded")
Reference Files
Load the appropriate reference file based on your task:
authentication.md: OAuth flows, token management, rate limitingprotocols_api.md: Protocol CRUD, steps, materials, publishing, PDFsdiscussions.md: Comments, replies, collaborationworkspaces.md: Team workspaces, permissions, organizationfile_manager.md: File upload, folders, storage managementadditional_features.md: Profiles, publications, experiments, notifications
To load a reference file, read the file from the references/ directory when needed for specific functionality.
Best Practices
- Authentication: Store tokens securely, never in code or version control
- Rate Limiting: Implement exponential backoff and respect rate limits
- Error Handling: Handle all HTTP error codes appropriately
- Data Validation: Validate input before API calls
- Documentation: Document protocol steps thoroughly
- Collaboration: Use comments and discussions for team communication
- Organization: Maintain consistent naming and tagging conventions
- Versioning: Track protocol versions when making updates
- Attribution: Properly cite protocols using DOIs
- Backup: Regularly export important protocols and workspace data
Additional Resources
- Official API Documentation: https://apidoc.protocols.io/
- Protocols.io Platform: https://www.protocols.io/
- Support: Contact protocols.io support for API access and technical issues
- Community: Engage with protocols.io community for best practices
Troubleshooting
Authentication Issues:
- Verify token is valid and not expired
- Check Authorization header format:
Bearer YOUR_TOKEN - Ensure appropriate token type (CLIENT vs OAUTH)
Rate Limiting:
- Implement exponential backoff for 429 errors
- Monitor request frequency
- Consider caching frequent requests
Permission Errors:
- Verify workspace/protocol access permissions
- Check user role in workspace
- Ensure protocol is not private if accessing without permission
File Upload Failures:
- Check file size against workspace limits
- Verify file type is supported
- Ensure multipart/form-data encoding is correct
For detailed troubleshooting guidance, refer to the specific reference files covering each capability area.
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
