Aggregates the past 7 days of health data from health-memory into a narrative weekly report with a composite health score (0-100), per-domain summaries, cross-domain correlations, and actionable next-week suggestions. Use at the end of each week or when the user asks for a health summary.
Aggregate the past 7 days of daily logs and longitudinal indicator files from health-memory. Produce a narrative weekly report with a composite health score, per-domain summaries, cross-domain correlations, highlights, and actionable next-week suggestions.
Data sources:
memory/health/daily/*.md -- last 7 days of daily logsmemory/health/items/*.md -- all longitudinal indicator filesmemory/health/_health-profile.md -- health baseline profileSteps:
memory/health/daily/*.md, filter to the 7 target daysmemory/health/items/*.md, read each file, extract ## Recent Status and ## History rows within the target weekmemory/health/_health-profile.md for baseline infoData completeness check: Record which days and which domains have data vs. are missing. Clearly note missing data in the report. Do not impute missing values.
Composite score from all tracked domains' control rates.
Formula: Total = sum of (domain compliance rate * domain weight * 100)
Domain weights (sum = 1.0):
| Domain | Weight | Compliance calculation |
|---|---|---|
| Blood pressure | 0.20 | This-week BP on-target count / measurements (target: < 140/90) |
| Blood glucose | 0.20 | This-week FPG on-target count / measurements (target: < 7.0 mmol/L) |
| Weight management | 0.10 | BMI 18.5-24 = 100%; each BMI point beyond deducts 10% |
| Exercise | 0.15 | This-week total exercise minutes / 150 (WHO recommendation), cap at 100% |
| Nutrition | 0.10 | This-week average calorie compliance (within +/-10% of target = on-target) |
| Sleep quality | 0.10 | This-week average sleep score / 100 (from sleep-analyzer) |
| Caffeine control | 0.05 | This-week caffeine cutoff-compliant days / 7 (from caffeine-tracker) |
| Medication adherence | 0.10 | This-week medication adherence rate (from medication-reminder) |
When a domain has no data: Exclude it and redistribute its weight proportionally among domains with data, keeping total weight = 1.0.
Score grades:
| Score | Grade | Description |
|---|---|---|
| 90-100 | Excellent | All indicators well controlled |
| 75-89 | Good | Most on-target, a few need attention |
| 60-74 | Fair | Multiple areas need improvement |
| < 60 | Needs attention | Overall control is poor, recommend medical consultation |
Generate a structured summary for each domain with data:
Blood Pressure: Measurement count, average SBP/DBP, max/min, on-target rate (< 140/90), week-over-week change.
Blood Glucose: FPG average/max/min, postprandial average/max/min, latest HbA1c (if available), hypoglycemia events (< 3.9 mmol/L).
Weight: Start-of-week vs. end-of-week weight, weekly change (kg), distance to target weight, trend direction.
Exercise: Total minutes, active days, WHO compliance (>= 150 min moderate/week), exercise type distribution.
Nutrition: Average daily calories, macronutrient ratio (protein/carb/fat), deviation from calorie target.
Sleep: Average duration, average score, sleep efficiency, week-over-week comparison.
Caffeine: Average daily intake (mg), peak single-day intake, cutoff-time compliant days.
Medication: Weekly adherence rate, missed doses count and drugs, week-over-week comparison.
Analyze correlations between health domains:
| Pair | Analysis | Method |
|---|---|---|
| Exercise <-> Blood Pressure | BP on exercise days vs. rest days | Compare group means |
| Diet <-> Blood Glucose | Postprandial glucose on high-cal vs. low-cal days | Compare group means |
| Caffeine <-> Sleep | Sleep score on high-caffeine vs. low-caffeine days | Compare group means |
| Exercise <-> Sleep | Sleep quality on exercise vs. rest days | Compare group means |
| Sleep <-> Blood Pressure | Next-day BP after good vs. poor sleep | Compare group means |
| Medication <-> Blood Pressure | BP on missed-dose days vs. adherent days | Compare group means |
Method (no statistics library required):
Note: 7 days of data is limited. Correlations are observational, not causal.
Best day: The day with the most on-target indicators.
Areas needing improvement: The domain with the lowest compliance rate, with specific improvement direction.
Milestone detection:
Generate 3-5 specific, actionable suggestions based on this week's data:
The core value of the digest is turning data into readable narrative, not just listing numbers.
Good example:
Blood pressure control was generally acceptable this week, averaging 132/85 mmHg, but readings spiked on Wednesday and Saturday. Notably, both were rest days -- exercise-day average was 128/82, while rest-day average rose to 138/90, suggesting regular exercise helps with BP control.
# Weekly Health Digest
## Period
YYYY-Wnn (YYYY-MM-DD to YYYY-MM-DD)
## Health Score: NN/100 (Grade)
### Score Breakdown
| Domain | Weight | Compliance | Points |
|--------|--------|-----------|--------|
| Blood pressure | 20% | N% | N.N |
| Blood glucose | 20% | N% | N.N |
| Weight management | 10% | N% | N.N |
| Exercise | 15% | N% | N.N |
| Nutrition | 10% | N% | N.N |
| Sleep quality | 10% | N% | N.N |
| Caffeine control | 5% | N% | N.N |
| Medication adherence | 10% | N% | N.N |
| **Total** | **100%** | | **NN.N** |
---
## Weekly Overview
[Narrative paragraph summarizing the week]
---
## Domain Details
### Blood Pressure
[Narrative summary with data]
### Blood Glucose
[Narrative summary with data]
### [Other domains...]
---
## Correlations
1. **[Pair]**: [narrative finding]
---
## Highlights
- **Best day**: [day and why]
- **Milestone**: [if any]
- **Progress**: [if any]
## Areas to Improve
- **[Domain]** (compliance N%): [specific issue]
---
## Next-Week Action Plan
1. **[Action]**: [rationale from this week's data]
---
## Data Completeness
| Date | BP | Glucose | Exercise | Nutrition | Sleep | Caffeine | Meds |
|------|----|---------|---------|-----------| ------|----------|------|
| MM-DD Day | v/- | v/- | v/- | v/- | v/- | v/- | v/- |
Missing: [summary of gaps]
2026-W10.memory/health/weekly/YYYY-Wnn.md. Edit Sunday's daily file to add digest section.memory/health/weekly/YYYY-Wnn.md (create directory if needed; overwrite if regenerating)## Weekly Digest [weekly-health-digest · HH:MM]
- Health Score: NN/100 (Grade)
- Highlights: [key achievement]
- Action items: [top priorities]
- Full report: memory/health/weekly/YYYY-Wnn.md
This skill generates weekly health digests for personal health management reference only. It does not constitute medical advice. It does not diagnose diseases, recommend treatments, adjust medications, or replace regular medical checkups.
The health score is a composite reference metric, not a medical assessment. Correlations are based on limited data (7 days) and are observational only. When the score is < 60 or multiple abnormal trends are detected, recommend medical consultation. The digest can serve as reference material for physician visits but does not replace medical examination.