Skip to content
Data
Command

/growth

测量日期(格式:YYYY-MM-DD,默认今天)

From plugin
wellally-health
91959 skills59 commands
Install
$ npx -y skills add huifer/WellAlly-health --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/growth

Context preview

What this command does when you run it.

测量日期(格式:YYYY-MM-DD,默认今天)

Command definition

growth.md
description: 儿童生长曲线追踪和WHO标准评估
arguments:
  - name: action
    description: 操作类型:record(记录测量)/status(评估)/percentile(百分位)/velocity(生长速度)/check(异常检查)/history(历史)
    required: true
  - name: info
    description: 测量信息(身高/体重/头围等,自然语言描述)
    required: false
  - name: date
    description: 测量日期(格式:YYYY-MM-DD,默认今天)
    required: false

生长曲线追踪

儿童生长监测和评估,基于WHO儿童生长标准,提供百分位分析和生长异常预警。

操作类型

1. 记录生长数据 - `record`

记录儿童身高、体重、头围等生长指标。

**参数说明:**

  • `info`: 测量信息(必填)
  • 身高:height 112.5, 112.5cm
  • 体重:weight 20.5, 20.5kg
  • 头围:head 48, 48cm(0-3岁)
  • `date`: 测量日期(可选,默认今天)

**示例:**

/growth record 112.5cm 20.5kg
/growth record height 112.5 weight 20.5
/growth record head 48
/growth record height 110 weight 18.5 date 2025-06-15

**执行步骤:**

1. 解析测量信息

**参数识别:**

  • 身高:`height[:\s]+(\d+\.?\d*)` 或 `(\d+\.?\d*)\s*cm`
  • 体重:`weight[:\s]+(\d+\.?\d*)` 或 `(\d+\.?\d*)\s*kg`
  • 头围:`head[:\s]+(\d+\.?\d*)` 或 `(\d+\.?\d*)\s*cm`

2. 读取儿童基础信息

从 `data/profile.json` 读取:

  • 出生日期
  • 性别

如果缺少,提示:

⚠️ 缺少儿童基础信息

请先设置:
/profile child-name 小明
/profile child-birth-date 2020-01-01
/profile child-gender male

3. 计算年龄和月龄

birthDate = profile.child_birth_date
measurementDate = date || today

ageMonths = (measurementDate - birthDate) / 30.44
ageYears = ageMonths / 12

// 早产儿矫正(如需要)
if gestational_age < 37 weeks and age < 2 years:
  correctedAge = chronologicalAge - (40 - gestational_age)

4. 计算BMI

if height && weight:
  bmi = weight / (height / 100)²

5. 查找WHO百分位

从 `data/who-growth-standards.json` 查找:

  • `height_for_age` → 年龄别身高百分位
  • `weight_for_age` → 年龄别体重百分位
  • `bmi_for_age` → 年龄别BMI百分位
  • `head_circumference_for_age` → 年龄别头围百分位(0-3岁)

**百分位查找算法:**

// 1. 选择性别和测量类型
whoData = loadWHOStandards()[measurementType][gender]

// 2. 查找年龄对应的百分位
ageKey = findNearestAge(whoData, ageMonths)
percentiles = whoData[ageKey]

// 3. 计算百分位和Z-score
percentile = calculatePercentile(value, percentiles)
zScore = calculateZScore(value, percentiles)

6. 计算Z-score(标准差单位)

zScore = (value - median) / standardDeviation

// Z-score分级:
// < -3: 严重偏低
// -3 to -2: 明显偏低
// -2 to -1: 轻度偏低
// -1 to +1: 正常
// +1 to +2: 轻度偏高
// +2 to +3: 明显偏高
// > +3: 严重偏高

7. 计算生长速度(如果有历史数据)

if measurements.length >= 2:
  previous = measurements[measurements.length - 2]
  current = measurements[measurements.length - 1]

  monthsDiff = calculateMonthsDifference(previous.date, current.date)
  heightVelocity = (current.height - previous.height) / (monthsDiff / 12)
  weightVelocity = (current.weight - previous.weight) / (monthsDiff / 12)

8. 评估生长状态

**身高评估 (HAZ):**

  • HAZ < -2: 生长迟缓 ⚠️
  • HAZ -2 to -1: 轻度生长迟缓
  • HAZ -1 to +1: 正常 ✓
  • HAZ > +1: 高身材

**体重评估 (WAZ):**

  • WAZ < -3: 严重体重不足 ⚠️⚠️
  • WAZ -3 to -2: 中度体重不足 ⚠️
  • WAZ -2 to -1: 轻度体重不足
  • WAZ -1 to +2: 正常 ✓
  • WAZ > +2: 超重 ⚠️

**BMI评估 (BAZ):**

  • BAZ < -2: 消瘦 ⚠️
  • BAZ -2 to +1: 正常 ✓
  • BAZ > +1: 超重风险 ⚠️
  • BAZ > +2: 肥胖 ⚠️⚠️

9. 生长异常预警

**预警条件:**

  • 身高 < -2SD(生长迟缓)
  • 体重 < -2SD(体重不足)
  • BMI > +2SD(肥胖)
  • 生长速度 < 第5百分位

10. 更新tracker文件

**数据结构:**

{
  "date": "2025-06-20",
  "age": "5y5m",
  "age_months": 65,

  "height": {
    "value": 112.5,
    "percentile": 50,
    "z_score": 0.0,
    "velocity": 6.5,
    "velocity_period": "12_months",
    "velocity_percentile": 50
  },

  "weight": {
    "value": 20.5,
    "percentile": 55,
    "z_score": 0.13,
    "velocity": 2.8,
    "velocity_percentile": 60
  },

  "bmi": {
    "value": 16.2,
    "percentile": 60,
    "z_score": 0.25
  },

  "head_circumference": null,
  "comments": ""
}

11. 输出确认

**正常生长:**

✅ 生长数据已记录

测量信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
日期:2025年6月20日
年龄:5岁5个月(65月龄)

身高:112.5 cm
  百分位:第50百分位 (P50) ✓
  Z-score:0.0
  生长速度:6.5 cm/年(第50百分位)

体重:20.5 kg
  百分位:第55百分位 (P55) ✓
  Z-score:+0.13
  生长速度:2.8 kg/年(第60百分位)

BMI:16.2
  百分位:第60百分位 (P60) ✓
  Z-score:+0.25

生长评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 身高:正常(第50百分位)
✅ 体重:正常(第55百分位)
✅ BMI:正常(第60百分位)
✅ 生长速度:正常(第50百分位)
✅ 比例:匀称

综合评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 生长正常

儿童身高、体重、BMI均在
正常范围内,生长速度正常,
身体比例匀称。

建议:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 继续保持健康生活方式
✅ 均衡营养
✅ 适量运动
✅ 充足睡眠
✅ 定期体检

⚠️ 重要提示:
━━━━━━━━━━━━━━━━━━━━━━━━━━
本评估基于WHO儿童生长标准,
仅供参考,不能替代专业医疗诊断。

如对生长发育有疑问,
建议咨询儿科医生。

数据已保存至:data/生长记录/2025-06/2025-06-20_生长测量.json

**生长异常警示:**

⚠️ 生长异常提示

测量信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
日期:2025年6月20日
年龄:5岁5个月(65月龄)

身高:105.0 cm
  百分位:第3百分位 (P3) ⚠️
  Z-score:-1.9
  生长速度:4.5 cm/年(第3百分位)⚠️

体重:16.5 kg
  百分位:第5百分位 (P5) ⚠️
  Z-score:-1.6

BMI:15.0
  百分位:第15百分位 (P15) ⚠️

生长评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ 身高:生长迟缓(第3百分位)
⚠️ 体重:体重不足(第5百分位)
⚠️ 生长速度:生长速度缓慢

可能原因:
━━━━━━━━━━━━━━━━━━━━━━━━━━
• 遗传因素
• 营养不良
• 慢性疾病
• 内分泌异常
• 吸收障碍

🏥 建议就医:
━━━━━━━━━━━━━━━━━━━━━━━━━━
建议咨询儿科或儿童保健科:

进一步检查:
• 骨龄评估
• 营养评估
• 内分泌检查
• 必要时染色体检查

生活指导:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 加强营养(优质蛋白)
✅ 补充维生素D
✅ 适量运动
✅ 充足睡眠
✅ 预防疾病

⚠️ 重要提示:
━━━━━━━━━━━━━━━━━━━━━━━━━━
生长迟缓需专业评估和干预,
请尽快就医。

数据已保存

---

2. 查看生长评估 - `status`

显示当前生长状态综合评估。

**参数说明:**

  • 无参数

**示例:**

/growth status

**执行步骤:**

1. 读取最新测量数据

2. 计算当前状态

3. 生成评估报告

📍 儿童生长状态报告

基本信息:
━━━━━━━━━━━━━━━━━━━━━━━━━━
姓名:小明
性别:男
出生日期:2020年1月1日
当前年龄:5岁5个月

最新测量(2025年6月20日):
━━━━━━━━━━━━━━━━━━━━━━━━━━
身高:112.5 cm(第50百分位)✓
体重:20.5 kg(第55百分位)✓
BMI:16.2(第60百分位)✓

生长趋势:
━━━━━━━━━━━━━━━━━━━━━━━━━━
身高速度:6.5 cm/年(正常)
体重速度:2.8 kg/年(正常)

生长轨迹:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ 身高沿第50百分位生长
✓ 体重略高于身高百分位
✓ BMI在正常范围

综合评估:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ 生长正常

所有指标均在正常范围,
生长速度正常,生长曲线沿
百分位线平稳上升。

⚠️ 重要提示:
━━━━━━━━━━━━━━━━━━━━━━━━━━
本评估基于WHO儿童生长标准,
仅供参考,不能替代专业医疗诊断。

数据已保存

---

3. 查看百分位分析 - `percentile`

显示详细的百分位和Z-score分析。

**参数说明:**

  • 无参数

**示例:**

/growth percentile

**执行步骤:**

1. 读取最新测量数据

2. 生成百分位报告

📊 生长百分位分析报告

测量日期:2025年6月20日
年龄:5岁5个月(男)

身高百分位:
━━━━━━━━━━━━━━━━━━━━━━━━━━
测量值:112.5 cm
第3百分位 (P3):102.1 cm
第15百分位 (P15):106.1 cm
第50百分位 (P50):110.0 cm ← 当前值
第85百分位 (P85):114.3 cm
第97百分位 (P97):117.9 cm

当前百分位:第50百分位 ✓
Z-score:0.0(正常)
解读:身高处于同龄男孩的中等水平
Read more
Ships withwellally-health

WellAlly Health is a local-first, AI-powered personal health record (PHR) system.

Get the whole plugin