Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills Aโ€“Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Labstep

ASecurity

Interact with the Labstep electronic lab notebook API using labstepPy. Query experiments, protocols, resources, inventory, and other lab entities.

2,984 stars
0 votes
0 copies
1 views
Added 5/31/2026
ai-agentspythongoapi

Works with

cliapi

Security Analysis

A100/100

Scanned 5/31/2026

Install to Claude Code

$npx -y skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill labstep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Labstep?

Add the live security badge to your README โ€” it updates automatically with every re-scan.

Security grade badge for Labstep
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/freedomintelligence-labstep/badge)](https://www.skillsdirectory.com/skills/freedomintelligence-labstep)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: labstep
description: Interact with the Labstep electronic lab notebook API using labstepPy. Query experiments, protocols, resources, inventory, and other lab entities.
version: 0.1.0
metadata:
  openclaw:
    requires:
      bins:
        - python3
      env:
        - LABSTEP_API_KEY
      config: []
    always: false
    emoji: "๐Ÿ”ฌ"
    homepage: https://www.labstep.com
    os: [macos, linux]
    install:
      - kind: uv
        package: labstep
        bins: []
---

# ๐Ÿ”ฌ 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, or fall back to `.claude/settings.json`:

```python
import os, json, labstep
from pathlib import Path

def get_labstep_apikey() -> str:
    """Get Labstep API key from env var or .claude/settings.json."""
    key = os.environ.get("LABSTEP_API_KEY")
    if key:
        return key
    settings = Path(".claude/settings.json")
    if settings.exists():
        cfg = json.loads(settings.read_text())
        key = cfg.get("skillsConfig", {}).get("labstep", {}).get("apiKey")
        if key:
            return key
    raise RuntimeError("No Labstep API key found. Set LABSTEP_API_KEY or configure .claude/settings.json")

user = labstep.authenticate(apikey=get_labstep_apikey())
```

## 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 `get_labstep_apikey()` 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()
```

## 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 (or configure in `.claude/settings.json`)

## 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

Attribution

FreedomIntelligenceFreedomIntelligence
View sourceMore from FreedomIntelligence โ†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots ยท $299/mo ยท GSC-verified traffic ยท sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants โ€” handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents โ†’