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

命令行掌控你的健身数据

Hevy · v1.0.1
效率 安全 A 级 作者 sajal2692 公开目录收录
1.3k 下载 0 安装 4.9k 收藏 13 浏览

简介

通过命令行与Hevy健身应用交互,支持训练记录查询、创建、计划管理及运动数据分析

原始描述

Interact with the Hevy fitness app via the hevy-cli command-line tool. Use when the user wants to view, create, or update workouts, routines, exercise templates, or routine folders in their Hevy account. Triggers on requests involving workout tracking, exercise history, routine management, or any Hevy-related data operations.

通过你的 Agent 添加

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

或者手动安装

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

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

中文使用说明 来自收录源

Hevy CLI 综合评估

核心用法

Hevy CLI 是一款面向命令行环境的健身数据管理工具,专为Hevy健身应用用户设计。用户可通过CLI完成训练记录查询、创建新训练、管理训练模板、追踪运动历史及组织训练文件夹等操作。所有功能均依赖Hevy官方API,需配置HEVY_API_KEY环境变量进行身份验证。

典型工作流包括:使用hevy workouts list分页查看训练历史;通过hevy exercises list获取运动模板ID后,调用hevy exercises history分析特定运动的进步曲线;使用hevy workouts create配合JSON格式数据记录新训练;以及通过routines和folders子命令管理训练计划结构。

显著优点

  1. 高效批量操作:相比移动端逐条录入,CLI支持JSON文件批量导入复杂训练数据,大幅提升重度用户的记录效率
  2. 数据可移植性:-j标志提供原始JSON输出,便于与其他数据分析工具(如Python、Excel)集成
  3. 自动化潜力:天然支持脚本化调用,可实现定时数据备份、进度报告生成等自动化场景
  4. 精准历史追踪:支持按日期范围过滤的运动历史查询,满足长期训练数据分析需求

潜在局限

  1. 学习曲线陡峭:需要熟悉命令行操作、JSON语法及Hevy的数据模型(模板ID、运动类型枚举等)
  2. 无离线缓存:完全依赖网络连接和Hevy API可用性
  3. 数据验证后置:JSON格式的训练数据若格式错误,可能在提交后才暴露问题
  4. 功能边界:仅覆盖Hevy核心数据操作,不包含社交功能、图片上传等移动端特性

适合人群

  • 技术背景的健身爱好者,习惯命令行工作流
  • 需要批量导入历史训练数据的迁移用户
  • 希望将训练数据与其他健康指标整合分析的数据驱动型用户
  • 开发者构建健身相关自动化工具或集成方案

常规风险

  • API密钥泄露:HEVY_API_KEY若暴露在共享环境或版本控制中,可能导致账户数据被未授权访问
  • 数据覆盖风险:update类操作无二次确认机制,脚本错误可能导致训练记录被意外修改
  • JSON注入风险:--exercises-json参数若拼接不可信输入,可能引发API层面的数据污染
  • 速率限制:高频自动化脚本可能触发Hevy API的限流策略

技能正文


name: hevy-cli description: Interact with the Hevy fitness app via the hevy-cli command-line tool. Use when the user wants to view, create, or update workouts, routines, exercise templates, or routine folders in their Hevy account. Triggers on requests involving workout tracking, exercise history, routine management, or any Hevy-related data operations.

Hevy CLI

Use the hevy CLI to interact with Hevy fitness app data. Requires HEVY_API_KEY env var to be set.

Quick Start

# Verify access
hevy workouts count

# List recent workouts
hevy workouts list --page-size 10

# Raw JSON output for any command
hevy -j workouts list

Common Tasks

View workout history

hevy workouts list --page 1 --page-size 10
hevy workouts get <workout-id>

Check exercise progress

# Find the exercise template ID first
hevy exercises list --page-size 100

# Then get history for that exercise
hevy exercises history <template-id>
hevy exercises history <template-id> --start-date 2025-01-01 --end-date 2025-02-01

Create a workout

hevy workouts create \
  --title "Push Day" \
  --start-time 2025-01-15T08:00:00Z \
  --end-time 2025-01-15T09:00:00Z \
  --exercises-json '[{"exercise_template_id":"79D0BB3A","sets":[{"type":"normal","weight_kg":60,"reps":8}]}]'

For complex exercises, use a file: --exercises-json @exercises.json

Manage routines

hevy routines list
hevy routines create --title "Upper Body" --exercises-json @routine.json
hevy routines update <routine-id> --title "Updated Name"

Organize with folders

hevy folders list
hevy folders create --name "Hypertrophy Block"

Key Patterns

  • All list commands accept --page and --page-size for pagination.
  • Use -j flag before the subcommand for JSON output: hevy -j workouts list.
  • Exercise data for create/update uses --exercises-json accepting inline JSON or @filepath.
  • Set types: normal, warmup, failure, dropset.
  • IDs are returned in list/get responses -- use JSON mode (-j) to get exact IDs for subsequent commands.

Full Command Reference

See references/commands.md for complete command syntax, all flag options, enum values for exercise types/equipment/muscle groups, and the exercises JSON schema.

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

标签

fitnesscliapidata-managementworkout-trackinghevyhealth-dataautomation

同类 Skill