WellAlly-health: Command for Claude Code

.claude/commands/pregnancy.md

pregnancy is a command for Claude Code from huifer/WellAlly-health. It costs 9 tokens per session (14,189 once invoked), scanned A, original, MIT.

A command for keeping pregnancy health records and planning prenatal checkups. It calculates an expected delivery date and tracks pregnancy stages, including multiple pregnancies.

In plain words
What is it for?
It is for starting a pregnancy record, estimating the due date and pregnancy week, and generating a checkup schedule.
Why use it?
It organizes dates and upcoming examinations from the last menstrual period or an ultrasound-adjusted date.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

This is huifer/WellAlly-health's own configuration. It tells Claude Code how to work on WellAlly-health itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything WellAlly-health configures →

Reuse

Borrowing it

Nothing to install: this file belongs to huifer/WellAlly-health. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/huifer/WellAlly-health/main/.claude/commands/pregnancy.md
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pregnancy

README.md
[![agentmods](https://agentmods.dev/badge/commands/huifer/wellally-health/pregnancy/github.svg)](https://agentmods.dev/commands/huifer/wellally-health/pregnancy)
Your own site
<a href="https://agentmods.dev/commands/huifer/wellally-health/pregnancy"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/pregnancy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pregnancy

Your own site · 80×15
<a href="https://agentmods.dev/commands/huifer/wellally-health/pregnancy"><img src="https://agentmods.dev/badge/commands/huifer/wellally-health/pregnancy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 14,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.14189
Opus 5 $0.00005 $0.07095
Sonnet 5 $0.00002 $0.02838
Haiku 4.5 $0.00001 $0.01419

Measured 11d ago against content hash 674320e7c6a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pregnancy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pregnancy.md · 1,961 lines

How it starts

The opening of the file, as written. The whole thing — 1,961 lines — stays where its author put it; the contents beside it link to each section on GitHub.

孕期管理

全周期孕期追踪和管理,从备孕到分娩,提供全面的孕期健康监测和管理功能。

✨ 新功能:支持多胎妊娠追踪 - 可追踪单胎、双胎、三胎、四胎妊娠

操作类型

1. 开始孕期记录 - start

初始化孕期记录,计算预产期和产检计划。

参数说明:

  • info: 末次月经日期(必填),格式 YYYY-MM-DD 或自然语言

示例:

/pregnancy start 2025-01-01
/pregnancy start 今年1月1日
/pregnancy start last month January 1st
/pregnancy start 2025-01-01 ultrasound May 15  # 超声校正

执行步骤:

1. 解析输入信息

从自然语言中提取:

  • 末次月经日期 (LMP):精确日期
  • 超声校正日期(可选):超声确认的预产期
  • 多胎妊娠(可选):twins, triplets
2. 验证输入

检查项:

  • LMP 日期不能是未来日期
  • LMP 应在 past 10 个月内(避免过期数据)
  • 如果有活跃孕期,提示先结束

错误处理:

⚠️ 已存在活跃孕期记录

当前孕期:末次月经 2025年1月1日,预产期 2025年10月8日
提示:请先完成当前孕期再开始新记录
3. 计算预产期和孕周

预产期计算(Naegele规则):

  • 预产期 = LMP + 280天(40周)
  • 如有超声校正:使用超声确认日期

当前孕周计算:

  • 孕周 = floor((今天 - LMP) / 7)
  • 孕日 = (今天 - LMP) % 7

孕期划分:

  • 孕早期:1-13周
  • 孕中期:14-27周
  • 孕晚期:28-42周

可信度评估:

  • 高可信度:超声校正
  • 中等可信度:LMP仅计算
  • 低可信度:LMP不确定
4. 生成产检计划

标准产检时间表:

孕周 检查项目 准备事项
12周 NT检查(早唐筛) 需要憋尿
16周 唐筛/无创DNA 空腹抽血
20周 大排畸超声 需要预约
24周 糖耐量测试 空腹,带糖水
28周 常规产检 测血压、体重
32周 常规产检 胎位检查
34周 常规产检 胎心监护
36周 常规产检 胎心监护
37周 每周产检 直到分娩
38周 每周产检 监测胎动
39周 每周产检 评估分娩方式
40周 每周产检 监测过期妊娠
5. 创建孕期记录

生成 pregnancy_idpregnancy_YYYYMMDD

孕期数据结构:

{
  "pregnancy_id": "pregnancy_20250101",
  "lmp_date": "2025-01-01",
  "due_date": "2025-10-08",
  "due_date_confidence": "medium",
  "corrected_by_ultrasound": false,
  "ultrasound_correction_date": null,

  "current_week": 0,
  "current_day": 0,
  "current_trimester": "first",
  "days_passed": 0,
  "days_remaining": 280,
  "progress_percentage": 0,

  "multi_pregnancy": {
    "pregnancy_type": "singleton",
    "fetal_count": 1,
    "detection_method": "manual",
    "detection_confidence": "confirmed",
    "fetal_profiles": [
      {
        "baby_id": "A",
        "estimated_weight": null,
        "position": null,
        "heart_rate": null,
        "amniotic_fluid_index": null,
        "growth_percentile": null,
        "notes": ""
      }
    ],
    "special_considerations": [],
    "adjusted_due_date": null,
    "adjusted_delivery_week": 40
  },

  "prenatal_checks": [
    {
      "check_id": "check_001",
      "week": 12,
      "check_type": "NT检查",
      "check_type_en": "NT_scan",
      "scheduled_date": "2025-03-25",
      "completed": false,
      "results": {},
      "notes": "",
      "preparation": "需要憋尿"
    },
    {
      "check_id": "check_002",
      "week": 16,
      "check_type": "唐筛",
      "check_type_en": "triple_test",
      "scheduled_date": "2025-04-22",
      "completed": false,
      "results": {},
      "notes": "",
      "preparation": "空腹抽血"
    }
    // ... 其他产检项目
  ],

  "symptoms": {
    "nausea": {
      "present": false,
      "severity": null,
      "frequency": null,
      "triggers": [],
      "relief_methods": []
    },
    "fatigue": {
      "present": false,
      "severity": null
    },
    "edema": {
      "present": false,
      "severity": null
    }
  },

  "weight_tracking": [],

  "blood_pressure": [],

  "fetal_movement": {
    "tracking_started": false,
    "start_week": 28,
    "movements": []
  },

  "contractions": [],

  "nutrition_plan": {
    "folic_acid": {
      "dose": "400μg",
      "frequency": "daily",
      "started": null,
      "adherence": null
    },
    "iron": {
      "dose": null,
      "frequency": null,
      "started": null
    },
    "calcium": {
      "dose": null,
      "frequency": null,
      "started": null
    },
    "dha": {
      "dose": null,
      "frequency": null,
      "started": null
    }
  },

  "medication_safety_checks": [],

  "risk_factors": [],

  "notes": "",
  "completed": false,
  "delivery_date": null,
  "delivery_outcome": null,

  "metadata": {
    "created_at": "2025-01-01T00:00:00.000Z",
    "last_updated": "2025-01-01T00:00:00.000Z"
  }
}

Read the full file on GitHub · 1,961 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 1,961 lines · 9 tokens per session scan A 674320e7c6a6

Subscribe to this mod's changes

pregnancy is a command published in the GitHub repository huifer/WellAlly-health (947 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 14,189 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.