[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6R3BGEXNB8K8GDBFT8EFNKA":3,"skill-same:01M6R3BGEXNB8K8GDBFT8EFNKA":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M6R3BGEXNB8K8GDBFT8EFNKA","opentrons-integration",null,"Lab automation platform for Flex\u002FOT-2 robots. Write Protocol API v2 protocols, liquid handling, hardware modules (heater-shaker, thermocycler), labware management, for automated pipetting workflows.","Mishit18\u002Fclaude-code-templates","Mishit18","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F244127857?v=4","01M6QXBYKWM76HSKYDNWSKKE41","Mishit Sharma","01M6QXBYRJ0CAVM51S1RTEKTZZ",1,"MIT","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"integration","opentrons integration","automation","workflows","protocol","protocols","api","write","management","modules","hardware","platform","lab","for","liquid","2026-11-10 10:12:30",false,"---\nname: opentrons-integration\ndescription: \"Lab automation platform for Flex\u002FOT-2 robots. Write Protocol API v2 protocols, liquid handling, hardware modules (heater-shaker, thermocycler), labware management, for automated pipetting workflows.\"\n---\n\n# Opentrons Integration\n\n## Overview\n\nOpentrons is a Python-based lab automation platform for Flex and OT-2 robots. Write Protocol API v2 protocols for liquid handling, control hardware modules (heater-shaker, thermocycler), manage labware, for automated pipetting workflows.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Writing Opentrons Protocol API v2 protocols in Python\n- Automating liquid handling workflows on Flex or OT-2 robots\n- Controlling hardware modules (temperature, magnetic, heater-shaker, thermocycler)\n- Setting up labware configurations and deck layouts\n- Implementing complex pipetting operations (serial dilutions, plate replication, PCR setup)\n- Managing tip usage and optimizing protocol efficiency\n- Working with multi-channel pipettes for 96-well plate operations\n- Simulating and testing protocols before robot execution\n\n## Core Capabilities\n\n### 1. Protocol Structure and Metadata\n\nEvery Opentrons protocol follows a standard structure:\n\n```python\nfrom opentrons import protocol_api\n\n# Metadata\nmetadata = {\n    'protocolName': 'My Protocol',\n    'author': 'Name \u003Cemail@example.com>',\n    'description': 'Protocol description',\n    'apiLevel': '2.19'  # Use latest available API version\n}\n\n# Requirements (optional)\nrequirements = {\n    'robotType': 'Flex',  # or 'OT-2'\n    'apiLevel': '2.19'\n}\n\n# Run function\ndef run(protocol: protocol_api.ProtocolContext):\n    # Protocol commands go here\n    pass\n```\n\n**Key elements:**\n- Import `protocol_api` from `opentrons`\n- Define `metadata` dict with protocolName, author, description, apiLevel\n- Optional `requirements` dict for robot type and API version\n- Implement `run()` function receiving `ProtocolContext` as parameter\n- All protocol logic goes inside the `run()` function\n\n### 2. Loading Hardware\n\n**Loading Instruments (Pipettes):**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load pipette on specific mount\n    left_pipette = protocol.load_instrument(\n        'p1000_single_flex',  # Instrument name\n        'left',               # Mount: 'left' or 'right'\n        tip_racks=[tip_rack]  # List of tip rack labware objects\n    )\n```\n\nCommon pipette names:\n- Flex: `p50_single_flex`, `p1000_single_flex`, `p50_multi_flex`, `p1000_multi_flex`\n- OT-2: `p20_single_gen2`, `p300_single_gen2`, `p1000_single_gen2`, `p20_multi_gen2`, `p300_multi_gen2`\n\n**Loading Labware:**\n\n```python\n# Load labware directly on deck\nplate = protocol.load_labware(\n    'corning_96_wellplate_360ul_flat',  # Labware API name\n    'D1',                                # Deck slot (Flex: A1-D3, OT-2: 1-11)\n    label='Sample Plate'                 # Optional display label\n)\n\n# Load tip rack\ntip_rack = protocol.load_labware('opentrons_flex_96_tiprack_1000ul', 'C1')\n\n# Load labware on adapter\nadapter = protocol.load_adapter('opentrons_flex_96_tiprack_adapter', 'B1')\ntips = adapter.load_labware('opentrons_flex_96_tiprack_200ul')\n```\n\n**Loading Modules:**\n\n```python\n# Temperature module\ntemp_module = protocol.load_module('temperature module gen2', 'D3')\ntemp_plate = temp_module.load_labware('corning_96_wellplate_360ul_flat')\n\n# Magnetic module\nmag_module = protocol.load_module('magnetic module gen2', 'C2')\nmag_plate = mag_module.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n\n# Heater-Shaker module\nhs_module = protocol.load_module('heaterShakerModuleV1', 'D1')\nhs_plate = hs_module.load_labware('corning_96_wellplate_360ul_flat')\n\n# Thermocycler module (takes up specific slots automatically)\ntc_module = protocol.load_module('thermocyclerModuleV2')\ntc_plate = tc_module.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n```\n\n### 3. Liquid Handling Operations\n\n**Basic Operations:**\n\n```python\n# Pick up tip\npipette.pick_up_tip()\n\n# Aspirate (draw liquid in)\npipette.aspirate(\n    volume=100,           # Volume in µL\n    location=source['A1'] # Well or location object\n)\n\n# Dispense (expel liquid)\npipette.dispense(\n    volume=100,\n    location=dest['B1']\n)\n\n# Drop tip\npipette.drop_tip()\n\n# Return tip to rack\npipette.return_tip()\n```\n\n**Complex Operations:**\n\n```python\n# Transfer (combines pick_up, aspirate, dispense, drop_tip)\npipette.transfer(\n    volume=100,\n    source=source_plate['A1'],\n    dest=dest_plate['B1'],\n    new_tip='always'  # 'always', 'once', or 'never'\n)\n\n# Distribute (one source to multiple destinations)\npipette.distribute(\n    volume=50,\n    source=reservoir['A1'],\n    dest=[plate['A1'], plate['A2'], plate['A3']],\n    new_tip='once'\n)\n\n# Consolidate (multiple sources to one destination)\npipette.consolidate(\n    volume=50,\n    source=[plate['A1'], plate['A2'], plate['A3']],\n    dest=reservoir['A1'],\n    new_tip='once'\n)\n```\n\n**Advanced Techniques:**\n\n```python\n# Mix (aspirate and dispense in same location)\npipette.mix(\n    repetitions=3,\n    volume=50,\n    location=plate['A1']\n)\n\n# Air gap (prevent dripping)\npipette.aspirate(100, source['A1'])\npipette.air_gap(20)  # 20µL air gap\npipette.dispense(120, dest['A1'])\n\n# Blow out (expel remaining liquid)\npipette.blow_out(location=dest['A1'].top())\n\n# Touch tip (remove droplets on tip exterior)\npipette.touch_tip(location=plate['A1'])\n```\n\n**Flow Rate Control:**\n\n```python\n# Set flow rates (µL\u002Fs)\npipette.flow_rate.aspirate = 150\npipette.flow_rate.dispense = 300\npipette.flow_rate.blow_out = 400\n```\n\n### 4. Accessing Wells and Locations\n\n**Well Access Methods:**\n\n```python\n# By name\nwell_a1 = plate['A1']\n\n# By index\nfirst_well = plate.wells()[0]\n\n# All wells\nall_wells = plate.wells()  # Returns list\n\n# By rows\nrows = plate.rows()  # Returns list of lists\nrow_a = plate.rows()[0]  # All wells in row A\n\n# By columns\ncolumns = plate.columns()  # Returns list of lists\ncolumn_1 = plate.columns()[0]  # All wells in column 1\n\n# Wells by name (dictionary)\nwells_dict = plate.wells_by_name()  # {'A1': Well, 'A2': Well, ...}\n```\n\n**Location Methods:**\n\n```python\n# Top of well (default: 1mm below top)\npipette.aspirate(100, well.top())\npipette.aspirate(100, well.top(z=5))  # 5mm above top\n\n# Bottom of well (default: 1mm above bottom)\npipette.aspirate(100, well.bottom())\npipette.aspirate(100, well.bottom(z=2))  # 2mm above bottom\n\n# Center of well\npipette.aspirate(100, well.center())\n```\n\n### 5. Hardware Module Control\n\n**Temperature Module:**\n\n```python\n# Set temperature\ntemp_module.set_temperature(celsius=4)\n\n# Wait for temperature\ntemp_module.await_temperature(celsius=4)\n\n# Deactivate\ntemp_module.deactivate()\n\n# Check status\ncurrent_temp = temp_module.temperature  # Current temperature\ntarget_temp = temp_module.target  # Target temperature\n```\n\n**Magnetic Module:**\n\n```python\n# Engage (raise magnets)\nmag_module.engage(height_from_base=10)  # mm from labware base\n\n# Disengage (lower magnets)\nmag_module.disengage()\n\n# Check status\nis_engaged = mag_module.status  # 'engaged' or 'disengaged'\n```\n\n**Heater-Shaker Module:**\n\n```python\n# Set temperature\nhs_module.set_target_temperature(celsius=37)\n\n# Wait for temperature\nhs_module.wait_for_temperature()\n\n# Set shake speed\nhs_module.set_and_wait_for_shake_speed(rpm=500)\n\n# Close labware latch\nhs_module.close_labware_latch()\n\n# Open labware latch\nhs_module.open_labware_latch()\n\n# Deactivate heater\nhs_module.deactivate_heater()\n\n# Deactivate shaker\nhs_module.deactivate_shaker()\n```\n\n**Thermocycler Module:**\n\n```python\n# Open lid\ntc_module.open_lid()\n\n# Close lid\ntc_module.close_lid()\n\n# Set lid temperature\ntc_module.set_lid_temperature(celsius=105)\n\n# Set block temperature\ntc_module.set_block_temperature(\n    temperature=95,\n    hold_time_seconds=30,\n    hold_time_minutes=0.5,\n    block_max_volume=50  # µL per well\n)\n\n# Execute profile (PCR cycling)\nprofile = [\n    {'temperature': 95, 'hold_time_seconds': 30},\n    {'temperature': 57, 'hold_time_seconds': 30},\n    {'temperature': 72, 'hold_time_seconds': 60}\n]\ntc_module.execute_profile(\n    steps=profile,\n    repetitions=30,\n    block_max_volume=50\n)\n\n# Deactivate\ntc_module.deactivate_lid()\ntc_module.deactivate_block()\n```\n\n**Absorbance Plate Reader:**\n\n```python\n# Initialize and read\nresult = plate_reader.read(wavelengths=[450, 650])\n\n# Access readings\nabsorbance_data = result  # Dict with wavelength keys\n```\n\n### 6. Liquid Tracking and Labeling\n\n**Define Liquids:**\n\n```python\n# Define liquid types\nwater = protocol.define_liquid(\n    name='Water',\n    description='Ultrapure water',\n    display_color='#0000FF'  # Hex color code\n)\n\nsample = protocol.define_liquid(\n    name='Sample',\n    description='Cell lysate sample',\n    display_color='#FF0000'\n)\n```\n\n**Load Liquids into Wells:**\n\n```python\n# Load liquid into specific wells\nreservoir['A1'].load_liquid(liquid=water, volume=50000)  # µL\nplate['A1'].load_liquid(liquid=sample, volume=100)\n\n# Mark wells as empty\nplate['B1'].load_empty()\n```\n\n### 7. Protocol Control and Utilities\n\n**Execution Control:**\n\n```python\n# Pause protocol\nprotocol.pause(msg='Replace tip box and resume')\n\n# Delay\nprotocol.delay(seconds=60)\nprotocol.delay(minutes=5)\n\n# Comment (appears in logs)\nprotocol.comment('Starting serial dilution')\n\n# Home robot\nprotocol.home()\n```\n\n**Conditional Logic:**\n\n```python\n# Check if simulating\nif protocol.is_simulating():\n    protocol.comment('Running in simulation mode')\nelse:\n    protocol.comment('Running on actual robot')\n```\n\n**Rail Lights (Flex only):**\n\n```python\n# Turn lights on\nprotocol.set_rail_lights(on=True)\n\n# Turn lights off\nprotocol.set_rail_lights(on=False)\n```\n\n### 8. Multi-Channel and 8-Channel Pipetting\n\nWhen using multi-channel pipettes:\n\n```python\n# Load 8-channel pipette\nmulti_pipette = protocol.load_instrument(\n    'p300_multi_gen2',\n    'left',\n    tip_racks=[tips]\n)\n\n# Access entire column with single well reference\nmulti_pipette.transfer(\n    volume=100,\n    source=source_plate['A1'],  # Accesses entire column 1\n    dest=dest_plate['A1']       # Dispenses to entire column 1\n)\n\n# Use rows() for row-wise operations\nfor row in plate.rows():\n    multi_pipette.transfer(100, reservoir['A1'], row[0])\n```\n\n### 9. Common Protocol Patterns\n\n**Serial Dilution:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load labware\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'D1')\n    reservoir = protocol.load_labware('nest_12_reservoir_15ml', 'D2')\n    plate = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D3')\n\n    # Load pipette\n    p300 = protocol.load_instrument('p300_single_flex', 'left', tip_racks=[tips])\n\n    # Add diluent to all wells except first\n    p300.transfer(100, reservoir['A1'], plate.rows()[0][1:])\n\n    # Serial dilution across row\n    p300.transfer(\n        100,\n        plate.rows()[0][:11],  # Source: wells 0-10\n        plate.rows()[0][1:],   # Dest: wells 1-11\n        mix_after=(3, 50),     # Mix 3x with 50µL after dispense\n        new_tip='always'\n    )\n```\n\n**Plate Replication:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load labware\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_1000ul', 'C1')\n    source = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D1')\n    dest = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D2')\n\n    # Load pipette\n    p1000 = protocol.load_instrument('p1000_single_flex', 'left', tip_racks=[tips])\n\n    # Transfer from all wells in source to dest\n    p1000.transfer(\n        100,\n        source.wells(),\n        dest.wells(),\n        new_tip='always'\n    )\n```\n\n**PCR Setup:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load thermocycler\n    tc_mod = protocol.load_module('thermocyclerModuleV2')\n    tc_plate = tc_mod.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n\n    # Load tips and reagents\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'C1')\n    reagents = protocol.load_labware('opentrons_24_tuberack_nest_1.5ml_snapcap', 'D1')\n\n    # Load pipette\n    p300 = protocol.load_instrument('p300_single_flex', 'left', tip_racks=[tips])\n\n    # Open thermocycler lid\n    tc_mod.open_lid()\n\n    # Distribute master mix\n    p300.distribute(\n        20,\n        reagents['A1'],\n        tc_plate.wells(),\n        new_tip='once'\n    )\n\n    # Add samples (example for first 8 wells)\n    for i, well in enumerate(tc_plate.wells()[:8]):\n        p300.transfer(5, reagents.wells()[i+1], well, new_tip='always')\n\n    # Run PCR\n    tc_mod.close_lid()\n    tc_mod.set_lid_temperature(105)\n\n    # PCR profile\n    tc_mod.set_block_temperature(95, hold_time_seconds=180)\n\n    profile = [\n        {'temperature': 95, 'hold_time_seconds': 15},\n        {'temperature': 60, 'hold_time_seconds': 30},\n        {'temperature': 72, 'hold_time_seconds': 30}\n    ]\n    tc_mod.execute_profile(steps=profile, repetitions=35, block_max_volume=25)\n\n    tc_mod.set_block_temperature(72, hold_time_minutes=5)\n    tc_mod.set_block_temperature(4)\n\n    tc_mod.deactivate_lid()\n    tc_mod.open_lid()\n```\n\n## Best Practices\n\n1. **Always specify API level**: Use the latest stable API version in metadata\n2. **Use meaningful labels**: Label labware for easier identification in logs\n3. **Check tip availability**: Ensure sufficient tips for protocol completion\n4. **Add comments**: Use `protocol.comment()` for debugging and logging\n5. **Simulate first**: Always test protocols in simulation before running on robot\n6. **Handle errors gracefully**: Add pauses for manual intervention when needed\n7. **Consider timing**: Use delays when protocols require incubation periods\n8. **Track liquids**: Use liquid tracking for better setup validation\n9. **Optimize tip usage**: Use `new_tip='once'` when appropriate to save tips\n10. **Control flow rates**: Adjust flow rates for viscous or volatile liquids\n\n## Troubleshooting\n\n**Common Issues:**\n\n- **Out of tips**: Verify tip rack capacity matches protocol requirements\n- **Labware collisions**: Check deck layout for spatial conflicts\n- **Volume errors**: Ensure volumes don't exceed well or pipette capacities\n- **Module not responding**: Verify module is properly connected and firmware is updated\n- **Inaccurate volumes**: Calibrate pipettes and check for air bubbles\n- **Protocol fails in simulation**: Check API version compatibility and labware definitions\n\n## Resources\n\nFor detailed API documentation, see `references\u002Fapi_reference.md` in this skill directory.\n\nFor example protocol templates, see `scripts\u002F` directory.\n\n","# Opentrons Integration\n\n## Overview\n\nOpentrons is a Python-based lab automation platform for Flex and OT-2 robots. Write Protocol API v2 protocols for liquid handling, control hardware modules (heater-shaker, thermocycler), manage labware, for automated pipetting workflows.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Writing Opentrons Protocol API v2 protocols in Python\n- Automating liquid handling workflows on Flex or OT-2 robots\n- Controlling hardware modules (temperature, magnetic, heater-shaker, thermocycler)\n- Setting up labware configurations and deck layouts\n- Implementing complex pipetting operations (serial dilutions, plate replication, PCR setup)\n- Managing tip usage and optimizing protocol efficiency\n- Working with multi-channel pipettes for 96-well plate operations\n- Simulating and testing protocols before robot execution\n\n## Core Capabilities\n\n### 1. Protocol Structure and Metadata\n\nEvery Opentrons protocol follows a standard structure:\n\n```python\nfrom opentrons import protocol_api\n\n# Metadata\nmetadata = {\n    'protocolName': 'My Protocol',\n    'author': 'Name \u003Cemail@example.com>',\n    'description': 'Protocol description',\n    'apiLevel': '2.19'  # Use latest available API version\n}\n\n# Requirements (optional)\nrequirements = {\n    'robotType': 'Flex',  # or 'OT-2'\n    'apiLevel': '2.19'\n}\n\n# Run function\ndef run(protocol: protocol_api.ProtocolContext):\n    # Protocol commands go here\n    pass\n```\n\n**Key elements:**\n- Import `protocol_api` from `opentrons`\n- Define `metadata` dict with protocolName, author, description, apiLevel\n- Optional `requirements` dict for robot type and API version\n- Implement `run()` function receiving `ProtocolContext` as parameter\n- All protocol logic goes inside the `run()` function\n\n### 2. Loading Hardware\n\n**Loading Instruments (Pipettes):**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load pipette on specific mount\n    left_pipette = protocol.load_instrument(\n        'p1000_single_flex',  # Instrument name\n        'left',               # Mount: 'left' or 'right'\n        tip_racks=[tip_rack]  # List of tip rack labware objects\n    )\n```\n\nCommon pipette names:\n- Flex: `p50_single_flex`, `p1000_single_flex`, `p50_multi_flex`, `p1000_multi_flex`\n- OT-2: `p20_single_gen2`, `p300_single_gen2`, `p1000_single_gen2`, `p20_multi_gen2`, `p300_multi_gen2`\n\n**Loading Labware:**\n\n```python\n# Load labware directly on deck\nplate = protocol.load_labware(\n    'corning_96_wellplate_360ul_flat',  # Labware API name\n    'D1',                                # Deck slot (Flex: A1-D3, OT-2: 1-11)\n    label='Sample Plate'                 # Optional display label\n)\n\n# Load tip rack\ntip_rack = protocol.load_labware('opentrons_flex_96_tiprack_1000ul', 'C1')\n\n# Load labware on adapter\nadapter = protocol.load_adapter('opentrons_flex_96_tiprack_adapter', 'B1')\ntips = adapter.load_labware('opentrons_flex_96_tiprack_200ul')\n```\n\n**Loading Modules:**\n\n```python\n# Temperature module\ntemp_module = protocol.load_module('temperature module gen2', 'D3')\ntemp_plate = temp_module.load_labware('corning_96_wellplate_360ul_flat')\n\n# Magnetic module\nmag_module = protocol.load_module('magnetic module gen2', 'C2')\nmag_plate = mag_module.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n\n# Heater-Shaker module\nhs_module = protocol.load_module('heaterShakerModuleV1', 'D1')\nhs_plate = hs_module.load_labware('corning_96_wellplate_360ul_flat')\n\n# Thermocycler module (takes up specific slots automatically)\ntc_module = protocol.load_module('thermocyclerModuleV2')\ntc_plate = tc_module.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n```\n\n### 3. Liquid Handling Operations\n\n**Basic Operations:**\n\n```python\n# Pick up tip\npipette.pick_up_tip()\n\n# Aspirate (draw liquid in)\npipette.aspirate(\n    volume=100,           # Volume in µL\n    location=source['A1'] # Well or location object\n)\n\n# Dispense (expel liquid)\npipette.dispense(\n    volume=100,\n    location=dest['B1']\n)\n\n# Drop tip\npipette.drop_tip()\n\n# Return tip to rack\npipette.return_tip()\n```\n\n**Complex Operations:**\n\n```python\n# Transfer (combines pick_up, aspirate, dispense, drop_tip)\npipette.transfer(\n    volume=100,\n    source=source_plate['A1'],\n    dest=dest_plate['B1'],\n    new_tip='always'  # 'always', 'once', or 'never'\n)\n\n# Distribute (one source to multiple destinations)\npipette.distribute(\n    volume=50,\n    source=reservoir['A1'],\n    dest=[plate['A1'], plate['A2'], plate['A3']],\n    new_tip='once'\n)\n\n# Consolidate (multiple sources to one destination)\npipette.consolidate(\n    volume=50,\n    source=[plate['A1'], plate['A2'], plate['A3']],\n    dest=reservoir['A1'],\n    new_tip='once'\n)\n```\n\n**Advanced Techniques:**\n\n```python\n# Mix (aspirate and dispense in same location)\npipette.mix(\n    repetitions=3,\n    volume=50,\n    location=plate['A1']\n)\n\n# Air gap (prevent dripping)\npipette.aspirate(100, source['A1'])\npipette.air_gap(20)  # 20µL air gap\npipette.dispense(120, dest['A1'])\n\n# Blow out (expel remaining liquid)\npipette.blow_out(location=dest['A1'].top())\n\n# Touch tip (remove droplets on tip exterior)\npipette.touch_tip(location=plate['A1'])\n```\n\n**Flow Rate Control:**\n\n```python\n# Set flow rates (µL\u002Fs)\npipette.flow_rate.aspirate = 150\npipette.flow_rate.dispense = 300\npipette.flow_rate.blow_out = 400\n```\n\n### 4. Accessing Wells and Locations\n\n**Well Access Methods:**\n\n```python\n# By name\nwell_a1 = plate['A1']\n\n# By index\nfirst_well = plate.wells()[0]\n\n# All wells\nall_wells = plate.wells()  # Returns list\n\n# By rows\nrows = plate.rows()  # Returns list of lists\nrow_a = plate.rows()[0]  # All wells in row A\n\n# By columns\ncolumns = plate.columns()  # Returns list of lists\ncolumn_1 = plate.columns()[0]  # All wells in column 1\n\n# Wells by name (dictionary)\nwells_dict = plate.wells_by_name()  # {'A1': Well, 'A2': Well, ...}\n```\n\n**Location Methods:**\n\n```python\n# Top of well (default: 1mm below top)\npipette.aspirate(100, well.top())\npipette.aspirate(100, well.top(z=5))  # 5mm above top\n\n# Bottom of well (default: 1mm above bottom)\npipette.aspirate(100, well.bottom())\npipette.aspirate(100, well.bottom(z=2))  # 2mm above bottom\n\n# Center of well\npipette.aspirate(100, well.center())\n```\n\n### 5. Hardware Module Control\n\n**Temperature Module:**\n\n```python\n# Set temperature\ntemp_module.set_temperature(celsius=4)\n\n# Wait for temperature\ntemp_module.await_temperature(celsius=4)\n\n# Deactivate\ntemp_module.deactivate()\n\n# Check status\ncurrent_temp = temp_module.temperature  # Current temperature\ntarget_temp = temp_module.target  # Target temperature\n```\n\n**Magnetic Module:**\n\n```python\n# Engage (raise magnets)\nmag_module.engage(height_from_base=10)  # mm from labware base\n\n# Disengage (lower magnets)\nmag_module.disengage()\n\n# Check status\nis_engaged = mag_module.status  # 'engaged' or 'disengaged'\n```\n\n**Heater-Shaker Module:**\n\n```python\n# Set temperature\nhs_module.set_target_temperature(celsius=37)\n\n# Wait for temperature\nhs_module.wait_for_temperature()\n\n# Set shake speed\nhs_module.set_and_wait_for_shake_speed(rpm=500)\n\n# Close labware latch\nhs_module.close_labware_latch()\n\n# Open labware latch\nhs_module.open_labware_latch()\n\n# Deactivate heater\nhs_module.deactivate_heater()\n\n# Deactivate shaker\nhs_module.deactivate_shaker()\n```\n\n**Thermocycler Module:**\n\n```python\n# Open lid\ntc_module.open_lid()\n\n# Close lid\ntc_module.close_lid()\n\n# Set lid temperature\ntc_module.set_lid_temperature(celsius=105)\n\n# Set block temperature\ntc_module.set_block_temperature(\n    temperature=95,\n    hold_time_seconds=30,\n    hold_time_minutes=0.5,\n    block_max_volume=50  # µL per well\n)\n\n# Execute profile (PCR cycling)\nprofile = [\n    {'temperature': 95, 'hold_time_seconds': 30},\n    {'temperature': 57, 'hold_time_seconds': 30},\n    {'temperature': 72, 'hold_time_seconds': 60}\n]\ntc_module.execute_profile(\n    steps=profile,\n    repetitions=30,\n    block_max_volume=50\n)\n\n# Deactivate\ntc_module.deactivate_lid()\ntc_module.deactivate_block()\n```\n\n**Absorbance Plate Reader:**\n\n```python\n# Initialize and read\nresult = plate_reader.read(wavelengths=[450, 650])\n\n# Access readings\nabsorbance_data = result  # Dict with wavelength keys\n```\n\n### 6. Liquid Tracking and Labeling\n\n**Define Liquids:**\n\n```python\n# Define liquid types\nwater = protocol.define_liquid(\n    name='Water',\n    description='Ultrapure water',\n    display_color='#0000FF'  # Hex color code\n)\n\nsample = protocol.define_liquid(\n    name='Sample',\n    description='Cell lysate sample',\n    display_color='#FF0000'\n)\n```\n\n**Load Liquids into Wells:**\n\n```python\n# Load liquid into specific wells\nreservoir['A1'].load_liquid(liquid=water, volume=50000)  # µL\nplate['A1'].load_liquid(liquid=sample, volume=100)\n\n# Mark wells as empty\nplate['B1'].load_empty()\n```\n\n### 7. Protocol Control and Utilities\n\n**Execution Control:**\n\n```python\n# Pause protocol\nprotocol.pause(msg='Replace tip box and resume')\n\n# Delay\nprotocol.delay(seconds=60)\nprotocol.delay(minutes=5)\n\n# Comment (appears in logs)\nprotocol.comment('Starting serial dilution')\n\n# Home robot\nprotocol.home()\n```\n\n**Conditional Logic:**\n\n```python\n# Check if simulating\nif protocol.is_simulating():\n    protocol.comment('Running in simulation mode')\nelse:\n    protocol.comment('Running on actual robot')\n```\n\n**Rail Lights (Flex only):**\n\n```python\n# Turn lights on\nprotocol.set_rail_lights(on=True)\n\n# Turn lights off\nprotocol.set_rail_lights(on=False)\n```\n\n### 8. Multi-Channel and 8-Channel Pipetting\n\nWhen using multi-channel pipettes:\n\n```python\n# Load 8-channel pipette\nmulti_pipette = protocol.load_instrument(\n    'p300_multi_gen2',\n    'left',\n    tip_racks=[tips]\n)\n\n# Access entire column with single well reference\nmulti_pipette.transfer(\n    volume=100,\n    source=source_plate['A1'],  # Accesses entire column 1\n    dest=dest_plate['A1']       # Dispenses to entire column 1\n)\n\n# Use rows() for row-wise operations\nfor row in plate.rows():\n    multi_pipette.transfer(100, reservoir['A1'], row[0])\n```\n\n### 9. Common Protocol Patterns\n\n**Serial Dilution:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load labware\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'D1')\n    reservoir = protocol.load_labware('nest_12_reservoir_15ml', 'D2')\n    plate = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D3')\n\n    # Load pipette\n    p300 = protocol.load_instrument('p300_single_flex', 'left', tip_racks=[tips])\n\n    # Add diluent to all wells except first\n    p300.transfer(100, reservoir['A1'], plate.rows()[0][1:])\n\n    # Serial dilution across row\n    p300.transfer(\n        100,\n        plate.rows()[0][:11],  # Source: wells 0-10\n        plate.rows()[0][1:],   # Dest: wells 1-11\n        mix_after=(3, 50),     # Mix 3x with 50µL after dispense\n        new_tip='always'\n    )\n```\n\n**Plate Replication:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load labware\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_1000ul', 'C1')\n    source = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D1')\n    dest = protocol.load_labware('corning_96_wellplate_360ul_flat', 'D2')\n\n    # Load pipette\n    p1000 = protocol.load_instrument('p1000_single_flex', 'left', tip_racks=[tips])\n\n    # Transfer from all wells in source to dest\n    p1000.transfer(\n        100,\n        source.wells(),\n        dest.wells(),\n        new_tip='always'\n    )\n```\n\n**PCR Setup:**\n\n```python\ndef run(protocol: protocol_api.ProtocolContext):\n    # Load thermocycler\n    tc_mod = protocol.load_module('thermocyclerModuleV2')\n    tc_plate = tc_mod.load_labware('nest_96_wellplate_100ul_pcr_full_skirt')\n\n    # Load tips and reagents\n    tips = protocol.load_labware('opentrons_flex_96_tiprack_200ul', 'C1')\n    reagents = protocol.load_labware('opentrons_24_tuberack_nest_1.5ml_snapcap', 'D1')\n\n    # Load pipette\n    p300 = protocol.load_instrument('p300_single_flex', 'left', tip_racks=[tips])\n\n    # Open thermocycler lid\n    tc_mod.open_lid()\n\n    # Distribute master mix\n    p300.distribute(\n        20,\n        reagents['A1'],\n        tc_plate.wells(),\n        new_tip='once'\n    )\n\n    # Add samples (example for first 8 wells)\n    for i, well in enumerate(tc_plate.wells()[:8]):\n        p300.transfer(5, reagents.wells()[i+1], well, new_tip='always')\n\n    # Run PCR\n    tc_mod.close_lid()\n    tc_mod.set_lid_temperature(105)\n\n    # PCR profile\n    tc_mod.set_block_temperature(95, hold_time_seconds=180)\n\n    profile = [\n        {'temperature': 95, 'hold_time_seconds': 15},\n        {'temperature': 60, 'hold_time_seconds': 30},\n        {'temperature': 72, 'hold_time_seconds': 30}\n    ]\n    tc_mod.execute_profile(steps=profile, repetitions=35, block_max_volume=25)\n\n    tc_mod.set_block_temperature(72, hold_time_minutes=5)\n    tc_mod.set_block_temperature(4)\n\n    tc_mod.deactivate_lid()\n    tc_mod.open_lid()\n```\n\n## Best Practices\n\n1. **Always specify API level**: Use the latest stable API version in metadata\n2. **Use meaningful labels**: Label labware for easier identification in logs\n3. **Check tip availability**: Ensure sufficient tips for protocol completion\n4. **Add comments**: Use `protocol.comment()` for debugging and logging\n5. **Simulate first**: Always test protocols in simulation before running on robot\n6. **Handle errors gracefully**: Add pauses for manual intervention when needed\n7. **Consider timing**: Use delays when protocols require incubation periods\n8. **Track liquids**: Use liquid tracking for better setup validation\n9. **Optimize tip usage**: Use `new_tip='once'` when appropriate to save tips\n10. **Control flow rates**: Adjust flow rates for viscous or volatile liquids\n\n## Troubleshooting\n\n**Common Issues:**\n\n- **Out of tips**: Verify tip rack capacity matches protocol requirements\n- **Labware collisions**: Check deck layout for spatial conflicts\n- **Volume errors**: Ensure volumes don't exceed well or pipette capacities\n- **Module not responding**: Verify module is properly connected and firmware is updated\n- **Inaccurate volumes**: Calibrate pipettes and check for air bubbles\n- **Protocol fails in simulation**: Check API version compatibility and labware definitions\n\n## Resources\n\nFor detailed API documentation, see `references\u002Fapi_reference.md` in this skill directory.\n\nFor example protocol templates, see `scripts\u002F` directory.\n\n",{"name":5,"description":7},"main","015422534a7457348a313b6381f0255d3364eb8c","cli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration",0,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates","https:\u002F\u002Fgithub.com\u002FMishit18","2026-11-14 17:36:32",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add Mishit18\u002Fclaude-code-templates --skill opentrons-integration",{"tool":52,"command":53},"bunx","bunx skills add Mishit18\u002Fclaude-code-templates --skill opentrons-integration",{"tool":55,"command":56},"pnpm","pnpm dlx skills add Mishit18\u002Fclaude-code-templates --skill opentrons-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002FSKILL.md",true,[60,66,72,76],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fapi_reference.md","REFERENCE","参考文档",13118,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002Freferences\u002Fapi_reference.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fbasic_protocol_template.py","SCRIPT","脚本",1538,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002Fscripts\u002Fbasic_protocol_template.py",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fpcr_setup_template.py",4539,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002Fscripts\u002Fpcr_setup_template.py",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fserial_dilution_template.py",3172,"https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fopentrons-integration\u002Fscripts\u002Fserial_dilution_template.py",[81,108,135,156,183,193],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":107},"01M6R194Y2CS39V9VPAVRVW1ZV","skill-creation-guide","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fskill-creation-guide\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fdevelopment\u002Fskill-creation-guide\u002FSKILL.md",[],[90,91,92,93,22,94,95,96,97,98,99,100,101,102,103,104,32,105,106],"skill creation guide","guide","creation","skill creation","create","update","capabilities","knowledge","tool","integrations","specialized","new skill","existing skill","users","with","Existing","when","2026-11-11 15:11:14",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":34},"01M6R4ARN4W2VZRDERDTMN1KP0","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[],[116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,32,134],"web artifacts builder","web","artifacts","artifacts builder","builder","frontend","css","components","react","routing","state management","state","file","Tailwind","use","single-file","ui components","multi","single",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":34},"01M6R45GXREM5DP8T08MAC788H","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[],[143,144,145,121,146,147,117,148,149,150,151,152,153,154,155,104,32],"testing","webapp testing","webapp","screenshots","playwright","debugging","toolkit","browser","ui","logs","applications","behavior","local",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":160,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":34},"01M6R2GYJ470X8EB7R58V0B68K","think-tank","Run a Virtual Think Tank — a structured multi-persona debate — before planning or making architectural\u002Fdesign\u002Fstrategic decisions. Use this skill whenever the user is about to plan a system, make a technology choice, evaluate trade-offs, decide on an approach, or faces any decision where multiple perspectives would sharpen the outcome. Also trigger when the user says \"think tank\", \"debate this\", \"perspectives on\", \"trade-offs\", \"should I use X or Y\", \"help me decide\", \"before we plan\", or asks for pros\u002Fcons of competing approaches. This skill should run BEFORE any implementation planning begins — it produces a structured analysis that feeds into better plans.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fthink-tank\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fthink-tank\u002FSKILL.md",[],[164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,106],"think tank","think","design","run","feeds","analysis","persona","plan","sharpen","virtual","decision","choice","decide","perspectives","outcome","me","debate","make","trade-offs",{"skillNo":184,"name":185,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":186,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":34},"01M6R2FSR55AVRFA9YZ8SC2GZG","skill-creator","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[],[190,191,22,94,95,96,97,98,99,100,91,101,102,103,104,32,105,106,192],"skill creator","creator","new",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":34},"01M6R2FK42ZZ4HJTJVVK9WJBBP","ship-learn-next","Transform learning content (like YouTube transcripts, articles, tutorials) into actionable implementation plans using the Ship-Learn-Next framework. Use when user wants to turn advice, lessons, or educational content into concrete action steps, reps, or a learning quest.","https:\u002F\u002Fgithub.com\u002FMishit18\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fship-learn-next\u002FSKILL.md",[],[200,201,202,203,204,205,206,26,130,207,208,209,210,211,212,213,214,215,216,106],"learn","ship learn next","ship","next","framework","learning","read","advice","implementation","youtube","plans","quest","transform","actionable","action","lessons","youtube transcripts"]