If detailed records exist, save to data/周期记录/YYYY-MM/YYYY-MM-DD_周期记录.json
Execution Instructions
1. Parse user input and determine operation type
2. Execute corresponding logic based on operation type
3. Validate input data and state
4. Generate JSON compliant with schema.json
5. Save to data/cycle-tracker.json
6. Output operation result and summary to user
Example Interactions
Example 1: Start Cycle
User: /cycle start period started today
System:
Cycle record created
Cycle Information:
Period start: 2025-12-28
Prediction Information:
Expected next period: 2026-01-25
Expected ovulation date: 2026-01-11
Fertile window: January 6 - January 12
Current Status:
Cycle day: 1
Phase: Menstrual phase
Data saved to: data/周期记录/2025-12/2025-12-28_周期记录.json
Example 2: Log Entry
User: /cycle log heavy flow today abdominal pain
System:
Daily log recorded
Log Information:
Date: 2025-12-28
Cycle day: 1
Phase: Menstrual phase
Flow: Heavy (level 4)
Symptoms: Abdominal pain
Mood: Normal
Energy: Medium
Cycle Progress:
Day 1/5 of current cycle (estimated)
Days to ovulation: 13
Days to next period: 27
Data saved to: data/周期记录/2025-12/2025-12-28_周期记录.json
Example 3: Ovulation Prediction
User: /cycle predict conception mode
System:
Ovulation Prediction (Conception Mode)
Based on last 6 cycles:
Average cycle length: 28.5 days
Cycle regularity: 92% (very regular)
Ovulation Prediction:
Expected ovulation date: January 11, 2026
Detailed Fertile Schedule:
January 6 (Fertile day 1): 10% conception probability
January 7 (Fertile day 2): 15% conception probability
January 8 (Fertile day 3): 20% conception probability
January 9 (Fertile day 4): 25% conception probability
January 10 (Fertile day 5): 30% conception probability
January 11 (Ovulation day): 35% conception probability
January 12 (Fertile day 7): 15% conception probability
Best conception window: January 9 - January 11
Conception Advice:
• Start folic acid supplementation 3 months early (400-800μg/day)
• Maintain moderately frequent intercourse during fertile period
• Lie down for 15-30 minutes after intercourse
• Maintain healthy weight and regular sleep schedule