pp-garmin
БесплатноБез исполняемых скриптовНе проверенYour whole Garmin history in a local database, not one 28-day page at a time. Trigger phrases: `how did I sleep this month`, `sleep trend for the last 90…
от mvanhorn★ 2 170 звёзд на GitHubОб этом скилле
Garmin Connect — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the garmin-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install garmin --cli-only - Verify:
garmin-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:
go install github.com/mvanhorn/printing-press-library/library/health/garmin/cmd/garmin-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
Garmin Connect caps every daily-stats request at 28 calendar days and issues no personal API token, which is why its ecosystem is a handful of Python libraries rather than a tool an agent can call. history walks the whole account into a local SQLite archive, oldest day first, and insights sleep and insights training answer months-long sleep, training-load and heart-rate-zone questions from that archive with JSON on stdout. auth login keeps each household account in its own home and refuses to store a token that belongs to somebody else.
When to Use This CLI
Reach for this CLI for questions about the owner's own Garmin Connect history: sleep and training trends, VO2 max, resting heart rate, step and intensity-minute totals, heart-rate zones, and the activity feed. It earns its keep on questions that span weeks or years, because those are answered from the local archive instead of from Garmin's 28-day pages. Do not reach for it before the archive is filled: an unfilled archive answers every trend question with nulls and a hint naming history, which is an honest answer but not the one the user asked for.
Anti-triggers
Do not use this CLI for:
- Writing anything back to Garmin Connect. Every command here reads.
- Another household member's account from this home. Each account needs its own login in its own home.
- A live device readout. A metric appears here only after the watch or bike computer has synced to Garmin Connect.
- Strava, Apple Health, Whoop or Oura data, which live in their own services.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Questions answered from the archive
insights sleep— Duration, score, stage split and resting heart rate for a window of nights, with the equally long window before it beside them.Pick this over per-night endpoint calls whenever the question spans more than a few nights: one local read replaces one request per night, and nights the watch did not measure are counted as missing rather than as zero.
garmin-pp-cli insights sleep --days 90 --agent --select period,coverage.nights_with_stats,duration_minutes.avg,score.avginsights training— Archived activities grouped by type with their time and distance, time summed per heart-rate zone, weekly load buckets, and the VO2-max and readiness trends beside them.Pick this over the activity feed when the question is about volume, intensity or balance rather than one workout; it reports how many activities had zones archived so a strapless ride is not read as easy training.
garmin-pp-cli insights training --days 28 --agent --select totals,by_type.type,by_type.duration_minutes,hr_zones
Local state that compounds
history— Fills a local SQLite archive of every Garmin daily series from the oldest day forward, keeping one bookmark per series so an interrupted run resumes instead of restarting.Run this before any question that reaches past the last 28 days:
--since allor--since YYYY-MM-DDis the only depth control it offers,--statusreports what each series still owes,--strictmakes a scheduled run exit non-zero instead of warning past a series that did not answer, and every insights command reads the archive rather than the API.garmin-pp-cli history --since allsql— Ask the archive anything in SQL: one read-only SELECT across every serieshistoryhas filled.Reach for this when the question is neither the sleep nor the training recipe: one SELECT joins any two series on the id they share, and a single-statement gate over a mode=ro, query_only handle means no query can write, whatever it says.
garmin-pp-cli sql "SELECT substr(json_extract(data,'$.startTimeLocal'),1,7) AS month, count(*) AS activit
Установить pp-garmin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashВложенные файлы
FAQ
Что делает скилл pp-garmin?
Your whole Garmin history in a local database, not one 28-day page at a time. Trigger phrases: `how did I sleep this month`, `sleep trend for the last 90 days`, `training load and time in heart rate zones`, `vo2 max trend`, `fill the garmin archive`, `use garmin connect`, `run garmin`.
Как установить скилл pp-garmin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pp-garmin запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic