360 Secure SkillHub
360 安全技能中心

WHO Growth Charts

通过 Python 脚本生成 WHO 儿童生长标准曲线图(身高、体重、BMI 百分位),按需从 cdn.who.int 下载并本地缓存官方参考数据,支持按性别、出生日期与 JSON 测量数据叠加儿童实际测量值。

odrobnik
odrobnik
热度 92.85
最近更新 2026-05-11 15:50:52
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:健康 / 数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add who-growth-charts
Metadata
name
who-growth-charts
description
Generate WHO child growth charts (height, weight, BMI) with percentile curves. Downloads official WHO reference data on demand. Use when users ask about child growth tracking, percentiles, or want growth charts for their kids.
version
1.2.3
homepage
https://github.com/odrobnik/who-growth-charts-skill
metadata
{"openclaw":{"emoji":"📈","requires":{"bins":["python3"],"python":["pandas","matplotlib","scipy","openpyxl"]}}}

Generate WHO Child Growth Standards charts with percentile curves and child data overlay.

Features

  • Height-for-age (0-19 years)
  • Weight-for-age (0-10 years)
  • BMI-for-age (0-19 years)
  • Supports boys and girls
  • Downloads WHO data on demand from cdn.who.int (cached locally)
  • Overlays child's actual measurements with trend line

Examples

Height Weight BMI

Prerequisites

Install Python dependencies:

pip install pandas matplotlib scipy openpyxl

Usage

Basic Chart Generation

python3 ./scripts/growth_chart.py "Child Name" "DD.MM.YYYY" --sex F --type all

Arguments:

  • name: Child's name (used in chart title)
  • birthdate: Date of birth in DD.MM.YYYY format
  • --sex / -s: F (female) or M (male) — default: F
  • --type / -t: height, weight, bmi, or all — default: all
  • --data / -d: JSON file with measurement data
  • --output / -o: Output directory for charts

With Measurement Data

Create a JSON file with height/weight measurements (heights in meters, weights in kg):

{
  "heights": [ ["2024-01-15T10:00:00", 1.05] ],
  "weights": [ ["2024-01-15T10:00:00", 17.5] ]
}
python3 ./scripts/growth_chart.py "Emma" "06.07.2016" --sex F --data emma_data.json --type all

Integration with Withings

Combine with withings-family skill to fetch weight data automatically:

# Get Withings weight data (assuming withings-family skill is installed)
python3 ../withings-family/scripts/withings.py emma body > /tmp/withings.json

# Parse and generate charts
# (The growth chart script handles Withings JSON format if implemented, otherwise transform it)

Output

By default, charts and cache are written to:

  • <workspace>/who-growth-charts/
  • <workspace>/who-growth-charts/cache/

Where <workspace> is the folder that contains your skills/ directory (auto-detected from CWD or script location).