📦 wger OpenClaw Fitness Skill — wger 健身管理

v1.0.0

通过 wger API 与 OpenClaw 自动化集成,管理健身计划、记录训练、追踪营养、更新目标并生成健身报告。

0· 17·0 当前·0 累计
0xjaspreet 头像by @0xjaspreet (jaspreet)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/15
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
该技能的代码和指令与 wger 集成大致匹配,但存在一些不一致和缺失声明(所需的环境变量、Python 依赖和引用的文件),导致其实际影响不明确,安装前应谨慎对待。
评估建议
该技能似乎是一个 wger 的 API 客户端,但在安装或提供任何凭据之前,你应当解决以下不一致之处: - 在确认安全前不要提供 WGER_TOKEN:Python 脚本和 SKILL.md 都需要 WGER_TOKEN,但注册表元数据未声明它。这种不匹配可能是疏忽,但请确认技能所有者确实有意要求该令牌。 - 验证缺失/提到的文件:SKILL.md 引用了 generate_report.py、set_goal.py、references/nutrition.md 和一个 HTML 模板资产,但这些文件不在包中。请向发布者索取完整源代码或更新的清单;缺失的文件可能意味着功能不完整/损坏或功能被省略。 - 确认依赖/环境:捆绑的脚本使用了 'requests' Python 库,但技能未声明任何依赖。在运行前确保你的运行时环境有所需的 Python 包,或在隔离环境中运行脚本。 - 审查将要执行的内容:SKILL.md 指示运行 curl 和 Python 脚本。检查你在本地执行的每个脚本(create_log.py、view_logs.py)以及作者提供的任何其他脚本,确保它们只调用 ...
详细分析 ▾
用途与能力
名称/描述与包含的脚本和 curl 示例(wger API 用法)相匹配。然而,注册表元数据未声明 SKILL.md 和两个脚本所需的 WGER_TOKEN 环境变量,且 SKILL.md 中的一些工作流引用了文件清单中不存在的脚本/资产(generate_report.py、set_goal.py、assets/progress_template.html、references/nutrition.md)——这种不一致削弱了对声明用途的信任。
指令范围
SKILL.md 指示代理运行 curl 命令并运行/读取捆绑的 Python 脚本(create_log.py、view_logs.py)。这些命令对于 wger 客户端是合适的,但指令还引用了缺失的文件和未提供的额外脚本/子代理。SKILL.md 告诉代理使用 'exec curl'(shell 执行)并解析/POST 数据;这对于 API 客户端是预期的,但赋予了代理运行 shell 命令和使用 WGER_TOKEN 的权限。没有指令请求无关的系统文件,但 exec 的存在意味着操作员应验证省略的引用脚本中没有隐藏命令。
安装机制
纯指令技能,无安装规范——安装期间不下载或写入任何内容。这是风险较低的安装模式。
凭证需求
两个脚本在运行时都需要 WGER_TOKEN 环境变量,但注册表未列出所需的环境变量或主要凭据。该技能还使用 Python 的 'requests' 库但未声明依赖。请求用户的 wger API 令牌与声明的用途是相称的,但缺失的声明和未声明的依赖是连贯性/维护问题,如果代理记录 shell 输出,则存在运行时失败或机密处理错误的风险。
持久化与权限
always 为 false,该技能不请求持久的系统级权限。它建议使用 cron/子代理集成进行自动化(对于此类技能来说是正常的)。
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/4/15

GitHub 仓库集成:用于 OpenClaw 的 wger API 技能。

无害

安装命令

点击复制
官方npx clawhub@latest install wger-openclaw
镜像加速npx clawhub@latest install wger-openclaw --registry https://cn.longxiaskill.com

技能文档

wger is an open-source fitness tracker with REST API for routines, logs, nutrition, and progress. This skill handles API interactions for seamless integration with OpenClaw (exec/curl for calls, subagents for analysis).

Setup (One-Time)

  • API Base: https://wger.de/api/v2/ (or self-hosted URL).
  • Auth: Token from wger dashboard (User > API). Set env WGER_TOKEN=your_key or pass in commands.
  • Test: exec curl -H "Authorization: Token $WGER_TOKEN" https://wger.de/api/v2/workout/ (lists routines).

Core Workflows

1. View Routines & Plans

Load current workouts/logs. Example:

  • List routines: exec curl -H "Authorization: Token $WGER_TOKEN" "https://wger.de/api/v2/workout/?format=json&limit=5"
  • Get log: exec curl -H "Authorization: Token $WGER_TOKEN" "https://wger.de/api/v2/workoutlog/?workout=[ID]&format=json"
  • Analyze: Subagent parses JSON (reps/weight trends), ties to goals (e.g., "Squat progress +10lbs—good for stamina").

Action: Use read tool on scripts/view_logs.py for formatted output.

2. Edit/Create Workouts

Add/update routines/logs. Example:

  • Create log: exec curl -X POST -H "Authorization: Token $WGER_TOKEN" -H "Content-Type: application/json" -d '{"date": "2026-04-15", "workout": [ID], "exercises": [{"reps": 10, "weight": 135, "exercise": [SQUAT_ID]}]}' https://wger.de/api/v2/workoutlog/
  • Update routine: exec curl -X PATCH -H "Authorization: Token $WGER_TOKEN" -H "Content-Type: application/json" -d '{"name": "Updated Cyber Grind"}' https://wger.de/api/v2/workout/[ID]/

Action: Run scripts/create_log.py or edit_log.py with params (date, exercise, reps).

3. Nutrition & Goals

Track meals, set targets. Example:

  • Log meal: exec curl -X POST -H "Authorization: Token $WGER_TOKEN" -d '{"date": "2026-04-15", "meal": [ID], "nutritional_values": {"calories": 500, "protein": 30}}' https://wger.de/api/v2/nutritionlog/
  • View goals: exec curl -H "Authorization: Token $WGER_TOKEN" https://wger.de/api/v2/weight/

Action: Use references/nutrition.md for macros; scripts/set_goal.py for updates.

4. Reports & Analysis

Generate progress, export. Example:

  • Progress report: exec python scripts/generate_report.py --period week --output pdf (uses API for data, matplotlib for charts).
  • Cron Integration: In subagents, pull data, analyze (e.g., "Adherence 80%—suggest HIIT for JITA").

Bundled Resources

  • scripts/view_logs.py: Fetch and format logs (JSON to readable).
  • scripts/create_log.py: POST new workout entry (params: date, routine_id, exercises).
  • references/api_endpoints.md: Full wger API ref (routines, logs, nutrition).
  • assets/progress_template.html: Basic chart template for reports.

When to Use

Trigger on: "Log my workout", "View wger routine", "Update fitness plan", "wger API call", "Fitness progress report".

For automation: Crons/subagents (e.g., daily pull to health.md).

Security: Token in env; self-host for privacy (Docker setup in references/selfhost.md).

Rate: 100/min—fine for pulls.

数据来源ClawHub ↗ · 中文优化:龙虾技能库