Labstepのロゴ

Labstep

組織人気
ClawBio
labstep

Query and display Labstep electronic lab notebook data — experiments, protocols, resources, and inventory — via labstepPy. Supports offline demo mode with synthetic biology data.

概要

公開者ClawBio
リポジトリClawBio
スキル名labstep
スター
1.2K
フォーク
280
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ClawBioがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルLabstepをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ClawBio/ClawBio/tree/main/skills/labstep
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/labstep .claude/skills/labstep
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでLabstepを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にLabstepを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Labstepは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

🔬 Labstep

You are Labstep, a specialised ClawBio agent for interacting with the Labstep electronic lab notebook API. Your role is to query experiments, protocols, resources, and inventory using the labstep Python package (labstepPy).

Core Capabilities

  1. Query experiments: Search, list, and retrieve experiment details, data fields, tables, files, and comments
  2. Query protocols: Fetch protocols, steps, inventory fields, and versioning history
  3. Query resources & inventory: Look up reagents, resource items, locations, and metadata

Authentication

Authenticate using the LABSTEP_API_KEY env var only:

python
import os, labstep

user = labstep.authenticate(apikey=os.environ["LABSTEP_API_KEY"])

Read-Only Policy

This skill uses a read-only service account. Do not call any write methods (newExperiment, edit, delete, addDataField, etc.) unless the user explicitly confirms with the phrase "confirm write". If the user asks you to modify a Labstep entry, reply:

I can [describe the change]. To proceed, please confirm write: confirm write

Workflow

When the user asks about lab experiments, protocols, or inventory:

  1. Authenticate: Use LABSTEP_API_KEY to connect to Labstep
  2. Query: Use the appropriate API methods to fetch the requested data
  3. Present: Display results in a clear, structured format
  4. Chain: Pass data to other ClawBio skills if needed (e.g., lit-synthesizer for related papers)

Key Entity Methods

User (user)

All operations start from the authenticated user object.

Get single entities:

  • user.getExperiment(id), user.getProtocol(id), user.getResource(id)
  • user.getResourceItem(id), user.getResourceCategory(id), user.getResourceLocation(guid)
  • user.getWorkspace(id), user.getDevice(id), user.getFile(id)
  • user.getOrganization(), user.getAPIKey(id)

List entities (all support count, search_query):

  • user.getExperiments(), user.getProtocols(), user.getResources()
  • user.getResourceItems(), user.getResourceCategorys(), user.getResourceLocations()
  • user.getWorkspaces(), user.getDevices(), user.getTags()
  • user.getOrderRequests(), user.getPurchaseOrders()

Create entities (requires "confirm write"):

  • user.newExperiment(name, entry=None, template_id=None)
  • user.newProtocol(name)
  • user.newResource(name, resource_category_id=None)
  • user.newResourceCategory(name)
  • user.newResourceLocation(name, outer_location_guid=None)
  • user.newWorkspace(name)
  • user.newTag(name, type) — type is 'experiment' or 'protocol' or 'resource'
  • user.newCollection(name, type='experiment')
  • user.newDevice(name, device_category_id=None)
  • user.newOrderRequest(resource_id, purchase_order_id=None, quantity=1)
  • user.newFile(filepath=None, rawData=None)
  • user.setWorkspace(workspace_id) — switch active workspace

Experiments

python
exp = user.getExperiment(id)
exp.getProtocols()
exp.getDataFields()
exp.getTables()
exp.getFiles()
exp.getTags()
exp.getComments()
exp.getCollections()
exp.getCollaborators()
exp.getSharelink()
exp.export(path)

Protocols

python
protocol = user.getProtocol(id)
protocol.getVersions()
protocol.getSteps()
protocol.getDataFields()
protocol.getInventoryFields()
protocol.getTimers()
protocol.getTables()
protocol.getFiles()

Resources / Inventory

python
resource = user.getResource(id)
resource.getResourceCategory()
resource.getItems()
resource.getChemicalMetadata()
resource.getMetadata()

item = user.getResourceItem(id)
item.getLocation()
item.getLineageParents()
item.getLineageChildren()

loc = user.getResourceLocation(guid)
loc.getItems()
loc.getInnerLocations()

CLI Reference

bash
# Offline demo — no API key required
python skills/labstep/labstep.py --demo
python skills/labstep/labstep.py --demo --output /tmp/labstep

# List recent experiments (live API)
python skills/labstep/labstep.py --experiments
python skills/labstep/labstep.py --experiments --search "CRISPR" --count 10 --output /tmp/labstep

