Skip to content

K-Dense-AI/scientific-agent-skills / skills/opentrons-integration

opentrons-integration

Verified

Authors, reviews, migrates, simulates, and troubleshoots official Opentrons Python Protocol API v2 protocols for Flex and OT-2 robots. Use for robot-specific liquid handling, deck and labware setup, pipettes, modules, runtime parameters, liquid classes, and Opentrons App analysis. Use pylabrobot instead when one workflow must support multiple robot vendors.

scripts/absorbance_reader_template.py

View on GitHub
"""Opentrons Flex Absorbance Plate Reader workflow template.

The module is Flex-only. Confirm plate compatibility, wavelengths, sample
volume, optical method, Gripper setup, and deck clearances. Simulated readings
are zeros and simulated runs do not write CSV output.
"""

from opentrons import protocol_api

metadata = {
    "protocolName": "Flex Absorbance Reader Template",
    "author": "Customize before use",
    "description": "Initialize the reader, move a plate, and export a read.",
}

requirements = {
    "robotType": "Flex",
    "apiLevel": "2.29",
}


def run(protocol: protocol_api.ProtocolContext) -> None:
    """Read a compatible 96-well plate at 450 and 650 nm."""
    reader = protocol.load_module(
        module_name="absorbanceReaderV1",
        location="D3",
    )
    plate = protocol.load_labware(
        load_name="corning_96_wellplate_360ul_flat",
        location="C2",
        label="Assay Plate",
    )

    sample = protocol.define_liquid(
        name="Assay samples",
        description="Example plate-reader samples",
        display_color="#9467BD",
    )
    plate.load_liquid(
        wells=plate.wells(),
        volume=100,
        liquid=sample,
    )

    with protocol.group_steps(
        name="Initialize Reader",
        description="Close the empty reader and initialize two wavelengths.",
    ):
        # Required even if the physical lid begins in the closed position.
        reader.close_lid()
        reader.initialize(
            mode="multi",
            wavelengths=[450, 650],
        )

    with protocol.group_steps(
        name="Load and Read Plate",
        description="Move the plate onto the reader and export measurements.",
    ):
        reader.open_lid()
        protocol.move_labware(
            labware=plate,
            new_location=reader,
            use_gripper=True,
        )
        reader.close_lid()
        reader.read(export_filename="absorbance")

    with protocol.group_steps(
        name="Unload Plate",
        description="Return the assay plate to slot C2.",
    ):
        reader.open_lid()
        protocol.move_labware(
            labware=plate,
            new_location="C2",
            use_gripper=True,
        )

    protocol.comment(
        "Reader workflow complete. Retrieve CSV files from Recent Protocol Runs."
    )
planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies.Stars: 108kUpdated Claude CodeCodexVerifiedInstall
meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要".Stars: 108kUpdated Claude CodeCodexVerifiedInstall