🛠️ Labarchive連携
電子実験ノート(ELN)のシステムと連携し
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Electronic lab notebook API integration. Access notebooks, manage entries/attachments, backup notebooks, integrate with Protocols.io/Jupyter/REDCap, for programmatic ELN workflows.
🇯🇵 日本人クリエイター向け解説
電子実験ノート(ELN)のシステムと連携し
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o labarchive-integration.zip https://jpskill.com/download/4175.zip && unzip -o labarchive-integration.zip && rm labarchive-integration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4175.zip -OutFile "$d\labarchive-integration.zip"; Expand-Archive "$d\labarchive-integration.zip" -DestinationPath $d -Force; ri "$d\labarchive-integration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
labarchive-integration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
labarchive-integrationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
💬 こう話しかけるだけ — サンプルプロンプト
- › Labarchive Integration を使って、最小構成のサンプルコードを示して
- › Labarchive Integration の主な使い方と注意点を教えて
- › Labarchive Integration を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
LabArchives連携
概要
LabArchivesは、研究文書化およびデータ管理のための電子実験ノートプラットフォームです。REST APIを介して、ノートブックへのアクセス、エントリと添付ファイルの管理、レポートの生成、およびサードパーティツールとのプログラムによる連携が可能です。
このスキルを使用する場面
このスキルは、次のような場合に使用してください。
- ノートブックの自動化のためにLabArchives REST APIを操作する場合
- ノートブックをプログラムでバックアップする場合
- ノートブックのエントリと添付ファイルを作成または管理する場合
- サイトレポートと分析を生成する場合
- LabArchivesをサードパーティツール(Protocols.io、Jupyter、REDCap)と連携させる場合
- 電子実験ノートへのデータアップロードを自動化する場合
- ユーザーアクセスと権限をプログラムで管理する場合
主要な機能
1. 認証と設定
LabArchives API連携のために、APIアクセス資格情報と地域エンドポイントを設定します。
前提条件:
- APIアクセスが有効なEnterprise LabArchivesライセンス
- LabArchives管理者から提供されたAPIアクセスキーIDとパスワード
- ユーザー認証情報(メールアドレスと外部アプリケーションパスワード)
設定方法:
scripts/setup_config.pyスクリプトを使用して設定ファイルを作成します。
python3 scripts/setup_config.py
これにより、次の構造を持つconfig.yamlファイルが作成されます。
api_url: https://api.labarchives.com/api # または地域エンドポイント
access_key_id: YOUR_ACCESS_KEY_ID
access_password: YOUR_ACCESS_PASSWORD
地域別APIエンドポイント:
- 米国/国際:
https://api.labarchives.com/api - オーストラリア:
https://auapi.labarchives.com/api - 英国:
https://ukapi.labarchives.com/api
詳細な認証手順とトラブルシューティングについては、references/authentication_guide.mdを参照してください。
2. ユーザー情報の取得
後続のAPI操作に必要なユーザーID(UID)とアクセス情報を取得します。
ワークフロー:
- ログイン資格情報を使用して
users/user_access_infoAPIメソッドを呼び出します。 - XML/JSON応答を解析してユーザーID(UID)を抽出します。
- UIDを使用して
users/user_info_via_idを介して詳細なユーザー情報を取得します。
Pythonラッパーを使用した例:
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. ノートブック操作
ノートブックへのアクセス、バックアップ、およびメタデータ取得を管理します。
主な操作:
- ノートブックのリスト表示: ユーザーがアクセスできるすべてのノートブックを取得します。
- ノートブックのバックアップ: オプションで添付ファイルを含めて、完全なノートブックデータをダウンロードします。
- ノートブックIDの取得: 助成金/プロジェクト管理システムとの連携のために、機関定義のノートブック識別子を取得します。
- ノートブックメンバーの取得: 特定のノートブックにアクセスできるすべてのユーザーをリスト表示します。
- ノートブック設定の取得: ノートブックの構成と権限を取得します。
ノートブックバックアップの例:
scripts/notebook_operations.pyスクリプトを使用します。
# 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エンドポイント形式:
https://<api_url>/notebooks/notebook_backup?uid=<UID>&nbid=<NOTEBOOK_ID>&json=true&no_attachments=false
包括的なAPIメソッドのドキュメントについては、references/api_reference.mdを参照してください。
4. エントリと添付ファイルの管理
ノートブックのエントリとファイル添付ファイルを作成、変更、管理します。
エントリ操作:
- ノートブックに新しいエントリを作成します。
- 既存のエントリにコメントを追加します。
- エントリパーツ/コンポーネントを作成します。
- エントリにファイル添付ファイルをアップロードします。
添付ファイルのワークフロー:
scripts/entry_operations.pyスクリプトを使用します。
# 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..."
サポートされているファイルタイプ:
- ドキュメント(PDF、DOCX、TXT)
- 画像(PNG、JPG、TIFF)
- データファイル(CSV、XLSX、HDF5)
- 科学フォーマット(CIF、MOL、PDB)
- アーカイブ(ZIP、7Z)
5. サイトレポートと分析
ノートブックの使用状況、アクティビティ、コンプライアンスに関する機関レポートを生成します(Enterprise機能)。
利用可能なレポート:
- 詳細使用状況レポート: ユーザーアクティビティメトリクスとエンゲージメント統計
- 詳細ノートブックレポート: ノートブックのメタデータ、メンバーリスト、設定
- PDF/オフラインノートブック生成レポート: コンプライアンスのためのエクスポート追跡
- ノートブックメンバーレポート: アクセス制御とコラボレーション分析
- ノートブック設定レポート: 構成と権限の監査
レポート生成:
# 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. サードパーティ連携
LabArchivesは、多数の科学ソフトウェアプラットフォームと連携しています。このスキルは、これらの連携をプログラムで活用するためのガイダンスを提供します。
サポートされている連携:
- Protocols.io: プロトコルをLabArchivesノートブックに直接エクスポートします。
- GraphPad Prism: 分析と図をエクスポートします(バージョン8以降)。
- SnapGene: 分子生物学ワークフローの直接連携
- Geneious: バイオインフォマティクス分析のエクスポート
- Jupyter: Jupyterノートブックをエントリとして埋め込みます。
- REDCap: 臨床データ収集連携
- Qeios: 研究出版
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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:
- Call the
users/user_access_infoAPI method with login credentials - Parse the XML/JSON response to extract the user ID (UID)
- 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
- Authenticate and obtain user ID
- List all accessible notebooks
- Iterate through notebooks and backup each one
- 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
- Authenticate with LabArchives API
- Identify target notebook and entry
- Upload experimental data files
- Add metadata comments to entries
- Generate activity report
Integration workflow example (Jupyter → LabArchives)
- Export Jupyter notebook to HTML or PDF
- Use entry_operations.py to upload to LabArchives
- Add comment with execution timestamp and environment info
- 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
- Rate limiting: Implement appropriate delays between API calls to avoid throttling
- Error handling: Always wrap API calls in try-except blocks with appropriate logging
- Authentication security: Store credentials in environment variables or secure config files (never in code)
- Backup verification: After notebook backup, verify file integrity and completeness
- Incremental operations: For large notebooks, use pagination and batch processing
- 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 credentialsnotebook_operations.py: Utilities for listing, backing up, and managing notebooksentry_operations.py: Tools for creating entries and uploading attachments
references/
api_reference.md: Comprehensive API endpoint documentation with parameters and examplesauthentication_guide.md: Detailed authentication setup and configuration instructionsintegrations.md: Third-party integration setup guides and use cases
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (9,443 bytes)
- 📎 references/api_reference.md (9,012 bytes)
- 📎 references/authentication_guide.md (10,709 bytes)
- 📎 references/integrations.md (12,645 bytes)
- 📎 scripts/entry_operations.py (10,576 bytes)
- 📎 scripts/notebook_operations.py (8,677 bytes)
- 📎 scripts/setup_config.py (6,412 bytes)