微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⌚

三星健康数据本地分析专家

Samsung Health · v1.0.0
效率 安全 B 级 作者 mudgesbot 公开目录收录
1.3k 下载 0 安装 6.6k 收藏 31 浏览

简介

通过 Google Drive 备份分析三星健康数据,支持睡眠分期、步数追踪、心率血氧监测及运动历史查询,需配合 Galaxy Watch/Ring 使用。

原始描述

Analyze Samsung Health Connect data synced to Google Drive. Use for health tracking queries like sleep analysis, step counting, heart rate monitoring, SpO2 b...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/samsung-health/
其它 Agent解压到它自己的 skills 目录,目录名用 samsung-health

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: samsung-health description: Analyze Samsung Health Connect data synced to Google Drive. Use for health tracking queries like sleep analysis, step counting, heart rate monitoring, SpO2 blood oxygen, workout history, and daily health reports. Requires Samsung Galaxy Watch/Ring with Health Connect backup to Google Drive enabled. metadata: clawdbot: requires: bins: ["gog", "python3"] install: - id: clone kind: shell label: "Clone repository" command: "git clone https://github.com/mudgesbot/samsung-health-skill.git" - id: venv kind: shell label: "Create virtualenv and install" command: "cd samsung-health-skill && python3 -m venv .venv && source .venv/bin/activate && pip install -e ."

Samsung Health Connect CLI

Analyze health data from Samsung Health Connect exported to Google Drive.

Prerequisites

  • Samsung Galaxy Watch or Galaxy Ring with Samsung Health
  • Samsung Health Connect app with Google Drive backup enabled
  • gog CLI for Google Drive access (part of Clawdbot)

Installation

cd /path/to/workspace/projects
git clone https://github.com/mudgesbot/samsung-health-skill.git
cd samsung-health-skill
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

Create ~/.config/samsung-health/config.yaml:

google_drive:
  folder_id: "YOUR_FOLDER_ID"      # From Google Drive URL
  account: "your.email@gmail.com"  # Google account for gog CLI
  file_name: "Health Connect.zip"

goals:
  daily_steps: 10000
  sleep_hours: 8

timezone: "Europe/Copenhagen"

Commands

All commands require activating the venv first:

cd /path/to/samsung-health-skill && source .venv/bin/activate

Sync Data

shealth sync              # Download latest from Google Drive
shealth sync --force      # Force re-download

Quick Daily View

shealth today             # Today's snapshot (steps, sleep, HR, SpO2)

Status

shealth status            # Data freshness, record counts, date range

Sleep Analysis

shealth sleep             # Last 7 days
shealth sleep --days 14   # Custom period

Shows: duration, stage breakdown (Light/Deep/REM/Awake), trends.

Step Tracking

shealth steps             # Last 7 days
shealth steps --week      # Weekly view
shealth steps --month     # Monthly view

Shows: daily counts, goal progress, streaks.

Heart Rate

shealth heart             # Last 7 days
shealth heart --days 14   # Custom period

Shows: average, min/max, daily trends.

Blood Oxygen (SpO2)

shealth spo2              # Last 7 days
shealth spo2 --days 14    # Custom period

Shows: average, range, trend. Normal: 95-100%.

Workouts

shealth workout           # Last 30 days
shealth workout --days 90 # Custom period

Shows: session count, duration, types (Walking, Running, Swimming, etc.)

Health Report

shealth report            # Comprehensive 7-day summary
shealth report --days 14  # Custom period

Shows: Energy Score, sleep summary, activity, heart rate.

JSON Output

Add --json flag to any command for machine-readable output:

shealth --json today
shealth --json sleep --days 7
shealth --json report

Sleep Stage Codes

Code Stage
1 Light Sleep
4 Deep Sleep
5 Awake
6 REM Sleep

Exercise Types

Code Type
53 Walking
33 Running
61 Hiking
21 Cycling
58 Swimming
4 Weight Training
66 Yoga

Troubleshooting

"Database not found" — Run shealth sync first.

"Google Drive not configured" — Create config.yaml with folder_id and account.

SpO2/HRV shows 0 records — Requires Galaxy Watch 4+ or Galaxy Ring; may need enabling in Samsung Health settings.

Source

GitHub: https://github.com/mudgesbot/samsung-health-skill

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

samsunghealth-datawearablesfitness-trackingsleep-analysisheart-ratespo2cli-toolprivacy

同类 Skill