Install
openclaw skills install @5fivelogistic-cell/pregnancy-calendar-reminders根据末次月经或医生校正预产期,自动生成完整孕期每日提醒和关键产检提醒日历(.ics),支持导入 iCloud/Apple 日历。覆盖 NT、NIPT、系统超声、糖耐、孕晚期准备等关键节点,每次生成自动校验日期和事件数。
openclaw skills install @5fivelogistic-cell/pregnancy-calendar-remindersUse this skill to produce a checked .ics pregnancy reminder calendar. Prefer the bundled generator over manual date arithmetic.
使用本 skill 生成经过核对的 .ics 孕期提醒日历。不要手工心算孕周和日期,优先使用内置脚本。
预产期 = 末次月经 + 280天。EDD = LMP + 280 days.等效末次月经 = 预产期 - 280天。equivalent LMP = EDD - 280 days.41周+0天,避免手机里出现大量过去提醒。41周+0天.--include-past。--include-past.scripts/generate_pregnancy_calendar.py 生成文件 / Generate files._validation.json 和 _outline.md 后再交付 / Read validation and outline before delivery..ics、核对表和简洁同步说明 / Deliver the .ics, outline, and sync instructions.Read references/pregnancy_rules.md before changing date-window logic, explaining the medical windows, or investigating validation failures.
在修改日期窗口、解释产检安排、排查校验失败时,必须先读 references/pregnancy_rules.md。脚本逻辑和参考规则要保持一致。
Run from any writable output directory. 在任意可写目录运行:
python /Users/wufei/.codex/skills/pregnancy-calendar-reminders/scripts/generate_pregnancy_calendar.py \
--lmp 2026-04-20 \
--output-dir ./pregnancy-calendar-output
Doctor-adjusted due date after NT. NT/产检后医生校正预产期:
python /Users/wufei/.codex/skills/pregnancy-calendar-reminders/scripts/generate_pregnancy_calendar.py \
--lmp 2026-04-20 \
--doctor-due 2027-01-25 \
--output-dir ./pregnancy-calendar-output
常用参数 / Useful options:
--start YYYY-MM-DD: 指定提醒开始日期 / start reminders on a specific date.--include-past: 从孕期锚点开始生成完整历史版 / generate from the LMP anchor.--daily-time HH:MM: 每日提醒时间,默认 20:30 / daily reminder time.--key-time HH:MM: 关键产检提醒时间,默认 09:00 / key event time.--calendar-name "...": 设置 .ics 中显示的日历名称 / set calendar display name.--prefix name: 修改输出文件名前缀 / change output filename prefix.脚本输出 / Script outputs:
.ics: 可导入日历文件 / importable calendar file..json: 事件明细 / generated event data._outline.md: 人类可读的孕周、预产期、产检窗口核对表 / human-readable summary._validation.json: 输入、事件数、文件路径和校验结果 / validation report.Before answering the user, confirm all of these from _validation.json and/or the outline.
给用户回复前,必须从 _validation.json 或核对表确认:
validation_passed is true / 校验结果为 true。40周+0天 / 预产期当天必须是 40周+0天。41周+0天 / 日历结束日期必须是 41周+0天。.ics event count matches the JSON/report event count / .ics 事件数和 JSON/报告一致。If validation fails, fix the script/input and regenerate. Do not deliver a failed calendar.
如果校验失败,修正输入或脚本后重新生成,不要交付失败日历。
Prefer delivering the .ics and asking the user to import it into an iCloud calendar.
默认交付 .ics,建议用户导入 iCloud 日历:
.ics 文件 / Open the .ics on Mac.设置 > Apple ID > iCloud > 日历 / enable iCloud Calendar on iPhone.When the user asks Codex to directly modify macOS Calendar:
当用户要求直接修改 macOS 日历:
open/osascript / 需要请求权限。Use cautious language: this calendar is for family planning, appointment preparation, and reminders. It does not replace diagnosis, prescriptions, or individualized hospital plans.
保持谨慎表述:本日历只用于家庭计划、预约准备和提醒,不替代医生诊断、处方或医院个体化安排。任何危险症状提醒都应建议用户及时联系产科或就医。