cycle

A menstrual-cycle and symptom tracker that records period dates, symptoms, flow, and related notes. It can use past cycle records to estimate future periods, ovulation, and fertile days.

In plain words
What is it for?
Use it to start or end a cycle, log symptoms and flow, review cycle history, and get date estimates based on recorded cycles.
Why use it?
It avoids having to calculate cycle dates by hand and keeps period and symptom information in one record.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/huifer/wellally-health/cycle
Clone the repo
git clone --depth 1 https://github.com/huifer/WellAlly-health

Made for: Claude Code.

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 9,462 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00009 $0.09462
Opus 5 $0.00005 $0.04731
Sonnet 5 $0.00002 $0.01892
Haiku 4.5 $0.00001 $0.00946

Measured yesterday against content hash 944fa825a136, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cycle 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 yesterday.

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/cycle.md · 1,312 lines

How it starts

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

女性健康周期追踪

追踪月经周期、PMS症状、排卵期预测,提供个性化健康洞察。

操作类型

1. 记录周期开始 - start

记录月经开始日期,自动计算预测日期。

参数说明:

  • description: 周期描述(可选),自然语言描述
  • date: 开始日期(可选),格式 YYYY-MM-DD,默认为今天

示例:

/cycle start 今天来月经了
/cycle start 2025-12-28
/cycle start 这个月28号
/cycle start 记录月经开始 12月28日 腹痛

执行步骤:

1. 解析输入

从自然语言中提取:

  • 日期信息:今天/指定日期
  • 症状关键词:腹痛、腰酸、头痛等
  • 流量描述:量很大、正常、量少等
2. 验证输入

检查项:

  • 日期不能是未来日期
  • 如果有未结束的周期,提示先结束
  • 验证日期格式

错误处理:

⚠️ 检测到未结束的周期

当前周期:2025年11月28日开始
提示:请先使用 /cycle end 结束当前周期
3. 创建周期记录

生成 cycle_idcycle_YYYYMMDD

  • 示例:cycle_20251228

周期数据结构:

{
  "cycle_id": "cycle_20251228",
  "period_start": "2025-12-28",
  "period_end": null,
  "cycle_length": null,
  "period_length": null,
  "flow_pattern": {},
  "pms_symptoms": {
    "start_date": null,
    "symptoms": {}
  },
  "daily_logs": [],
  "ovulation_date": null,
  "predictions": {},
  "notes": "",
  "created_at": "2025-12-28T08:00:00.000Z",
  "completed": false
}
4. 计算预测日期

算法:

  1. 获取历史周期数据:从 cycle-tracker.json 读取已完成的周期
  2. 计算平均周期长度:使用最近6个周期
  3. 预测下次月经period_start + average_cycle_length
  4. 预测排卵日期next_period - 14 days
  5. 计算易孕期ovulation_date - 5 daysovulation_date + 1 day

默认值(无历史数据):

  • 平均周期长度:28天
  • 平均经期长度:5天
  • 排卵日期:下次月经前14天
5. 更新数据文件

文件 1data/cycle-tracker.json

{
  "cycles": [
    // ... 添加新周期到数组
  ],
  "current_cycle": {
    "period_start": "2025-12-28",
    "period_end": null,
    "cycle_length": null,
    "predicted_ovulation": "2026-01-11",
    "predicted_next_period": "2026-01-25",
    "days_since_start": 0
  },
  "statistics": {
    // ... 更新统计数据
  },
  "predictions": {
    "next_period": "2026-01-25",
    "ovulation_date": "2026-01-11",
    "fertile_window_start": "2026-01-06",
    "fertile_window_end": "2026-01-12",
    "confidence": "low"
  }
}

文件 2data/周期记录/YYYY-MM/YYYY-MM-DD_周期记录.json

{
  "id": "cycle_20251228",
  "period_start": "2025-12-28",
  "period_end": null,
  "created_at": "2025-12-28T08:00:00.000Z",
  "initial_symptoms": ["腹痛"],
  "daily_logs": [],
  "metadata": {
    "completed": false
  }
}

Read the full file on GitHub · 1,312 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. yesterday First seen · 1,312 lines · 9 tokens per session scan A 944fa825a136

Subscribe to this mod's changes

cycle is a command published in the GitHub repository huifer/WellAlly-health (935 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 9,462 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.