Token导航 LogoToken导航

Agent Skill · 开发

buffer-calculator-2(缓冲计算器 2)

buffer-calculator-2 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

buffer-calculator-2 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 4,564。

总安装 7,980周安装 326GitHub Stars 公开资料未说明下载 2,556核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:buffer-calculator-2(缓冲计算器 2)
来源仓库:https://github.com/theresayao0614-sudo/buffer-calculator-2
安装命令:
openclaw skills install buffer-calculator-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install buffer-calculator-2

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

buffer-calculator-2 同样用于生物化学缓冲液配方计算,提供精确测量指导。适合科研与教学场景中需要标准化溶液配制的场合。安装后输入化学组分与目标参数,输出摩尔浓度与称量建议。结果仅供参考,实验前建议校准仪器并做空白对照。不支持有机溶剂或危险试剂计算,仅限常规水相体系。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install buffer-calculator-2;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

buffer-calculator-2 怎么安装?

在终端执行 openclaw skills install buffer-calculator-2。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

buffer-calculator-2 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

buffer-calculator-2 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

buffer-calculator-2 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

buffer-calculator-2 用的人多吗?

公开数据是累计安装 7,980 次,近一周安装 326 次,下载 2,556 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

buffer-calculator-2 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
buffer-calculator-2

缓冲计算器 2 · 本页

7,980—只读MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
buffer-calculator
description
Calculate complex buffer recipes with precise measurements for molecular biology and biochemistry applications. Provides accurate mass/volume calculations, pH considerations, and step-by-step preparation instructions.
allowed-tools
[Read, Write, Bash, Edit]
license
MIT
metadata
skill-author
AIPOCH

Buffer Calculator

Calculate precise buffer formulations with accurate mass and volume measurements for molecular biology, biochemistry, and cell culture applications. Supports predefined common buffers and customizable calculations with pH adjustment guidance.

Key Capabilities:

  • Predefined Buffer Library: Access common laboratory buffers (PBS, RIPA, TAE) with accurate molecular weights and concentrations
  • Precise Mass Calculations: Calculate component masses to milligram precision based on final volume and concentration
  • Volume-Based Components: Handle liquid components (detergents, acids) requiring volume measurements
  • Concentration Scaling: Easily scale recipes from stock solutions (10X, 20X) to working concentrations
  • Step-by-Step Protocols: Generate detailed preparation instructions with safety considerations

When to Use

✅ Use this skill when:

  • Preparing standard laboratory buffers (PBS, RIPA, TAE) for routine experiments
  • Scaling buffer recipes from literature protocols to different volumes
  • Making concentrated stock solutions (10X, 20X) for long-term storage
  • Teaching buffer preparation to new lab members with detailed guidance
  • Double-checking calculations before weighing expensive reagents
  • Planning large batch preparations requiring scaled-up calculations
  • Preparing multiple buffers for a complex experimental workflow

❌ Do NOT use when:

  • Working with highly toxic or radioactive materials requiring specialized safety protocols → Consult institutional safety officer
  • Preparing cell culture media with complex growth factors and supplements → Use cell-culture-media-calculator
  • Calculating enzyme reaction buffers with specific cofactor requirements → Use enzyme-assay-designer
  • Needing pH titration curves or complex buffer capacity calculations → Use specialized chemistry software
  • Working with organic solvents or non-aqueous systems → Consult organic chemistry references

Related Skills:

  • 上游 (Upstream): chemical-structure-converter, safety-data-sheet-reader
  • 下游 (Downstream): lab-inventory-tracker, equipment-maintenance-log

Integration with Other Skills

Upstream Skills:

  • chemical-structure-converter: Convert chemical names to molecular formulas for custom buffer components
  • safety-data-sheet-reader: Review safety information for buffer components before preparation

Downstream Skills:

  • lab-inventory-tracker: Update inventory levels after buffer preparation
  • equipment-maintenance-log: Record pH meter calibration before buffer preparation
  • eln-template-creator: Generate experiment templates incorporating buffer preparation steps

Complete Workflow:

Experimental Design → safety-data-sheet-reader → buffer-calculator → lab-inventory-tracker → Experiment Execution

Core Capabilities

1. Predefined Buffer Recipe Library

Access a curated library of commonly used laboratory buffers with accurate molecular weights, target concentrations, and pH specifications.

from scripts.main import BufferCalculator

# Initialize calculator
calc = BufferCalculator()

# List available buffers
print("Available buffers:")
for buf in calc.BUFFER_RECIPES.keys():
    recipe = calc.BUFFER_RECIPES[buf]
    print(f"  {buf}: pH {recipe.get('pH', 'N/A')}")

# Access specific recipe details
pbs_recipe = calc.BUFFER_RECIPES["PBS"]
print(f"\
PBS Components:")
for comp, data in pbs_recipe["components"].items():
    print(f"  {comp}: {data['concentration']} mM (MW: {data['MW']})")

Available Buffer Recipes:

BufferApplicationpHKey Components
PBSCell washing, immunostaining7.4NaCl, KCl, Phosphates
RIPACell lysis, protein extraction7.4Tris, NaCl, Detergents
TAEDNA electrophoresis~8.0Tris, Acetate, EDTA

Best Practices:

  • ✅ Verify buffer formulation matches your specific protocol requirements (some PBS variants differ)
  • ✅ Check pH specifications - some applications require precise pH adjustments
  • ✅ Consider component quality - use analytical grade reagents for sensitive assays
  • ✅ Document recipe modifications for laboratory SOP compliance

Common Issues and Solutions:

Issue: Buffer not in library

  • Symptom: Required buffer formula not available in predefined recipes
  • Solution: Use custom calculation mode or add new buffer definition to BUFFER_RECIPES

Issue: pH drift after preparation

  • Symptom: Achieved pH differs from target after dissolving all components
  • Solution: Components can affect pH; adjust with HCl or NaOH after complete dissolution

2. Precise Mass Calculations

Calculate exact masses of solid components required for specific buffer volumes and concentrations.

from scripts.main import BufferCalculator

calc = BufferCalculator()

# Calculate PBS for 500 mL at 1X concentration
result = calc.calculate("PBS", final_volume_ml=500, concentration_x=1.0)

# Display component calculations
for comp in result['components']:
    if 'amount_mg' in comp:
        print(f"{comp['component']}:")
        print(f"  Mass: {comp['amount_mg']:.2f} mg ({comp['amount_g']:.3f} g)")
        print(f"  Final concentration: {comp['concentration']:.1f} mM")

# Formula breakdown
print("\
Calculation:")
print(f"Moles = Concentration (mM) × Volume (L) / 1000")
print(f"Mass (g) = Moles × Molecular Weight (g/mol)")

Parameters:

ParameterTypeRequiredDescriptionDefault
buffer_typestrYesBuffer recipe name (PBS, RIPA, TAE)None
final_volume_mlfloatYesTarget final volume in millilitersNone
concentration_xfloatNoConcentration multiplier (1.0 = 1X)1.0

Calculation Formula:

mass (mg) = concentration (mM) × volume (mL) × MW (g/mol) / 1000

Best Practices:

  • ✅ Use analytical balance for precise weighing (0.001g precision recommended)
  • ✅ Weigh into weighing boats first, then transfer to vessel
  • ✅ Account for hygroscopic components (weigh quickly, store dessicated)
  • ✅ Double-check calculations before weighing expensive reagents

Common Issues and Solutions:

Issue: Insufficient precision on lab balance

  • Symptom: Required mass below balance detection limit
  • Solution: Scale up to larger volume or prepare concentrated stock

Issue: Component does not dissolve completely

  • Symptoms: Cloudy solution or precipitate after mixing
  • Causes: pH incorrect, temperature too low, or component degradation
  • Solution: Adjust pH gradually; warm solution if appropriate; check reagent quality

3. Liquid Component Volume Calculations

Calculate volumes for liquid components (detergents, acids, bases) that are typically measured by volume rather than mass.

from scripts.main import BufferCalculator

calc = BufferCalculator()

# Calculate RIPA buffer with detergent components
result = calc.calculate("RIPA", final_volume_ml=1000, concentration_x=1.0)

# Display liquid components
print("Liquid components (volume-based):")
for comp in result['components']:
    if 'amount_ml' in comp:
        print(f"  {comp['component']}: {comp['amount_ml']:.2f} mL")
        print(f"    ({comp['concentration']:.1f}% final concentration)")

# Example: Adding Triton X-100 to RIPA
# For 1% Triton X-100 in 1000 mL: 10 mL of 100% stock

Liquid Component Handling:

Component TypeTypical UnitMeasurement ToolConsiderations
Detergents% (v/v)Graduated pipetteViscous liquids require careful pipetting
Acids/BasesmM or %Micropipette or graduated cylinderSafety: add acid to water
Stock solutionsX factorMicropipetteVerify stock concentration

