← Back to Skills Marketplace
klcintw

Health Auto Log

by klcintw · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
356
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install 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 messagi...
README (SKILL.md)

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:

  • Weight measurements (e.g., "體重69.8公斤", "69.8kg", "69.8")
  • Blood sugar readings (e.g., "血糖120", "120 mg/dL")
  • Exercise time (e.g., "跑步機30分", "跑步30")

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.8kg
  • 69.8 (plain number)

2. Blood Sugar (血糖)

Habit ID: 4
Unit: mg/dL
Range: 50-500 mg/dL

Supported formats:

  • 血糖120
  • 120 mg/dL

3. Running Time (跑步機)

Habit ID: 2
Unit: minutes

Supported formats:

  • 跑步機30分
  • 跑步30

Workflow

Automatic Detection Flow

  1. Receive message from WhatsApp or other channel
  2. Run script with message text: python3 scripts/record_health_data.py "\x3Cmessage>"
  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:

  • Out of range values are ignored (e.g., weight of 500kg won't be recorded)
  • Invalid formats are silently skipped
  • mcporter failures are captured and returned in the JSON output

Resources

scripts/record_health_data.py

Python script that handles:

  • Pattern matching for various health data formats
  • Value validation and range checking
  • AX3 API calls via mcporter
  • JSON output for programmatic integration

The script can be called directly or integrated into message handling workflows.

Usage Guidance
This skill's behavior is plausible (auto-detect health metrics and call AX3), but the implementation is sloppy and potentially privacy-sensitive: it hard-codes a specific user's mcporter config path and invokes an external 'mcporter' binary that was not declared. Before installing or using it, ask the author to: (1) explain and remove the hard-coded path (make the config path or mcporter options configurable via env var or parameter), (2) declare 'mcporter' as a required binary and document what its config contains, (3) confirm whether mcporter.json contains secrets and whether those will be used/exposed, and (4) run the script in a safe sandbox to verify it doesn't read unexpected files. Do not install or give this skill access to production health data until these issues are resolved.
Capability Analysis
Type: OpenClaw Skill Name: health-auto-log Version: 1.0.0 The skill bundle is benign. The `SKILL.md` accurately describes the skill's purpose and how the agent should invoke the `record_health_data.py` script with user input. The Python script `scripts/record_health_data.py` securely handles user input by using regular expressions to extract only numeric values, performing type conversions (float/int), and validating these values within reasonable ranges. Crucially, it uses `subprocess.run` with a list of arguments, preventing shell injection, and the numeric values passed to the `mcporter` command are sanitized. There is no evidence of data exfiltration, persistence mechanisms, or malicious prompt injection attempts against the agent.
Capability Assessment
Purpose & Capability
The SKILL.md describes recording to AX3 via 'mcporter', but the skill metadata lists no required binaries or config paths. The script actually invokes the external 'mcporter' binary and hard-codes a user-specific config file (/Users/klcintw/clawd/config/mcporter.json). Those dependencies are not declared and are not proportionate to the manifest.
Instruction Scope
Runtime instructions tell the agent to run the included script, which is fine, but the script will call an external tool and attempt to use a specific local config file. The SKILL.md mentions mcporter but does not disclose the hard-coded config path or the expectation that a local mcporter installation and user config exist. That hidden file access is out-of-band for what a user would expect.
Install Mechanism
There is no install spec (instruction-only + code file) so nothing is written during install. However the script relies on an external binary ('mcporter') being present on PATH; the skill metadata did not declare this required binary. No network/download install risk is present.
Credentials
The skill declares no required env vars or config paths, yet the script references a concrete config file path likely to contain credentials for mcporter/AX3. This is disproportionate: the code can read or rely on local credentials without declaring or requesting them explicitly.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent platform privileges. It does not modify other skills or agent-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install health-auto-log
  3. After installation, invoke the skill by name or use /health-auto-log
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Auto-record health data to AX3
Metadata
Slug health-auto-log
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Health Auto Log?

Automatically detect and log health data (weight, blood sugar, exercise) to AX3 system. Use when user sends health measurements via WhatsApp or other messagi... It is an AI Agent Skill for Claude Code / OpenClaw, with 356 downloads so far.

How do I install Health Auto Log?

Run "/install health-auto-log" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Health Auto Log free?

Yes, Health Auto Log is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Health Auto Log support?

Health Auto Log is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Health Auto Log?

It is built and maintained by klcintw (@klcintw); the current version is v1.0.0.

💬 Comments