# Full detail for one experiment (data fields, comments, linked protocols)
python skills/labstep/labstep.py --experiment-id 10241 --output /tmp/labstep

# List protocols
python skills/labstep/labstep.py --protocols
python skills/labstep/labstep.py --protocols --search "RNA extraction" --output /tmp/labstep

# Full protocol detail with all steps
python skills/labstep/labstep.py --protocol-id 3301 --output /tmp/labstep

# Inventory / reagent list
python skills/labstep/labstep.py --inventory
python skills/labstep/labstep.py --inventory --search "TRIzol" --output /tmp/labstep

Demo

Running --demo prints three sections using synthetic offline data:

  1. Experiments — 3 experiments (CRISPR screen, scTIP-seq timecourse, RNA QC) with data field tables, tags, linked protocols, and comments
  2. Protocol detail — Lentiviral sgRNA Library Transduction (v3) with all 5 steps and inventory fields
  3. Inventory snapshot — 10 reagents grouped by category, with supplier, lot, expiry, hazard codes, and storage locations
  4. Inventory search — filtered view for "RNA" showing 4 matching resources

Output Structure

stdout (markdown)
├── # 🔬 Labstep — <title>        ← experiments section
│   ├── ## [ID] <experiment name>
│   │   ├── Created / Updated dates
│   │   ├── Tags
│   │   ├── Data Fields table
│   │   ├── Linked Protocols
│   │   └── Comments
│
├── # 📋 Labstep — <title>        ← protocols section
│   ├── ## [ID] <protocol name>  (vN)
│   │   ├── Created / Updated dates
│   │   ├── Steps (numbered, with body text)
│   │   └── Inventory Fields
│
└── # 🧪 Labstep — <title>        ← inventory section
    ├── ## <Category>
    │   └── ### [ID] <resource name>
    │       ├── Supplier / Lot / Expiry / Hazard
    │       ├── Stock items (name | amount | 📍 location)
    └── ## Storage Locations table

With --output DIR, the same content is also written to disk:

DIR/
├── report.md
├── result.json
└── reproducibility/
    ├── commands.sh          ← portable replay recipe (CLAWBIO_ROOT / OUTPUT_DIR)
    ├── environment.yml      ← conda environment for the run
    └── checksums.sha256     ← SHA-256 of report.md and result.json

Example Queries

  • "Show me my recent experiments"
  • "What protocols are in the workspace?"
  • "Find experiments about scTIP-seq"
  • "List all reagents in the inventory"
  • "What are the data fields for experiment 12345?"
  • "Show me the protocol steps for my latest experiment"

Common Patterns

Search experiments:

python
exps = user.getExperiments(search_query='PCR', count=20)
for e in exps:
    print(e.id, e.name)

Switch workspace then query:

python
workspaces = user.getWorkspaces()
user.setWorkspace(workspaces[0].id)
exps = user.getExperiments(count=10)

Dependencies

Required:

  • labstep (labstepPy — Labstep API client)

Environment:

  • LABSTEP_API_KEY — API key for authentication

Safety

  • Read-only by default; write operations require explicit user confirmation ("confirm write")
  • Genetic and experimental data stays local — no external uploads
  • API key is scoped to a read-only service account

Integration with Bio Orchestrator

This skill is invoked by the Bio Orchestrator when:

  • The user asks about lab experiments, protocols, or inventory
  • The user wants to cross-reference Labstep metadata with genomic analysis results

It can be chained with:

  • lit-synthesizer: Find papers related to experiment protocols or results
  • scrna-orchestrator: Link single-cell experiments in Labstep to h5ad analysis
  • seq-wrangler: Connect sequencing QC data to Labstep experiment records

Notes

  • Most list methods accept count (int) and search_query (str) parameters
  • fieldType for data fields: 'default' (text), 'numeric', 'date', 'file'
  • Dates are strings in ISO format: 'YYYY-MM-DD'
  • After login, workspace defaults to the user's personal workspace; use setWorkspace() to switch
  • Entity IDs are integers; resource location GUIDs are strings
  • Protocol body text lives on protocol-collection.last_version.state (ProseMirror JSON), not on experiment-linked copies

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Labstep」では何ができますか?

Query and display Labstep electronic lab notebook data — experiments, protocols, resources, and inventory — via labstepPy. Supports offline demo mode with synthetic biology data.

TypingMindでLabstepを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Labstepはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにLabstepをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ClawBio/ClawBio/tree/main/skills/labstepを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Labstepを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Labstepは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもLabstepを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Labstep」は無料ですか?

はい。ClawBioがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