Agent skill

Buffer Calculator

by aipoch in aipoch/medical-research-skills

Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry.

MITAuto-check passed

Install Buffer Calculator

skills CLI
$ npx skills add aipoch/medical-research-skills --skill buffer-calculator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills buffer-calculator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/buffer-calculator .claude/skills/buffer-calculator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
buffer-calculator
GitHub stars
2k
Token cost
~1.8k tokens
SKILL.md length
709 words
Files
3 (incl. scripts)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry.

  • Works in 3 steps: Predefined Buffer Library → Mass Calculations → Stock Solution Scaling
  • SKILL.md covers Input Validation, Quick Check, Workflow and Core Capabilities, plus 8 more sections
  • Runs Python scripts from its folder; calls python

What it does

Buffer Calculator is an agent skill from aipoch/medical-research-skills. Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry. Supports PBS, RIPA, and TAE with concentration scaling, stock solution preparation, pH adjustment guidance, and step-by-step protocols.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `buffer-calculator_audit_result_v2.json` and `scripts/main.py`).

The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

Example prompts

  • “/buffer-calculator”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Predefined Buffer Library
  2. Mass Calculations
  3. Stock Solution Scaling

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cshprotocols.org
    • thermofisher.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Buffer Calculator loads about 1.8k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 709 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 709 words, ~1,772 tokens.

Download SKILL.mdSave it as .claude/skills/buffer-calculator/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
buffer-calculator
description
Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry. Supports PBS, RIPA, and TAE with concentration scaling, stock solution preparation, pH adjustment guidance, and step-by-step protocols.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

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: PBS, RIPA, TAE with accurate molecular weights
  • Precise Mass Calculations: Component masses to milligram precision
  • Volume-Based Components: Handle liquid components (detergents, acids)
  • Concentration Scaling: Scale from stock solutions (10X, 20X) to working concentrations
  • Step-by-Step Protocols: Detailed preparation instructions with safety notes

Input Validation

This skill accepts: a buffer type (PBS, RIPA, TAE), final volume in mL, and optional concentration multiplier (default 1X).

If the request does not involve calculating a laboratory buffer recipe — for example, asking to design a drug formulation, interpret pH meter readings, or perform chemical synthesis — do not proceed. Instead respond:

"Buffer Calculator is designed to calculate precise buffer recipes for molecular biology and biochemistry. Please provide a buffer type (PBS, RIPA, or TAE) and target volume. For other formulation tasks, use a more appropriate tool."


Quick Check

bash
python -m py_compile scripts/main.py
python scripts/main.py --help

Workflow

  1. Confirm buffer type, final volume, and concentration multiplier.
  2. Validate that the buffer type is in the supported library; stop if unsupported without guessing.
  3. Run the calculation script or apply the documented formula path.
  4. Return a structured result separating assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Fallback: If buffer type is missing or unrecognized, respond: "Buffer type not specified or not in library. Available buffers: PBS, RIPA, TAE. Use --list to see all options. Cannot calculate without a valid buffer type."


Core Capabilities

1. Predefined Buffer Library
python
from scripts.main import BufferCalculator
calc = BufferCalculator()
# List available buffers
for buf in calc.BUFFER_RECIPES.keys():
    print(f"  {buf}: pH {calc.BUFFER_RECIPES[buf].get('pH', 'N/A')}")
BufferApplicationpHKey Components
PBSCell washing, immunostaining7.4NaCl, KCl, Phosphates
RIPACell lysis, protein extraction7.4Tris, NaCl, Detergents
TAEDNA electrophoresis~8.0Tris, Acetate, EDTA
HEPESCell culture, pH-sensitive assays7.0–7.6HEPES, NaCl
Tris-HCl (pH 7.4)Protein buffers, Western blot7.4Tris, HCl
Tris-HCl (pH 8.0)DNA/RNA work, enzyme reactions8.0Tris, HCl
MOPSRNA electrophoresis, cell culture7.0–7.5MOPS, NaCl
2. Mass Calculations
python
result = calc.calculate("PBS", final_volume_ml=500, concentration_x=1.0)
for comp in result['components']:
    if 'amount_mg' in comp:
        print(f"{comp['component']}: {comp['amount_mg']:.2f} mg")

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

3. Stock Solution Scaling
python
# 10X PBS stock (500 mL)
stock_result = calc.calculate("PBS", final_volume_ml=500, concentration_x=10.0)
ConcentrationStorage StabilityUse Case
1X1–2 weeks at 4°CImmediate use
10X3–6 months at 4°CRegular daily use
20X–50X6–12 months frozenLong-term storage

CLI Usage

text
# 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

Parameters

ParameterTypeRequiredDescription
bufferstringYesBuffer type (PBS, RIPA, TAE)
--volume, -vfloatNoFinal volume in mL
--concentration, -cfloatNo (default 1.0)Concentration multiplier (X)
--list, -lflagNoList available buffers

Show full SKILL.md (283 more words)Show less

Output Requirements

Every final response must make these explicit:

  • Objective or requested deliverable
  • Inputs used (buffer type, volume, concentration) and assumptions introduced
  • Calculation formula applied
  • Core result: component masses/volumes with units
  • Constraints and risks (verify MW for hydrates; check pH after preparation)
  • Unresolved items and next-step checks (pH verification, sterile filtration if needed)

Error Handling

  • If buffer type is missing or unrecognized, list available options and request clarification. If the user provides component names, concentrations, and molecular weights, offer to calculate a custom recipe using the formula: mass (mg) = concentration (mM) × volume (mL) × MW (g/mol) / 1000.
  • If volume is not provided, use a sensible default (500 mL) and state the assumption explicitly.
  • If scripts/main.py fails, report the failure point and provide manual calculation fallback using the formula above.
  • Do not fabricate molecular weights or component amounts.

Quick Verification

Expected output for PBS 1X 500 mL:

  • NaCl: 4,000 mg (137 mM × 500 mL × 58.44 g/mol / 1000)
  • KCl: 100 mg (2.7 mM × 500 mL × 74.55 g/mol / 1000)
  • Na₂HPO₄: 720 mg (10.1 mM × 500 mL × 141.96 g/mol / 1000)
  • KH₂PO₄: 120 mg (1.76 mM × 500 mL × 136.09 g/mol / 1000)

Common Pitfalls

  • Confusing mM and M: 1000-fold concentration error — always verify units
  • Wrong molecular weight: Account for hydrates (e.g., Na₂HPO₄·7H₂O vs anhydrous)
  • Adding water to acid: Always add acid to water, never reverse
  • Incomplete dissolution: Dissolve each component completely before adding next
  • pH drift during storage: Check pH before each use for critical applications

Molecular Weight Reference

CompoundFormulaMW (g/mol)
NaClNaCl58.44
KClKCl74.55
Tris baseC₄H₁₁NO₃121.14
EDTA (disodium)C₁₀H₁₄N₂Na₂O₈·2H₂O372.24
Na₂HPO₄ (anhydrous)Na₂HPO₄141.96
KH₂PO₄KH₂PO₄136.09

References

→ Full troubleshooting: references/troubleshooting.md (if available)

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in scientific-skills/Other/buffer-calculator of aipoch/medical-research-skills.

  • SKILL.md
  • buffer-calculator_audit_result_v2.json
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Buffer Calculator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Buffer Calculator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Buffer Calculator this skillaipoch/medical-research-skills2k—~1.8kAutomated safety check: PassMIT
BufferLeoYeAI/openclaw-master-skills2.2k—~7.5kAutomated safety check: PassMIT
Measure Before You Fixgarrytan/gbrain31k—~2.5kAutomated safety check: PassMIT
Eol Resistor Calculatorsickn33/agentic-awesome-skills47k1 repos~3.5kAutomated safety check: PassMIT
Material Density Volume CalculationInternScience/scp1691 repos~497Automated safety check: PassMIT
Mixed Precisionaiming-lab/AutoResearchClaw15k—~275Automated safety check: PassMIT

Similar skills

  • Buffer

    LeoYeAI/openclaw-master-skills

    Buffer API integration with managed authentication. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~7.5k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Measure Before You Fix

    garrytan/gbrain

    Before fixing a slow/stale/timeout alert, measure the step yourself.

    31k GitHub stars~2.5k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Eol Resistor Calculator

    sickn33/agentic-awesome-skills

    Calculates and validates end-of-line (EOL, SEOL, DEOL, TEOL) resistor loops for intrusion alarm panels (Honeywell, DSC, Paradox, Bosch) with wire gauge drop and state tables.

    47k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Calculate material density and volume from mass and geometric dimensions for materials mechanics analysis.

    169 GitHub starsUsed in 1 repo~497 tokens
    Auto-check passed
  • Mixed Precision

    aiming-lab/AutoResearchClaw

    Use FP16/BF16 mixed precision to accelerate training and reduce memory.

    15k GitHub stars~275 tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Measure Startup Requests

    TriliumNext/Trilium

    A skill your agent uses when measuring what the Trilium client loads at startup — "what loads at boot?", "did this change reduce the startup bundle?", "is <dependency lazy?", or any before/after…

    38k GitHub stars~1.5k tokensUpdated today
    Testing & QAAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 21 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 21 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 21 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 21 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 21 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 21 days ago
    Auto-check passed

Questions about Buffer Calculator

What does Buffer Calculator do?

Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry. Buffer Calculator is an agent skill from aipoch/medical-research-skills. Calculate precise buffer recipes with accurate mass and volume measurements for molecular biology and biochemistry.

How do I install Buffer Calculator in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill buffer-calculator -a claude-code`. Or copy the skill folder (scientific-skills/Other/buffer-calculator in aipoch/medical-research-skills) into .claude/skills/buffer-calculator in your project. Claude Code loads it when a task matches its description.

How do I install Buffer Calculator in Codex?

Run `npx skills add aipoch/medical-research-skills --skill buffer-calculator -a codex`. Or copy the skill folder (scientific-skills/Other/buffer-calculator in aipoch/medical-research-skills) into .agents/skills/buffer-calculator in your project. Codex loads it when a task matches its description.

Can I use Buffer Calculator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill buffer-calculator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/buffer-calculator, .gemini/skills/buffer-calculator, .github/skills/buffer-calculator and .opencode/skills/buffer-calculator in your project.

What does Buffer Calculator need to run?

Going by SKILL.md and its folder, Buffer Calculator needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Buffer Calculator access the network?

SKILL.md names 2 domains. As links in the text: cshprotocols.org and thermofisher.com. This is read from the text; nothing was executed.

Is Buffer Calculator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Buffer Calculator use?

Buffer Calculator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Buffer Calculator use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Buffer Calculator?

Skills that share tags, products or a category with Buffer Calculator: Buffer (LeoYeAI/openclaw-master-skills, 2.2k stars), Measure Before You Fix (garrytan/gbrain, 31k stars), Eol Resistor Calculator (sickn33/agentic-awesome-skills, 47k stars) and Material Density Volume Calculation (InternScience/scp, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Buffer Calculator?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,974 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.