Extract health and fitness data from Garmin Connect including activities, sleep, heart rate, stress, steps, and body composition. Use when the user asks about their Garmin data, fitness metrics, sleep analysis, or health insights.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install garmer或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install garmer⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/garmer/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: garmer description: Extract health and fitness data from Garmin Connect including activities, sleep, heart rate, stress, steps, and body composition. Use when the user asks about their Garmin data, fitness metrics, sleep analysis, or health insights. license: MIT compatibility: Requires Python 3.10+, pip/uv for installation. Requires Garmin Connect account credentials for authentication. metadata: author: MoltBot Team version: "0.1.0" moltbot: emoji: "⌚" primaryEnv: "GARMER_TOKEN_DIR" requires: bins: - garmer install: - id: uv kind: uv package: garmer bins: - garmer label: Install garmer (uv) - id: pip kind: pip package: garmer bins: - garmer label: Install garmer (pip) ---
This skill enables extraction of health and fitness data from Garmin Connect for analysis and insights.
garmer CLI tool installed (see installation options in metadata)Before using garmer, authenticate with Garmin Connect:
garmer login
This will prompt for your Garmin Connect email and password. Tokens are saved to ~/.garmer/garmin_tokens for future use.
To check authentication status:
garmer status
Get today's health summary (steps, calories, heart rate, stress):
garmer summary
# For a specific date:
garmer summary --date 2025-01-15
# Include last night's sleep data:
garmer summary --with-sleep
garmer summary -s
# JSON output for programmatic use:
garmer summary --json
# Combine flags:
garmer summary --date 2025-01-15 --with-sleep --json
Get sleep analysis (duration, phases, score, HRV):
garmer sleep
# For a specific date:
garmer sleep --date 2025-01-15
List recent fitness activities:
garmer activities
# Limit number of results:
garmer activities --limit 5
# Filter by specific date:
garmer activities --date 2025-01-15
# JSON output for programmatic use:
garmer activities --json
Get detailed information for a single activity:
# Latest activity:
garmer activity
# Specific activity by ID:
garmer activity 12345678
# Include lap data:
garmer activity --laps
# Include heart rate zone data:
garmer activity --zones
# JSON output:
garmer activity --json
# Combine flags:
garmer activity 12345678 --laps --zones --json
Get comprehensive health data for a day:
garmer snapshot
# For a specific date:
garmer snapshot --date 2025-01-15
# As JSON for programmatic use:
garmer snapshot --json
Export multiple days of data to JSON:
# Last 7 days (default)
garmer export
# Custom date range
garmer export --start-date 2025-01-01 --end-date 2025-01-31 --output my_data.json
# Last N days
garmer export --days 14
# Update garmer to latest version (git pull):
garmer update
# Show version information:
garmer version
For more complex data processing, use the Python API:
from garmer import GarminClient
from datetime import date, timedelta
# Use saved tokens
client = GarminClient.from_saved_tokens()
# Or login with credentials
client = GarminClient.from_credentials(email="[email protected]", password="pass")
# Get user profile
profile = client.get_user_profile()
print(f"User: {profile.display_name}")
# Get registered devices
devices = client.get_user_devices()
# Get daily summary (defaults to today)
summary = client.get_daily_summary()
print(f"Steps: {summary.total_steps}")
# Get for specific date
summary = client.get_daily_summary(date(2025, 1, 15))
# Get weekly summary
weekly = client.get_weekly_summary()
# Get sleep data (defaults to today)
sleep = client.get_sleep()
print(f"Sleep: {sleep.total_sleep_hours:.1f} hours")
# Get last night's sleep
sleep = client.get_last_night_sleep()
# Get sleep for date range
sleep_data = client.get_sleep_range(
start_date=date(2025, 1, 1),
end_date=date(2025, 1, 7)
)
# Get recent activities
activities = client.get_recent_activities(limit=5)
for activity in activities:
print(f"{activity.activity_name}: {activity.distance_km:.1f} km")
# Get activities with filters
activities = client.get_activities(
start_date=date(2025, 1, 1),
end_date=date(2025, 1, 31),
activity_type="running",
limit=20
)
# Get single activity by ID
activity = client.get_activity(12345678)
# Get heart rate data for a day
hr = client.get_heart_rate()
print(f"Resting HR: {hr.resting_heart_rate} bpm")
# Get just resting heart rate
resting_hr = client.get_resting_heart_rate(date(2025, 1, 15))
# Get stress data
stress = client.get_stress()
print(f"Avg stress: {stress.avg_stress_level}")
# Get body battery data
battery = client.get_body_battery()
# Get detailed step data
steps = client.get_steps()
print(f"Total: {steps.total_steps}, Goal: {steps.step_goal}")
# Get just total steps
total = client.get_total_steps(date(2025, 1, 15))
# Get latest weight
weight = client.get_latest_weight()
print(f"Weight: {weight.weight_kg} kg")
# Get weight for specific date
weight = client.get_weight(date(2025, 1, 15))
# Get full body composition
body = client.get_body_composition()
# Get hydration data
hydration = client.get_hydration()
print(f"Intake: {hydration.total_intake_ml} ml")
# Get respiration data
resp = client.get_respiration()
print(f"Avg breathing: {resp.avg_waking_respiration} breaths/min")
# Get health snapshot (all metrics for a day)
snapshot = client.get_health_snapshot()
# Returns: daily_summary, sleep, heart_rate, stress, steps, hydration, respiration
# Get weekly health report with trends
report = client.get_weekly_health_report()
# Returns: activities summary, sleep stats, steps stats, HR trends, stress trends
# Export data for date range
data = client.export_data(
start_date=date(2025, 1, 1),
end_date=date(2025, 1, 31),
include_activities=True,
include_sleep=True,
include_daily=True
)
When a user asks "How did I sleep?" or "What's my health summary?":
garmer snapshot --json
When a user asks about workouts or exercise:
garmer activities --limit 10
When analyzing health trends over time:
garmer export --days 30 --output health_data.json
Then process the JSON file with Python for analysis.
If not authenticated:
Not logged in. Use 'garmer login' first.
If session expired, re-authenticate:
garmer login
GARMER_TOKEN_DIR: Custom directory for token storageGARMER_LOG_LEVEL: Set logging level (DEBUG, INFO, WARNING, ERROR)GARMER_CACHE_ENABLED: Enable/disable data caching (true/false)For detailed API documentation and MoltBot integration examples, see references/REFERENCE.md.
安装 Garmer 后,可以对 AI 说这些话来触发它
Help me get started with Garmer
Explains what Garmer does, walks through the setup, and runs a quick demo based on your current project
Use Garmer to extract health and fitness data from Garmin Connect including activ...
Invokes Garmer with the right parameters and returns the result directly in the conversation
What can I do with Garmer in my data & analytics workflow?
Lists the top use cases for Garmer, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/garmer/ 目录(个人级,所有项目可用),或 .claude/skills/garmer/(项目级)。重启 AI 客户端后,用 /garmer 主动调用,或让 AI 根据上下文自动发现并使用。
Garmer 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Garmer 可免费安装使用。请查阅仓库了解许可证信息。
Extract health and fitness data from Garmin Connect including activities, sleep, heart rate, stress, steps, and body composition. Use when the user asks about their Garmin data, fitness metrics, sleep analysis, or health insights.
Garmer 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Garmer
Identifies repetitive steps in your workflow and sets up Garmer to handle them automatically