Best Practices:

  • ✅ Use appropriate pipette size - choose pipette with volume in upper 50% of range for accuracy
  • ✅ Pre-warm viscous liquids (e.g., glycerol, some detergents) for easier pipetting
  • ✅ Rinse pipette tip with liquid before final measurement for viscous solutions
  • ✅ Add concentrated acids/bases to water, never reverse (exothermic reaction)

Common Issues and Solutions:

Issue: Viscous liquid stuck in pipette

  • Symptom: Incomplete transfer of detergents or glycerol
  • Solution: Use positive displacement pipette; pre-warm liquid; cut pipette tip

Issue: Volume measurement inaccuracy

  • Symptom: Foam formation with detergents affecting volume reading
  • Solution: Let foam settle; measure slowly; use wide-bore pipette tips

4. Stock Solution Dilution Calculations

Scale calculations for preparing concentrated stock solutions that can be diluted to working concentration.

from scripts.main import BufferCalculator

calc = BufferCalculator()

# Calculate 10X PBS stock solution (500 mL)
stock_result = calc.calculate("PBS", final_volume_ml=500, concentration_x=10.0)

print("10X PBS Stock Solution (500 mL):")
print("="*50)
for comp in stock_result['components']:
    if 'amount_g' in comp:
        print(f"{comp['component']:<15} {comp['amount_g']:>8.3f} g")

print("\
Dilution instructions:")
print("  1. Prepare 10X stock as above")
print("  2. For 1X working solution: mix 1 part stock + 9 parts water")
print("  3. Example: 100 mL 1X PBS = 10 mL 10X stock + 90 mL water")

# Verification calculation
working_volume = 1000  # mL
stock_needed = working_volume / 10  # 10X dilution
print(f"\
To make {working_volume} mL 1X PBS: use {stock_needed} mL 10X stock")

Stock Solution Strategy:

ConcentrationStorage StabilityUse Case
1X (working)1-2 weeks at 4°CImmediate use
10X3-6 months at 4°CRegular daily use
20X-50X6-12 months frozenLong-term storage

Best Practices:

  • ✅ Prepare 10X stocks for frequently used buffers to save preparation time
  • ✅ Sterile filter (0.22 μm) stock solutions for cell culture applications
  • ✅ Label clearly with concentration, date, and preparer initials
  • ✅ Store appropriately - some buffers need refrigeration, others room temperature

Common Issues and Solutions:

Issue: Precipitation in concentrated stocks

  • Symptom: Crystals or cloudiness in 10X or 20X solutions
  • Causes: Solubility limits exceeded; pH shifts during storage
  • Solution: Warm and agitate to dissolve; prepare lower concentration stock

Issue: Dilution errors

  • Symptom: Working concentration incorrect after dilution
  • Causes: Confusion between "parts" and ratios; volume measurement errors
  • Solution: Use C1V1 = C2V2 formula; double-check calculations

5. pH Adjustment and Validation

Handle pH-sensitive buffers with guidance on adjustment procedures and validation.

from scripts.main import BufferCalculator

calc = BufferCalculator()

# Check which buffers require pH adjustment
buffers_needing_ph = []
for buf_name, recipe in calc.BUFFER_RECIPES.items():
    if recipe.get('pH'):
        buffers_needing_ph.append({
            'name': buf_name,
            'target_ph': recipe['pH']
        })

print("Buffers requiring pH adjustment:")
for buf in buffers_needing_ph:
    print(f"  {buf['name']}: adjust to pH {buf['target_ph']}")

# pH adjustment workflow example
print("\
pH Adjustment Protocol:")
print("1. Dissolve all components in ~80% final volume")
print("2. Measure pH with calibrated pH meter")
print("3. Adjust with appropriate acid/base:")
print("   - To lower pH: add 1M HCl dropwise")
print("   - To raise pH: add 1M NaOH dropwise")
print("4. Bring to final volume")
print("5. Verify final pH")

pH Adjustment Guidelines:

BufferTarget pHAdjustment RangeTypical Adjustment
PBS7.4±0.2 acceptableUsually requires no adjustment
RIPA7.4-8.0±0.2 acceptableAdjust with HCl or NaOH
TAE~8.0No adjustmentpH naturally achieved

Best Practices:

  • ✅ Calibrate pH meter before use with standard buffers (pH 4, 7, 10)
  • ✅ Adjust pH at working temperature - pH varies with temperature
  • ✅ Add acid/base slowly near target pH to avoid overshooting
  • ✅ Record final pH in lab notebook for reproducibility

Common Issues and Solutions:

Issue: pH meter reading unstable

  • Symptom: pH value fluctuates or drifts
  • Causes: Electrode dirty, insufficient equilibration time, temperature effects
  • Solution: Clean electrode; allow 30-60 seconds equilibration; use temperature probe

Issue: Cannot achieve target pH

  • Symptom: pH plateaus before reaching target
  • Causes: Buffer capacity exceeded; wrong components; water quality issues
  • Solution: Check component quality; use purified water (18 MΩ·cm); verify recipe

6. Batch Preparation and Scaling

Scale buffer calculations for preparing multiple batches or large volumes efficiently.

from scripts.main import BufferCalculator

calc = BufferCalculator()

# Batch preparation for multiple experiments
experiments = [
    {"name": "Experiment A", "volume": 500, "buffer": "PBS"},
    {"name": "Experiment B", "volume": 250, "buffer": "RIPA"},
    {"name": "Experiment C", "volume": 1000, "buffer": "TAE"}
]

print("Batch Buffer Preparation Plan:")
print("="*60)

total_components = {}
for exp in experiments:
    result = calc.calculate(exp['buffer'], exp['volume'], 1.0)
    print(f"\
{exp['name']}: {exp['buffer']} ({exp['volume']} mL)")
    
    for comp in result['components']:
        comp_name = comp['component']
        if 'amount_g' in comp:
            amount = comp['amount_g']
            unit = 'g'
        else:
            amount = comp['amount_ml']
            unit = 'mL'
        
        # Accumulate totals
        if comp_name not in total_components:
            total_components[comp_name] = {'amount': 0, 'unit': unit}
        total_components[comp_name]['amount'] += amount
        
        print(f"  {comp_name}: {amount:.3f} {unit}")

print("\
" + "="*60)
print("TOTAL MATERIALS NEEDED:")
for comp_name, data in total_components.items():
    print(f"  {comp_name}: {data['amount']:.3f} {data['unit']}")

Best Practices:

  • ✅ Batch similar buffers to minimize weighing operations
  • ✅ Prepare master stock of common components (e.g., 1M Tris, 5M NaCl)
  • ✅ Calculate total needs before starting to ensure sufficient reagents
  • ✅ Allow for preparation loss - prepare 10-15% extra volume

Common Issues and Solutions:

Issue: Insufficient reagent for complete batch

  • Symptom: Run out of key component mid-preparation
  • Solution: Always calculate total needs before starting; keep backup stocks

Issue: Cross-contamination between batches

  • Symptom: Unexpected results when using prepared buffers
  • Solution: Clean equipment thoroughly between preparations; use dedicated vessels

Complete Workflow Example

From experimental design to buffer preparation:

# Step 1: List available buffers
python scripts/main.py --list

# Step 2: Calculate PBS for cell culture (500 mL, 1X)
python scripts/main.py PBS --volume 500 --concentration 1.0

# Step 3: Calculate 10X stock for storage (1000 mL)
python scripts/main.py PBS --volume 1000 --concentration 10.0

# Step 4: Calculate RIPA lysis buffer (250 mL)
python scripts/main.py RIPA --volume 250

# Step 5: Verify calculations
python scripts/main.py TAE --volume 500 --concentration 1.0

Python API Usage:

from scripts.main import BufferCalculator

def prepare_experiment_buffers(
    experiment_plan: dict
) -> dict:
    """
    Calculate all buffers needed for an experimental workflow.
    
    Args:
        experiment_plan: Dict with buffer requirements
        
    Returns:
        Dict with preparation instructions and shopping list
    """
    calc = BufferCalculator()
    results = {}
    shopping_list = {}
    
    # Calculate each buffer
    for buffer_name, specs in experiment_plan.items():
        result = calc.calculate(
            buffer_name,
            specs['volume_ml'],
            specs.get('concentration_x', 1.0)
        )
        
        if result:
            results[buffer_name] = result
            
            # Accumulate materials needed
            for comp in result['components']:
                comp_name = comp['component']
                if comp_name not in shopping_list:
                    shopping_list[comp_name] = {
                        'MW': calc.BUFFER_RECIPES[buffer_name]['components'][comp_name]['MW'],
                        'total_amount_g': 0,
                        'total_amount_mg': 0,
                        'total_amount_ml': 0
                    }
                
                if 'amount_g' in comp:
                    shopping_list[comp_name]['total_amount_g'] += comp['amount_g']
                elif 'amount_mg' in comp:
                    shopping_list[comp_name]['total_amount_mg'] += comp['amount_mg']
                elif 'amount_ml' in comp:
                    shopping_list[comp_name]['total_amount_ml'] += comp['amount_ml']
    
    return {
        'buffer_recipes': results,
        'shopping_list': shopping_list,
        'total_buffers': len(results)
    }

# Example: Prepare buffers for Western blot workflow
western_blot_plan = {
    'PBS': {'volume_ml': 1000, 'concentration_x': 1.0},
    'RIPA': {'volume_ml': 500, 'concentration_x': 1.0}
}

preparation = prepare_experiment_buffers(western_blot_plan)

# Display results
print(f"Buffers to prepare: {preparation['total_buffers']}")
print("\
Materials needed:")
for comp, amounts in preparation['shopping_list'].items():
    print(f"  {comp} (MW: {amounts['MW']}):")
    if amounts['total_amount_g'] > 0:
        print(f"    {amounts['total_amount_g']:.3f} g")
    if amounts['total_amount_mg'] > 0:
        print(f"    {amounts['total_amount_mg']:.2f} mg")
    if amounts['total_amount_ml'] > 0:
        print(f"    {amounts['total_amount_ml']:.2f} mL")

Expected Output Files:

lab_preparation/
├── buffer_calculations.json      # Structured calculation results
├── preparation_checklist.md      # Step-by-step protocol
└── materials_shopping_list.txt   # Consolidated reagent list

Common Patterns

Pattern 1: Daily Cell Culture PBS Preparation

Scenario: Prepare 1X PBS for routine cell culture work (washing, resuspension).

{
  "buffer": "PBS",
  "volume_ml": 1000,
  "concentration_x": 1.0,
  "application": "cell_culture",
  "sterility_required": true,
  "preparation_notes": [
    "Use tissue culture grade water ( endotoxin-free )",
    "Sterile filter through 0.22 μm after preparation",
    "Store at 4°C for up to 2 weeks"
  ]
}

Workflow:

  1. Calculate components for 1000 mL 1X PBS
  2. Weigh reagents using analytical balance
  3. Dissolve in ~800 mL tissue culture water
  4. Bring to final volume (1000 mL)
  5. Verify pH (should be 7.4 ± 0.2)
  6. Sterile filter into bottles
  7. Label with date, concentration, preparer
  8. Store at 4°C

Output Example:

PBS (1X, 1000 mL):
  NaCl:        8.000 g
  KCl:         0.200 g
  Na2HPO4:     1.420 g
  KH2PO4:      0.245 g
  
Total preparation time: ~30 minutes
Shelf life: 2 weeks at 4°C

Pattern 2: Protein Extraction RIPA Buffer

Scenario: Prepare RIPA buffer for cell lysis and protein extraction for Western blot.

{
  "buffer": "RIPA",
  "volume_ml": 500,
  "concentration_x": 1.0,
  "modifications": [
    "Add protease inhibitors just before use",
    "Prepare fresh or store aliquots at -20°C"
  ],
  "safety_notes": [
    "SDS and Triton X-100 are irritants - wear gloves",
    "Work in fume hood when handling concentrated detergents"
  ]
}

Workflow:

  1. Calculate RIPA components for 500 mL
  2. Weigh solid components (Tris, NaCl)
  3. Dissolve in ~400 mL purified water
  4. Add liquid components (SDS, Triton X-100) carefully
  5. Adjust pH to 7.4 with HCl if necessary
  6. Bring to final volume (500 mL)
  7. Aliquot into 50 mL tubes
  8. Store at 4°C (short-term) or -20°C (long-term)
  9. Add protease inhibitor cocktail before use

Output Example:

RIPA (1X, 500 mL):
  Tris:          3.028 g
  NaCl:          4.383 g
  SDS:           0.500 mL (of 10% stock)
  Triton X-100:  5.000 mL
  
Preparation notes:
  - Add protease inhibitors immediately before use
  - Keep on ice during protein extraction
  - Discard after single use to prevent contamination

Pattern 3: 10X TAE Stock for Gel Electrophoresis

Scenario: Prepare concentrated TAE stock for agarose gel electrophoresis.

{
  "buffer": "TAE",
  "volume_ml": 1000,
  "concentration_x": 10.0,
  "application": "dna_electrophoresis",
  "dilution_ratio": "1:10",
  "storage": "room_temperature"
}

Workflow:

  1. Calculate 10X TAE for 1000 mL
  2. Weigh Tris base (48.44 g)
  3. Add acetic acid (11.43 mL glacial)
  4. Add EDTA solution (20 mL of 0.5M stock)
  5. Bring to volume with distilled water
  6. Verify pH (should be ~8.0, typically no adjustment needed)
  7. Store at room temperature in sealed container
  8. Dilute 1:10 for working solution (1X)

Output Example:

10X TAE Stock (1000 mL):
  Tris:         48.440 g
  Acetic Acid:  11.430 mL (glacial)
  EDTA:         20.000 mL (0.5M)
  
Working solution (1X):
  Dilute 100 mL 10X stock + 900 mL water
  
Storage: Room temperature, stable for 6+ months

Pattern 4: Multi-Buffer Experimental Preparation

Scenario: Prepare multiple buffers for a complex experiment (e.g., protein purification workflow).

{
  "experiment": "protein_purification",
  "buffers": [
    {"name": "PBS", "volume": 2000, "conc": 1.0, "purpose": "washing"},
    {"name": "RIPA", "volume": 500, "conc": 1.0, "purpose": "lysis"},
    {"name": "PBS", "volume": 1000, "conc": 10.0, "purpose": "stock"}
  ],
  "consolidation": true,
  "efficiency_tips": [
    "Prepare 10X PBS stock first",
    "Use stock to make 1X PBS for washing",
    "Batch-weigh common components"
  ]
}

Workflow:

  1. Calculate all buffer needs
  2. Identify common components (NaCl, Tris)
  3. Calculate total material requirements
  4. Prepare 10X PBS stock (most efficient)
  5. Dilute stock for 1X PBS needs
  6. Prepare RIPA separately (different components)
  7. Label all containers clearly
  8. Prepare preparation log for tracking

Output Example:

Materials Shopping List:
  NaCl:        16.770 g (PBS) + 4.383 g (RIPA) = 21.153 g total
  Tris:         3.028 g (RIPA)
  KCl:          0.400 g (PBS)
  Na2HPO4:      2.840 g (PBS)
  KH2PO4:       0.490 g (PBS)
  SDS:          0.500 mL
  Triton X-100: 5.000 mL
  
Efficiency gain: Preparing 10X stock saves 4 weighing operations

Quality Checklist

Preparation Planning:

  • [ ] CRITICAL: Verify buffer formulation matches experimental protocol exactly
  • [ ] Check pH requirements for specific application
  • [ ] Confirm final volume needed (include 10-15% extra for losses)
  • [ ] Verify availability of all reagents and components
  • [ ] Check reagent quality and expiration dates
  • [ ] Prepare material safety data sheets (MSDS) for hazardous components
  • [ ] Ensure calibrated balance and pH meter available
  • [ ] Prepare appropriate vessels and storage containers

During Calculation:

  • [ ] Double-check molecular weights match chemical formulas
  • [ ] Verify concentration units (mM vs M, % vs X)
  • [ ] Confirm volume units (mL vs L)
  • [ ] Check scaling factors (1X vs 10X) are correctly applied
  • [ ] Calculate total material needs for batch preparation
  • [ ] Review calculations with colleague for critical experiments
  • [ ] Document any recipe modifications from standard protocol
  • [ ] Prepare preparation worksheet with step-by-step instructions

During Preparation:

  • [ ] CRITICAL: Wear appropriate PPE (gloves, lab coat, safety glasses)
  • [ ] Verify balance is calibrated and zeroed
  • [ ] Weigh components into clean, dry weighing boats
  • [ ] Dissolve solids completely before adding next component
  • [ ] Add liquid components in correct order (solids first, then liquids)
  • [ ] Monitor pH during preparation; adjust if necessary
  • [ ] Use appropriate water quality (distilled, deionized, or tissue culture grade)
  • [ ] Bring to exact final volume using volumetric flask or graduated cylinder

Post-Preparation Verification:

  • [ ] CRITICAL: Measure and record final pH
  • [ ] Check solution clarity (no precipitates or cloudiness)
  • [ ] Verify volume is accurate
  • [ ] Test with appropriate quality control assay if available
  • [ ] Label container with buffer name, concentration, date, preparer
  • [ ] Record batch number for traceability
  • [ ] Store at appropriate temperature
  • [ ] Document preparation in lab notebook or ELN

Before Use:

  • [ ] CRITICAL: Verify buffer identity matches label
  • [ ] Check expiration date (if applicable)
  • [ ] Inspect for contamination (cloudiness, particles, color change)
  • [ ] Confirm pH is still within acceptable range
  • [ ] For cell culture: verify sterility (no visible growth)
  • [ ] Allow refrigerated buffer to equilibrate to room temperature if needed
  • [ ] Record lot number/batch ID in experimental notes
  • [ ] Dispose of expired or contaminated buffer properly

Common Pitfalls

Calculation Errors:

  • ❌ Confusing mM and M → 1000-fold concentration error

- ✅ Always verify units: mM = millimolar (10^-3 M), M = molar

  • ❌ Wrong molecular weight → Incorrect mass calculated

- ✅ Verify MW matches chemical formula (e.g., NaCl = 58.44, not 23+35.5) - ✅ Account for hydrates (e.g., Na2HPO4·7H2O vs anhydrous)

  • ❌ Volume unit confusion → mL vs L errors

- ✅ Standardize on mL for typical lab volumes - ✅ Double-check when converting from literature protocols

  • ❌ Forgetting dilution factor → Stock concentration error

- ✅ Label stock concentrations clearly (e.g., "10X PBS") - ✅ Verify working concentration after dilution

Preparation Errors:

  • ❌ Adding water to acid → Dangerous exothermic reaction

- ✅ Always add acid to water ("Add Acid" mnemonic) - ✅ Use ice bath for concentrated acids

  • ❌ Incomplete dissolution → Inaccurate final concentration

- ✅ Dissolve each component completely before adding next - ✅ Warm slightly if needed (except temperature-sensitive reagents)

  • ❌ Wrong water quality → Contamination or interference

- ✅ Use tissue culture grade for cell work - ✅ Use 18 MΩ·cm ultrapure water for sensitive assays

  • ❌ Cross-contamination → Impure buffers

- ✅ Use dedicated spatulas and weighing boats - ✅ Clean equipment between different buffer preparations

Storage and Usage Errors:

  • ❌ Using expired buffers → Unreliable results

- ✅ Label with preparation date and expiration - ✅ Monitor pH stability over storage time

  • ❌ Microbial contamination → Cell culture contamination

- ✅ Sterile filter buffers for cell culture - ✅ Use aseptic technique when handling

  • ❌ pH drift during storage → Buffer capacity exceeded

- ✅ Store at recommended temperature - ✅ Check pH before each use for critical applications

  • ❌ Inadequate labeling → Wrong buffer used in experiment

- ✅ Label with: name, concentration, pH, date, preparer - ✅ Use color coding or location system for different buffer types


Troubleshooting

Problem: Buffer pH is incorrect

  • Symptoms: Measured pH significantly different from target
  • Causes:

- Incorrect component ratios - Component degradation (e.g., CO2 absorption by NaOH) - Water quality issues (CO2 dissolved, impurities) - Temperature effects (pH varies with temperature)

  • Solutions:

- Recalculate and verify all component amounts - Use fresh reagents; check expiration dates - Use freshly prepared ultrapure water - Allow buffer to equilibrate to room temperature before measuring - Adjust pH carefully with dilute HCl or NaOH

Problem: Precipitate forms during preparation

  • Symptoms: Cloudy solution or visible crystals after mixing components
  • Causes:

- Solubility limit exceeded (especially in concentrated stocks) - Component incompatibility - Incorrect pH causing precipitation - Temperature too low for solubility

  • Solutions:

- Reduce concentration; prepare less concentrated stock - Check component compatibility table - Adjust pH gradually to dissolve precipitate - Warm solution gently (not above 50°C for most buffers)

Problem: Buffer degrades quickly

  • Symptoms: pH changes, cloudiness, or contamination within days
  • Causes:

- Microbial contamination - CO2 absorption (carbonate buffers especially) - Oxidation of sensitive components - Inappropriate storage conditions

  • Solutions:

- Sterile filter and store under sterile conditions - Add antimicrobial agents if appropriate (e.g., 0.02% azide for non-cell work) - Store at 4°C; minimize time at room temperature - Prepare smaller batches more frequently

Problem: Inconsistent results between batches

  • Symptoms: Experimental results vary with different buffer batches
  • Causes:

- Weighing errors or balance calibration drift - Different water sources or quality - Component quality variation between lots - Inconsistent pH adjustment

  • Solutions:

- Recalibrate balance regularly; use consistent weighing technique - Use same water source and quality for all preparations - Record lot numbers of all reagents - Standardize pH adjustment protocol and electrode calibration

