Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计异常

labarchive-integration实验室档案整合

Agent Skill

labarchive-integration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,016

周安装

209

GitHub Stars

26,434

下载量

1,672
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:labarchive-integration(实验室档案整合)
来源仓库:https://github.com/davila7/claude-code-templates
仓库路径:skills/labarchive-integration
安装命令:
npx skills add https://github.com/davila7/claude-code-templates --skill labarchive-integration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/davila7/claude-code-templates --skill labarchive-integration

简介

labarchive-integration 实现 LabArchives 电子实验笔记与第三方工具自动化对接。

  • 适用于 Notebook 备份、条目批量创建与报告生成等科研管理场景。
  • 通过 REST API 集成 Protocols.io、Jupyter 等平台,提升工作流效率。
  • 使用时需申请 API 密钥并遵守速率限制,避免触发反爬机制导致服务中断。
  • 涉及实验原始数据时应定期导出本地备份,防止平台单点故障造成丢失。

SKILL.md

LabArchives Integration

Overview

LabArchives is an electronic lab notebook platform for research documentation and data management. Access notebooks, manage entries and attachments, generate reports, and integrate with third-party tools programmatically via REST API.

When to Use This Skill

This skill should be used when:

  • Working with LabArchives REST API for notebook automation
  • Backing up notebooks programmatically
  • Creating or managing notebook entries and attachments
  • Generating site reports and analytics
  • Integrating LabArchives with third-party tools (Protocols.io, Jupyter, REDCap)
  • Automating data upload to electronic lab notebooks
  • Managing user access and permissions programmatically

Core Capabilities

1. Authentication and Configuration

Set up API access credentials and regional endpoints for LabArchives API integration.

Prerequisites:

  • Enterprise LabArchives license with API access enabled
  • API access key ID and password from LabArchives administrator
  • User authentication credentials (email and external applications password)

Configuration setup:

Use the scripts/setup_config.py script to create a configuration file:

python3 scripts/setup_config.py

This creates a config.yaml file with the following structure:

api_url: https://api.labarchives.com/api  # or regional endpoint
access_key_id: YOUR_ACCESS_KEY_ID
access_password: YOUR_ACCESS_PASSWORD

Regional API endpoints:

  • US/International: https://api.labarchives.com/api
  • Australia: https://auapi.labarchives.com/api
  • UK: https://ukapi.labarchives.com/api

For detailed authentication instructions and troubleshooting, refer to references/authentication_guide.md.

2. User Information Retrieval

Obtain user ID (UID) and access information required for subsequent API operations.

Workflow:

  1. Call the users/user_access_info API method with login credentials
  2. Parse the XML/JSON response to extract the user ID (UID)
  3. Use the UID to retrieve detailed user information via users/user_info_via_id

Example using Python wrapper:

from labarchivespy.client import Client

# Initialize client
client = Client(api_url, access_key_id, access_password)

# Get user access info
login_params = {'login_or_email': user_email, 'password': auth_token}
response = client.make_call('users', 'user_access_info', params=login_params)

# Extract UID from response
import xml.etree.ElementTree as ET
uid = ET.fromstring(response.content)[0].text

# Get detailed user info
params = {'uid': uid}
user_info = client.make_call('users', 'user_info_via_id', params=params)

3. Notebook Operations

Manage notebook access, backup, and metadata retrieval.

Key operations:

  • List notebooks: Retrieve all notebooks accessible to a user
  • Backup notebooks: Download complete notebook data with optional attachment inclusion
  • Get notebook IDs: Retrieve institution-defined notebook identifiers for integration with grants/project management systems
  • Get notebook members: List all users with access to a specific notebook
  • Get notebook settings: Retrieve configuration and permissions for notebooks

Notebook backup example:

Use the scripts/notebook_operations.py script:

# Backup with attachments (default, creates 7z archive)
python3 scripts/notebook_operations.py backup --uid USER_ID --nbid NOTEBOOK_ID

# Backup without attachments, JSON format
python3 scripts/notebook_operations.py backup --uid USER_ID --nbid NOTEBOOK_ID --json --no-attachments

API endpoint format:

https://<api_url>/notebooks/notebook_backup?uid=<UID>&nbid=<NOTEBOOK_ID>&json=true&no_attachments=false

For comprehensive API method documentation, refer to references/api_reference.md.

4. Entry and Attachment Management

Create, modify, and manage notebook entries and file attachments.

Entry operations:

  • Create new entries in notebooks
  • Add comments to existing entries
  • Create entry parts/components
  • Upload file attachments to entries

Attachment workflow:

Use the scripts/entry_operations.py script:

# Upload attachment to an entry
python3 scripts/entry_operations.py upload --uid USER_ID --nbid NOTEBOOK_ID --entry-id ENTRY_ID --file /path/to/file.pdf

# Create a new entry with text content
python3 scripts/entry_operations.py create --uid USER_ID --nbid NOTEBOOK_ID --title "Experiment Results" --content "Results from today's experiment..."

Supported file types:

  • Documents (PDF, DOCX, TXT)
  • Images (PNG, JPG, TIFF)
  • Data files (CSV, XLSX, HDF5)
  • Scientific formats (CIF, MOL, PDB)
  • Archives (ZIP, 7Z)

5. Site Reports and Analytics

Generate institutional reports on notebook usage, activity, and compliance (Enterprise feature).

Available reports:

  • Detailed Usage Report: User activity metrics and engagement statistics
  • Detailed Notebook Report: Notebook metadata, member lists, and settings
  • PDF/Offline Notebook Generation Report: Export tracking for compliance
  • Notebook Members Report: Access control and collaboration analytics
  • Notebook Settings Report: Configuration and permission auditing

Report generation:

# Generate detailed usage report
response = client.make_call('site_reports', 'detailed_usage_report',
                           params={'start_date': '2025-01-01', 'end_date': '2025-10-20'})

6. Third-Party Integrations

LabArchives integrates with numerous scientific software platforms. This skill provides guidance on leveraging these integrations programmatically.

Supported integrations:

  • Protocols.io: Export protocols directly to LabArchives notebooks
  • GraphPad Prism: Export analyses and figures (Version 8+)
  • SnapGene: Direct molecular biology workflow integration
  • Geneious: Bioinformatics analysis export
  • Jupyter: Embed Jupyter notebooks as entries
  • REDCap: Clinical data capture integration
  • Qeios: Research publishing platform
  • SciSpace: Literature management

OAuth authentication: LabArchives now uses OAuth for all new integrations. Legacy integrations may use API key authentication.

For detailed integration setup instructions and use cases, refer to references/integrations.md.

Common Workflows

Complete notebook backup workflow

  1. Authenticate and obtain user ID
  2. List all accessible notebooks
  3. Iterate through notebooks and backup each one
  4. Store backups with timestamp metadata
# Complete backup script
python3 scripts/notebook_operations.py backup-all --email user@example.edu --password AUTH_TOKEN

Automated data upload workflow

  1. Authenticate with LabArchives API
  2. Identify target notebook and entry
  3. Upload experimental data files
  4. Add metadata comments to entries
  5. Generate activity report

Integration workflow example (Jupyter → LabArchives)

  1. Export Jupyter notebook to HTML or PDF
  2. Use entry_operations.py to upload to LabArchives
  3. Add comment with execution timestamp and environment info
  4. Tag entry for easy retrieval

Python Package Installation

Install the labarchives-py wrapper for simplified API access:

git clone https://github.com/mcmero/labarchives-py
cd labarchives-py
uv pip install .

Alternatively, use direct HTTP requests via Python's requests library for custom implementations.

Best Practices

  1. Rate limiting: Implement appropriate delays between API calls to avoid throttling
  2. Error handling: Always wrap API calls in try-except blocks with appropriate logging
  3. Authentication security: Store credentials in environment variables or secure config files (never in code)
  4. Backup verification: After notebook backup, verify file integrity and completeness
  5. Incremental operations: For large notebooks, use pagination and batch processing
  6. Regional endpoints: Use the correct regional API endpoint for optimal performance

Troubleshooting

Common issues:

  • 401 Unauthorized: Verify access key ID and password are correct; check API access is enabled for your account
  • 404 Not Found: Confirm notebook ID (nbid) exists and user has access permissions
  • 403 Forbidden: Check user permissions for the requested operation
  • Empty response: Ensure required parameters (uid, nbid) are provided correctly
  • Attachment upload failures: Verify file size limits and format compatibility

For additional support, contact LabArchives at support@labarchives.com.

Resources

This skill includes bundled resources to support LabArchives API integration:

scripts/

  • setup_config.py: Interactive configuration file generator for API credentials
  • notebook_operations.py: Utilities for listing, backing up, and managing notebooks
  • entry_operations.py: Tools for creating entries and uploading attachments

references/

  • api_reference.md: Comprehensive API endpoint documentation with parameters and examples
  • authentication_guide.md: Detailed authentication setup and configuration instructions
  • integrations.md: Third-party integration setup guides and use cases

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.06%
按下载量换算452

OpenCode

23.58%
按下载量换算394

Cursor

19.74%
按下载量换算330

Antigravity

13.46%
按下载量换算225

Gemini CLI

7.49%
按下载量换算125

windsurf

3.83%
按下载量换算64

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills