Writes and validates LabArchives ELN integration code, drafts entry HTML and upload plans, and audits exported notebooks offline for structure and provenance gaps. No account needed for code review or offline audit; live notebook access uses the user's own API keys.
Ships in alterlab-lab-integrations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
LabArchives is an electronic lab notebook platform for research documentation and data management. Its REST API (XML responses, HMAC-signed requests) exposes notebooks, the page tree, entries, attachments, and backups. The core job here needs no account: write and review the integration, draft entry content, and audit a notebook the user has exported. Only live notebook access uses their credentials.
labapi (maintained; uv run --with "labapi[dotenv]" python ...) or the git-only labarchives-py the bundled scripts use. Check method names rather than guessing: in labapi 1.2.0 (verified 2026-10-22) a notebook has .export(dest, source="auto"|"walk"|"backup") and .backup(dest, include_attachments=, as_json=), entries are created with page.entries.create(TextEntry, html) / create(AttachmentEntry, Attachment.from_file(...)), and the client reads API_URL/ACCESS_KEYID/ACCESS_PWD from the environment.sig = b64(HMAC(access_password, akid + method + expires)), expires in epoch-ms. The two clients differ on the hash — labapi uses HMAC-SHA512, the git labarchives-py wrapper uses HMAC-SHA1 — so the signature must be tested against the tenant, not assumed; match the client to what your institution's API expects.labapi's notebook.export(dest) writes a folder mirror (<order>_<name>/ directories holding NN_text.html, NN_text.txt, NN_<filename>). python3 scripts/analyze_export.py <dir> walks that tree (or any same-shape export/backup) with no credentials and reports pages, text vs attachment entries, word counts, attachment types, and provenance gaps — pages that hold raw-data attachments with no text entry describing them.add_entry, the caption/provenance note for an attachment, the page-tree layout — ready to push once the user supplies credentials.notebook_operations.py, entry_operations.py) read config.yaml and exit non-zero with a clear message if it is absent; they run only against the user's own notebook. Without credentials, stop at the validated code and the offline audit — never invent notebook contents.This skill should be used when:
| Scenario | Use Instead |
|---|---|
| Benchling registry, inventory, ELN entries, or workflow tasks | alterlab-benchling |
| Searching, writing, or publishing protocols on protocols.io | alterlab-protocolsio |
| Designing REDCap instruments/data dictionaries or CDISC mapping | alterlab-redcap-cdisc |
| Choosing a data repository (Zenodo, Dryad, OSF) or FAIR data-sharing plan | alterlab-open-science |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-benchling) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Two Python clients exist; pick by task:
| Client | Install | Use for |
|---|---|---|
| labapi (NIMH DSST; PyPI, current 1.2.0, Python >=3.10) | uv pip install "labapi[dotenv]" | Recommended for new work: signing, XML parsing, page-tree navigation, text entries, attachments, backups |
labarchives-py (labarchivespy import; git-only) | uv pip install "git+https://github.com/mcmero/labarchives-py" | Minimal signed GET wrapper (make_call); used by the bundled scripts |
Prerequisites (only for live notebook access; the keyless path above needs none):
password for users/user_access_info, not your login password.Regional API endpoints (labarchives-py api_url; labapi's API_URL omits the trailing /api):
https://api.labarchives.com/apihttps://auapi.labarchives.com/apihttps://ukapi.labarchives.com/apiCreate the bundled scripts' config.yaml with python3 scripts/setup_config.py (prompts for secrets without echoing them and writes the file with mode 600):
api_url: https://api.labarchives.com/api # or regional endpoint
access_key_id: YOUR_ACCESS_KEY_ID
access_password: YOUR_ACCESS_PASSWORD
user_email: [email protected]
user_external_password: YOUR_LA_APP_AUTH_TOKEN
Every call is signed: the client appends akid, expires (ms timestamp), and sig = base64 HMAC of akid + method name + expires keyed by the access password, so the password itself is never sent. For detailed setup and troubleshooting, see references/authentication_guide.md.
users/user_access_info returns the user ID (UID) and the notebooks the user can open (<notebook> elements with <id>, <name>, <is-default>):
# labapi
import os
from labapi import Client
with Client() as client: # reads API_URL, ACCESS_KEYID, ACCESS_PWD
user = client.login(os.environ["LA_EMAIL"], os.environ["LA_APP_TOKEN"])
print(list(user.notebooks)) # notebook names
page = user.notebooks["Lab Notebook"].traverse("Experiments/2026/Run-12")
# labarchives-py (signed GET)
import xml.etree.ElementTree as ET
from labarchivespy.client import Client
client = Client(api_url, access_key_id, access_password)
response = client.make_call('users', 'user_access_info',
params={'login_or_email': user_email, 'password': auth_token})
root = ET.fromstring(response.content)
uid = root[0].text
notebooks = [(nb.findtext('id'), nb.findtext('name')) for nb in root.iter('notebook')]
The labarchives-py wrapper does not URL-encode parameter values, so pass only simple values through make_call (or use labapi).
notebooks/notebook_backup (params uid, nbid, optional json=true, no_attachments=true) returns the notebook as a 7-Zip archive; only the notebook owner can download it (error 4547 otherwise).
# Back up one notebook (credentials come from config.yaml)
python3 scripts/notebook_operations.py backup --nbid NOTEBOOK_ID
# Without attachments, JSON data inside the archive
python3 scripts/notebook_operations.py backup --nbid NOTEBOOK_ID --json --no-attachments
# List notebooks, or back up every notebook you can open
python3 scripts/notebook_operations.py list
python3 scripts/notebook_operations.py backup-all --output backups/
With labapi: user.notebooks["Lab Notebook"].backup("backups/lab_notebook.7z").
For the API method reference, see references/api_reference.md.
Entries live on pages of the notebook tree, so writes need the notebook ID (nbid) and the page tree ID (pid):
| Operation | API method | Notes |
|---|---|---|
| Create a page or folder | tree_tools/insert_node | parent_tree_id, display_text, is_folder |
| Add a text entry | entries/add_entry (POST) | form field entry_data; part_type = text entry (HTML), plain text entry, or heading |
| Add an attachment | entries/add_attachment (POST) | raw file bytes as the body; filename, caption, change_description |
| Update a text entry | entries/update_entry (POST) | eid + entry_data |
| List a page's entries | tree_tools/get_entries_for_page |
# labapi: text entry + attachment on a page
from labapi import Attachment, AttachmentEntry, TextEntry
page.entries.create(TextEntry, "<p>Run 12 complete; see attached plate map.</p>")
page.entries.create(AttachmentEntry, Attachment.from_file("plate_map.pdf"))
# Bundled script (labarchives-py signing, POSTs issued by the script)
python3 scripts/entry_operations.py create --nbid NOTEBOOK_ID --pid PAGE_ID --content "Results from today's experiment..."
python3 scripts/entry_operations.py upload --nbid NOTEBOOK_ID --pid PAGE_ID --file /path/to/file.pdf --caption "Raw data"
python3 scripts/entry_operations.py batch-upload --nbid NOTEBOOK_ID --pid PAGE_ID --directory ./experiment_data/
Comments are not covered by either client; look up the comment method in the LabArchives API notebook before scripting it. Record provenance (instrument, software version, timestamp) in the attachment caption or a text entry instead. Check the per-file size limit (users/max_file_size) before large uploads.
LabArchives documents institution-level reports (detailed usage, notebook inventory, PDF/offline generation, members, settings) under a site_reports class for Enterprise administrators. The method names in references/api_reference.md are unverified here — confirm them in your institution's API documentation before use.
LabArchives integrates with Protocols.io, GraphPad Prism (8+), SnapGene, Geneious, Jupyter, REDCap, Qeios, and SciSpace, mostly through in-app export features; newer integrations use OAuth. Programmatic bridges (Jupyter → entry, REDCap export → entry, protocol import) are in references/integrations.md.
scripts/setup_config.py)python3 scripts/notebook_operations.py backup-all --output backups/notebook.traverse("Experiments/2026/Run-12") in labapi, or its tree ID).ipynb as an attachment on the experiment pagerequirements.txt/environment.yml) as a second attachmentnbid/pid exist and the user can open the notebookusers/max_file_size and the file typeFor additional support, contact LabArchives at [email protected].
analyze_export.py: keyless — audit an exported notebook tree (or backup) offline for structure and provenance gaps; no credentialssetup_config.py: interactive configuration file generator (hidden secret prompts, mode 600)notebook_operations.py: list notebooks and back them up (single or all) — needs config.yamlentry_operations.py: add text entries and upload attachments to a page — needs config.yamlapi_reference.md: API classes, methods, and parametersauthentication_guide.md: authentication setup and configurationintegrations.md: third-party integration setup guides and codePart of the AlterLab Academic Skills suite.
evals/evals.json (opens in a new tab)evals/fixtures/export_Lab_Notebook/00_Experiments/00_Run-11/00_text.html (opens in a new tab)evals/fixtures/export_Lab_Notebook/00_Experiments/00_Run-11/01_platemap.pdf (opens in a new tab)evals/fixtures/export_Lab_Notebook/00_Experiments/01_Run-12/00_raw.csv (opens in a new tab)evals/fixtures/export_Lab_Notebook/00_Experiments/01_Run-12/01_gel.tif (opens in a new tab)evals/fixtures/export_Lab_Notebook/01_Protocols/00_Extraction/00_text.txt (opens in a new tab)references/api_reference.md (opens in a new tab)references/authentication_guide.md (opens in a new tab)references/integrations.md (opens in a new tab)scripts/analyze_export.py (opens in a new tab)scripts/entry_operations.py (opens in a new tab)scripts/notebook_operations.py (opens in a new tab)scripts/setup_config.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/alterlab-lab-integrations:alterlab-labarchivefrom alterlab-lab-integrations
npx claudepluginhub alterlab-ieu/alterlab-academic-skills --plugin alterlab-lab-integrations2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
9 skills in this plugin
/alterlab-benchlingWrites Benchling integration code against the official benchling-sdk — registry DNA/protein entities, inventory, ELN entries, workflow tasks, Benchling Apps, Data Warehouse SQL — and validates every create/update payload offline by building the SDK's typed models and serializing them, with no Benchling account; analyses Benchling CSV/warehouse exports locally. Running the code against a tenant is an optional step with the user's own API key or OAuth app. Use when scripting a Benchling registry import, inventory audit, ELN entry or workflow task, checking a Benchling payload or script before it touches a tenant, analysing a Benchling export, or querying the Benchling Data Warehouse. Part of the AlterLab Academic Skills suite./alterlab-dnanexusDevelops genomics apps, applets and workflows for the DNAnexus platform with the dxpy Python SDK and dx CLI — writes dxapp.json and entry-point code, lints the spec offline, runs entry points locally in dxpy's debug harness, and checks WDL for dxCompiler with miniwdl, all without an account; building, uploading data and running jobs on the platform is an optional step with the user's own DNAnexus login. Use when building or running a DNAnexus app, applet, or workflow, writing dxapp.json, using dx-app-wizard or dx build, calling dxpy (find_data_objects, DXApplet.run, upload_local_file), or uploading/downloading sequencing data on DNAnexus. For LatchBio (Latch SDK @workflow/@task, LatchFile) use alterlab-latchbio instead; for Benchling LIMS use alterlab-benchling. Part of the AlterLab Academic Skills suite.Other plugins' skills for the same job