Problem: Components won't dissolve

  • Symptoms: Visible undissolved particles after extended mixing
  • Causes:

- Water quality issues (hard water, ions interfering) - Component expired or degraded - Temperature too low - Component requires specific dissolution conditions

  • Solutions:

- Use ultrapure water (18 MΩ·cm) - Try fresh reagent from unopened container - Warm solution gently with stirring - Add components in different order; some require acidic/basic conditions

Problem: pH meter giving erratic readings

  • Symptoms: pH value fluctuates or seems obviously wrong
  • Causes:

- Electrode requires cleaning or conditioning - Insufficient equilibration time - Electrode damaged or expired - Temperature compensation not set correctly

  • Solutions:

- Clean electrode with appropriate solution; condition in storage solution - Allow 30-60 seconds for stable reading - Replace electrode if old or damaged (typical lifespan 1-2 years) - Use automatic temperature compensation (ATC) or manual temperature correction


References

Available in references/ directory:

  • (No reference files currently available for this skill)

External Resources:

  • Cold Spring Harbor Protocols: https://cshprotocols.org
  • Thermo Fisher Buffer Reference: https://www.thermofisher.com/buffers
  • Sigma-Aldrich Buffer Calculator: https://www.sigmaaldrich.com/biochemicals

Scripts

Located in scripts/ directory:

  • main.py - Main buffer calculation engine with recipe library

Buffer Reference Tables

Common Buffer Formulations

BufferpHMajor ComponentsTypical Use
PBS7.4NaCl, KCl, PhosphatesCell washing, ELISA
TBS7.4Tris, NaClWestern blotting
TBST7.4TBS + Tween-20Western blot washing
RIPA7.4-8.0Tris, NaCl, DetergentsCell lysis
TAE~8.0Tris, Acetate, EDTADNA electrophoresis
TBE~8.3Tris, Borate, EDTADNA/RNA electrophoresis
TE8.0Tris, EDTADNA storage
Tris-HClVariableTrisGeneral buffering
HEPES7.0-8.0HEPESCell culture

Molecular Weight Reference

CompoundFormulaMW (g/mol)Notes
NaClNaCl58.44Common salt
KClKCl74.55Potassium source
Tris baseC4H11NO3121.14Buffering agent
EDTA (disodium)C10H14N2Na2O8·2H2O372.24Chelating agent
Na2HPO4 (anhydrous)Na2HPO4141.96Phosphate buffer
KH2PO4KH2PO4136.09Phosphate buffer
SDSC12H25NaO4S288.38Detergent

Parameters

ParameterTypeDefaultRequiredDescription
bufferstring-YesBuffer type (PBS, RIPA, TAE)
--volume, -vfloat-NoFinal volume in mL
--concentration, -cfloat1.0NoConcentration (X)
--list, -lflag-NoList available buffers

Usage

Basic Usage

# Calculate PBS buffer (1X, 500 mL)
python scripts/main.py PBS --volume 500

# Calculate 10X PBS
python scripts/main.py PBS --volume 500 --concentration 10

# List all available buffers
python scripts/main.py --list

Risk Assessment

Risk IndicatorAssessmentLevel
Code ExecutionPython script executed locallyLow
Network AccessNo external API callsLow
File System AccessNo file accessLow
Data ExposureNo sensitive dataLow
Clinical RiskUsed for lab calculationsLow

Security Checklist

  • [x] No hardcoded credentials or API keys
  • [x] No file system access
  • [x] Input validation for buffer types
  • [x] Output does not expose sensitive information
  • [x] Error messages sanitized
  • [x] Script execution in sandboxed environment

Prerequisites

# Python 3.7+
# No additional packages required (uses standard library)

Evaluation Criteria

Success Metrics

  • [x] Successfully calculates buffer recipes
  • [x] Provides accurate mass measurements
  • [x] Supports multiple buffer types
  • [x] Handles concentration scaling

Test Cases

  1. PBS Calculation: PBS, 500mL, 1X → Correct masses for all components
  2. 10X Concentration: PBS, 500mL, 10X → 10x mass values
  3. List Buffers: --list → Shows all available buffer types

Lifecycle Status

  • Current Stage: Active
  • Next Review Date: 2026-03-09
  • Known Issues: None
  • Planned Improvements:

- Add more buffer recipes - Add pH calculation support - Add custom buffer creation


Last Updated: 2026-02-09 Skill ID: 162 Version: 2.0 (K-Dense Standard)

平台分布

OpenClaw

89.17%
按下载量换算2,279

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills