← 返回 Skills 市场
harrylabsj

Health Manager

作者 haidong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
323
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install health-manager
功能描述
Health data management system for tracking blood pressure, heart rate, exercise, and medication. Use when: (1) recording daily health metrics like blood pres...
使用说明 (SKILL.md)

Health Manager - 健康管理

综合健康数据管理系统,记录和分析血压、心率、运动等健康数据。

功能特性

1. 数据模型与存储

  • SQLite 数据库存储
  • 血压记录表(收缩压、舒张压、心率、时间、备注)
  • 运动记录表(类型、时长、步数、消耗、时间)
  • 用药记录表(药物、剂量、时间)
  • 用户配置表
  • 提醒配置表

2. 数据录入功能

  • CLI 命令录入血压数据
  • CLI 命令录入运动数据
  • CLI 命令录入用药记录
  • 批量导入(CSV/JSON格式)

3. 数据分析

  • 血压趋势计算(7天/30天平均)
  • 心率变化分析
  • 运动统计(按类型、按日)
  • 异常值检测

4. 智能提醒

  • 用药提醒配置
  • 血压监测提醒
  • 运动提醒

5. 报告生成

  • 日报生成
  • 周报生成
  • 健康手册生成(Markdown)

安装

cd ~/.openclaw/workspace/skills/health-manager
npm install
npm run build

使用方法

血压管理

# 添加血压记录
health bp add 120 80 --heart-rate 72 --notes "早晨测量"

# 查看血压记录
health bp list

# 查看血压趋势
health bp trend 7

# 查看异常血压
health bp abnormal

运动管理

# 添加运动记录
health ex add walking 30 --steps 5000 --calories 150

# 查看运动记录
health ex list

# 查看运动统计
health ex stats 7

用药管理

# 添加用药记录
health med add "降压药" "1片" --unit "片"

# 查看用药记录
health med list

# 查看今日用药
health med today

报告生成

# 生成日报
health report daily
health report daily 2024-01-15 --output report.md

# 生成周报
health report weekly
health report weekly --output weekly.md

# 生成健康手册
health report handbook --output handbook.md

数据导入导出

# 导出数据
health data export blood_pressure --format csv --output bp.csv
health data export-all ./backups

# 导入数据
health data import blood_pressure data.csv
health data import exercise data.json

配置管理

# 查看配置
health config list

# 设置配置项
health config set user.name "张三"

# 初始化用户配置
health config init --name "张三" --age 50 --height 170 --weight 70

提醒管理

# 查看提醒
health reminder list

# 初始化默认提醒
health reminder init

# 添加提醒
health reminder add medication "08:00" --message "该吃药了"

# 切换提醒状态
health reminder toggle 1

状态概览

health status

数据库位置

health data path

默认位置:~/.config/health-manager/health.db

技术栈

  • Node.js / TypeScript
  • SQLite (better-sqlite3)
  • Commander.js (CLI)
  • Chalk (终端颜色)

数据结构

血压记录

{
  id: number;
  systolic: number;      // 收缩压
  diastolic: number;     // 舒张压
  heart_rate?: number;   // 心率
  recorded_at: string;   // 记录时间
  notes?: string;        // 备注
}

运动记录

{
  id: number;
  type: string;          // 运动类型
  duration_minutes: number;  // 时长
  steps?: number;        // 步数
  calories_burned?: number;  // 消耗
  distance_km?: number;  // 距离
  recorded_at: string;
  notes?: string;
}

用药记录

{
  id: number;
  name: string;          // 药物名称
  dosage: string;        // 剂量
  unit?: string;         // 单位
  taken_at: string;      // 服药时间
  notes?: string;
}

血压参考标准

分类 收缩压 (mmHg) 舒张压 (mmHg)
正常 \x3C 120 \x3C 80
正常偏高 120-129 \x3C 80
高血压前期 130-139 80-89
高血压 1 级 140-159 90-99
高血压 2 级 ≥ 160 ≥ 100
安全使用建议
This package appears to be a local CLI health manager and is generally coherent with its description, but take these precautions before installing/running it: (1) Inspect package.json for postinstall scripts or unusual lifecycle scripts; (2) Review dependencies for native modules or large packages (e.g., puppeteer which downloads Chromium) and be prepared for extra disk/network activity; (3) If you enable Apple Health/Google Fit/Wearable integrations, expect OAuth flows and Bluetooth/device permissions — only grant those when you understand the endpoint and privacy implications; (4) Verify where data is stored (~/.config/health-manager/health.db or ~/.health-manager/) and whether you want it encrypted/backed up; (5) If you are unsure, run npm install and the CLI in a sandboxed or disposable environment first and audit outgoing network connections while exercising sync features.
功能分析
Type: OpenClaw Skill Name: health-manager Version: 1.0.0 The health-manager skill bundle is a legitimate health data management system designed to track blood pressure, heart rate, exercise, and medication. The implementation uses a local SQLite database (stored in `~/.config/health-manager/health.db`) and provides a comprehensive CLI for data entry, trend analysis, and report generation. Analysis of the source code (e.g., `src/cli.ts`, `src/database/connection.ts`, and `src/utils/export.ts`) reveals no evidence of data exfiltration, malicious execution, or prompt injection; all file and database operations are consistent with the stated purpose of the tool.
能力评估
Purpose & Capability
Name/description (health data manager) match the included code, CLI, DB schema, reports, and docs. Requested resources (none) and declared functionality (SQLite, CLI, device/Apple Health integrations) are coherent with the stated purpose.
Instruction Scope
SKILL.md gives standard local usage (npm install, build, CLI commands) and identifies the local DB path (~/.config/health-manager/health.db). Instructions do not direct the agent to read unrelated system secrets or exfiltrate data, but the project design explicitly describes optional integrations (Apple Health, Google Fit, BLE devices) which — if enabled — will request platform permissions or OAuth flows; those integrations are expected but require explicit user consent.
Install Mechanism
Registry metadata shows no install spec, but SKILL.md and repository include code and explicit npm install/build steps. No remote download URLs or obscure installers were found in the provided files. Installing runs normal npm flow (inspect package.json and any lifecycle scripts first).
Credentials
The skill does not declare or require environment variables or external credentials in metadata. Design docs mention optional OAuth/device integrations — those would legitimately require credentials if you enable them, but nothing in the package silently asks for unrelated secrets.
Persistence & Privilege
Skill is not forced-always, and it does not request system-wide configuration changes in the provided materials. It stores user data locally by default; this is expected for a personal health manager.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install health-manager
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /health-manager 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Health Manager, a comprehensive health data management system. - Track and record blood pressure, heart rate, exercise, and medication via CLI. - Analyze health trends: blood pressure, heart rate, and exercise statistics. - Manage medication and health reminders. - Generate daily, weekly, and handbook-style health reports in Markdown. - Import/export data in CSV/JSON formats; backup and restore capabilities. - Customize user and reminder configuration.
元数据
Slug health-manager
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Health Manager 是什么?

Health data management system for tracking blood pressure, heart rate, exercise, and medication. Use when: (1) recording daily health metrics like blood pres... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 323 次。

如何安装 Health Manager?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install health-manager」即可一键安装,无需额外配置。

Health Manager 是免费的吗?

是的,Health Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Health Manager 支持哪些平台?

Health Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Health Manager?

由 haidong(@harrylabsj)开发并维护,当前版本 v1.0.0。

💬 留言讨论