Health Auto Log
by @klcintw
Automatically detect and log health data (weight, blood sugar, exercise) to AX3 system. Use when user sends health measurements via WhatsApp or other messagi...
clawhub install health-auto-logπ About This Skill
name: health-auto-log description: Automatically detect and log health data (weight, blood sugar, exercise) to AX3 system. Use when user sends health measurements via WhatsApp or other messaging channels, especially messages containing numbers with health-related keywords like "ι«ι", "θ‘η³", or plain numeric values that could be weight measurements.
Health Auto Log
Overview
Automatically detect health metrics from user messages and record them to AX3 Personal system. Supports weight, blood sugar, and exercise time tracking with flexible input formats.
When to Use This Skill
Trigger this skill when user messages contain:
Quick Start
Use the record_health_data.py script to process any message:
python3 scripts/record_health_data.py "ι«ι69.8ε
¬ζ€"
The script will: 1. Extract health metrics from the message 2. Validate the values are within reasonable ranges 3. Record to AX3 using mcporter 4. Return confirmation with record IDs
Supported Metrics
1. Weight (ι«ι)
Habit ID: 1 Unit: kg Range: 40-200 kg
Supported formats:
ι«ι69.8ε
¬ζ€69.8kg69.8 (plain number)2. Blood Sugar (θ‘η³)
Habit ID: 4 Unit: mg/dL Range: 50-500 mg/dL
Supported formats:
θ‘η³120120 mg/dL3. Running Time (θ·ζ₯ζ©)
Habit ID: 2 Unit: minutes
Supported formats:
θ·ζ₯ζ©30εθ·ζ₯30Workflow
Automatic Detection Flow
1. Receive message from WhatsApp or other channel
2. Run script with message text: python3 scripts/record_health_data.py "
3. Extract metrics using regex patterns
4. Validate values are in reasonable ranges
5. Record to AX3 via mcporter call to ax3-personal.record_habit
6. Confirm with user showing what was recorded
Example Usage
# Single metric
python3 scripts/record_health_data.py "ι«ι69.8ε
¬ζ€"
Output: β
ι«ι 69.8 kg ε·²θ¨ι
Multiple metrics in one message
python3 scripts/record_health_data.py "ι«ι69.8ε
¬ζ€ θ‘η³120"
Output:
β
ι«ι 69.8 kg ε·²θ¨ι
β
θ‘η³ 120 mg/dL ε·²θ¨ι
Integration Pattern
When a user sends a health-related message:
1. Call the script with the message text 2. Parse the JSON output to check if data was detected 3. If detected, respond with confirmation (e.g., "ζΆε°οΌ69.8 kg ε·²θ¨ι π") 4. If not detected, reply normally without mentioning the skill
Error Handling
The script includes validation:
Resources
scripts/record_health_data.py
Python script that handles:
The script can be called directly or integrated into message handling workflows.
π‘ Examples
Use the record_health_data.py script to process any message:
python3 scripts/record_health_data.py "ι«ι69.8ε
¬ζ€"
The script will: 1. Extract health metrics from the message 2. Validate the values are within reasonable ranges 3. Record to AX3 using mcporter 4. Return confirmation with record IDs