Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Interact with the Labstep electronic lab notebook API using labstepPy. Query experiments, protocols, resources, inventory, and other lab entities.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | — | — |
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-03 | ✗→✓ | ▲ Improved | — | — |
| case-15 | ✗→✓ | ▲ Improved | — | — |
| case-18 | ✗→✓ | ▲ Improved | — | — |
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).
Authenticate using the LABSTEP_API_KEY env var, or fall back to .claude/settings.json:
pythonimport 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())
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
When the user asks about lab experiments, protocols, or inventory:
get_labstep_apikey() to connect to Labstepuser)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 workspacepythonexp = user.getExperiment(id) exp.getProtocols() exp.getDataFields() exp.getTables() exp.getFiles() exp.getTags() exp.getComments() exp.getCollections() exp.getCollaborators() exp.getSharelink() exp.export(path)
pythonprotocol = user.getProtocol(id) protocol.getVersions() protocol.getSteps() protocol.getDataFields() protocol.getInventoryFields() protocol.getTimers() protocol.getTables() protocol.getFiles()
pythonresource = 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()
Search experiments:
pythonexps = user.getExperiments(search_query='PCR', count=20) for e in exps: print(e.id, e.name)
Switch workspace then query:
pythonworkspaces = user.getWorkspaces() user.setWorkspace(workspaces[0].id) exps = user.getExperiments(count=10)
Required:
labstep (labstepPy — Labstep API client)Environment:
LABSTEP_API_KEY — API key for authentication (or configure in .claude/settings.json)This skill is invoked by the Bio Orchestrator when:
It can be chained with:
count (int) and search_query (str) parametersfieldType for data fields: 'default' (text), 'numeric', 'date', 'file''YYYY-MM-DD'setWorkspace() to switchprotocol-collection.last_version.state (ProseMirror JSON), not on experiment-linked copies| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +59 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.