bmi-bsa-calculator
Calculate Body Mass Index (BMI) and Body Surface Area (BSA) for clinical assessment, obesity screening, and chemotherapy dosing. Supports multiple BSA formulas (DuBois, Mosteller, Haycock), WHO weight classification, pediatric calculations, and metric/imperial input.
Install / Use
npx skills add aipoch/medical-research-skills --skill bmi-bsa-calculatorInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Customer SupportSupported Platforms
Our assessment of bmi-bsa-calculator
bmi-bsa-calculator scores 92/100 on our quality scale, 97th of 327 Customer Support skills we index (top 30%).
Its SKILL.md is 6.6 KB long, well organised into 19 sections with 6 code examples: a thorough specification that gives an agent plenty to work with.
With 1,916 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 15 days ago, so bmi-bsa-calculator is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
bmi-bsa-calculator compared with similar skills
All 4 of these similar skills score higher than bmi-bsa-calculator; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| bmi-bsa-calculator (this skill)by aipoch | 92 | 1.9k | 15d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 88.1k | 17d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 10d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 10d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 11d ago | SKILL.md |
Frequently asked questions
- How do I install bmi-bsa-calculator?
- Run
npx skills add aipoch/medical-research-skills --skill bmi-bsa-calculator. The install tabs above show the steps for each supported agent. - Which AI agents does bmi-bsa-calculator work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is bmi-bsa-calculator safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is bmi-bsa-calculator still maintained?
- The repository was last updated 15 days ago, so bmi-bsa-calculator is actively maintained.
Skill content
View source on GitHubname: bmi-bsa-calculator description: Calculate Body Mass Index (BMI) and Body Surface Area (BSA) for clinical assessment, obesity screening, and chemotherapy dosing. Supports multiple BSA formulas (DuBois, Mosteller, Haycock), WHO weight classification, pediatric calculations, and metric/imperial input. license: MIT author: AIPOCH
BMI & BSA Calculator
Clinical calculator for anthropometric measurements used in health assessment, obesity screening, and chemotherapy dosing calculations.
Key Capabilities:
- BMI Calculation: Standard and adjusted BMI formulas with WHO classification
- BSA Estimation: Multiple validated formulas (DuBois, Mosteller, Haycock, Gehan-George)
- Weight Classification: WHO and CDC category assignment
- Dosing Support: Chemotherapy and medication dose calculations
- Pediatric Support: Age-appropriate norms and percentile calculations
- Unit Flexibility: Metric and imperial input support
Input Validation
This skill accepts: weight (kg or lbs), height (cm or inches), and optional parameters (age, sex, drug dose per m², output format). All values must be physiologically plausible.
Valid ranges: weight 2–300 kg, height 50–250 cm.
If the request does not involve calculating BMI or BSA — for example, asking to diagnose a condition, interpret lab results, or provide dietary advice — do not proceed. Instead respond:
"BMI & BSA Calculator is designed to calculate Body Mass Index and Body Surface Area for clinical screening and dosing support. Please provide weight and height values. For clinical diagnosis or treatment decisions, consult a qualified healthcare professional."
Quick Check
python -m py_compile scripts/main.py
python scripts/main.py --help
Workflow
- Confirm weight, height, and any optional parameters (age, sex, drug dose).
- Validate inputs are within physiologically plausible ranges; stop if values are outside bounds.
- Run the script or apply the documented calculation path.
- Return a structured result separating assumptions, deliverables, risks, and unresolved items.
- If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.
Fallback: If --weight or --height is missing, respond: "Required parameters missing. Please provide --weight (kg) and --height (cm). Cannot calculate BMI or BSA without both values."
Core Capabilities
1. BMI Calculation
from scripts.calculator import BMIBSACalculator
calc = BMIBSACalculator()
result = calc.calculate_bmi(weight_kg=70, height_cm=175, age=45, sex="male")
print(f"BMI: {result.bmi:.1f} kg/m²")
print(f"Category: {result.category}")
BMI Categories (WHO):
| Category | BMI Range | Clinical Significance | |----------|-----------|----------------------| | Underweight | < 18.5 | Malnutrition risk | | Normal | 18.5–24.9 | Healthy range | | Overweight | 25.0–29.9 | Increased risk | | Obese I | 30.0–34.9 | High risk | | Obese II | 35.0–39.9 | Very high risk | | Obese III | ≥ 40.0 | Extremely high risk |
2. BSA Calculation
bsa_results = calc.calculate_bsa(
weight_kg=70, height_cm=175,
formulas=["dubois", "mosteller", "haycock", "gehan_george"]
)
BSA Formulas:
| Formula | Best For | |---------|----------| | DuBois | Adults (most common) | | Mosteller | Adults (simplified) | | Haycock | Pediatrics | | Gehan-George | Oncology | | Yu | Asian populations |
3. Drug Dosing
dose = calc.calculate_dose(bsa=1.79, drug="carboplatin", dose_per_m2=400, max_dose=800)
Common BSA-based doses: Carboplatin (Calvert formula), 5-FU 400–600 mg/m², Doxorubicin 60–75 mg/m², Paclitaxel 135–175 mg/m².
4. Pediatric Calculations
pediatric = calc.pediatric_mode(weight_kg=25, height_cm=120, age_years=8, sex="female")
print(f"BMI-for-age percentile: {pediatric.bmi_percentile}%")
CLI Usage
# Calculate BMI and BSA
python scripts/main.py --weight 70 --height 175
# Calculate with drug dosing
python scripts/main.py --weight 70 --height 175 --dose 100
# Output as JSON
python scripts/main.py --weight 70 --height 175 --format json --output results.json
Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| --weight, -w | float | Yes | Weight in kilograms |
| --height, -H | float | Yes | Height in centimeters |
| --dose, -d | float | No | Drug dose per m² in mg |
| --format, -f | string | No | Output format (text, json) |
| --output, -o | string | No | Output file path |
Output Requirements
Every final response must make these explicit:
- Objective or requested deliverable
- Inputs used (weight, height, age, sex) and assumptions introduced
- Formula(s) selected and rationale
- Core result: BMI value + category, BSA value + formula used, dose if applicable
- Constraints and risks (BMI is screening only; not diagnostic)
- Unresolved items and next-step checks
Error Handling
- If
--weightor--heightis missing, state the missing parameter and request it. - If values are outside valid ranges (weight <2 or >300 kg; height <50 or >250 cm), flag as implausible and request correction.
- If
scripts/main.pyfails, report the failure point and provide manual calculation fallback. - Do not fabricate results or clinical interpretations.
Common Pitfalls
- Unit confusion: Always verify kg vs lbs, cm vs inches
- Wrong formula: Use Haycock for children < 12 years
- BMI over-interpretation: BMI is a screening tool; clinical correlation required
- Athletes misclassified: Consider waist circumference or body fat %
- BSA rounding: Use precise values for chemotherapy dosing
Limitations
- BMI does not distinguish fat from muscle; varies by ethnicity
- All BSA formulas are approximations (10–15% variation normal)
- Not for diagnosis — BMI/BSA are tools, not clinical diagnoses
- Standard formulas inaccurate for amputees; special considerations for pregnancy
⚕️ Clinical Note: BMI and BSA are screening and calculation tools, not substitutes for clinical judgment. Always correlate with physical examination and patient history. Double-check all chemotherapy calculations independently.
References
references/bsa_formulas_comparison.md— Formula accuracy by populationreferences/pediatric_norms.md— Growth charts and percentilesreferences/chemotherapy_dosing.md— BSA-based drug calculationsreferences/ethnic_adjustments.md— Population-specific cutoffs
Related Skills
Agent-Reach
88.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
