← 返回
AI智能 中文

My Fitness Claw

Your personal nutrition sidekick. Log meals in plain natural language, track macros (P/C/F) automatically, and visualize your progress on a beautiful real-ti...
私人营养助手:自然语言记录饮食,自动追踪宏量营养素(P/C/F),实时仪表盘可视化进度。
serg010101
AI智能 clawhub v1.7.0 2 版本 99786 Key: 无需
★ 2
Stars
📥 1,359
下载
💾 63
安装
2
版本
#latest

概述

MyFitnessClaw

This skill manages your nutritional data and provides a visual dashboard for tracking macros and micronutrients using OpenClaw's native tools.

Core Files (Skill Assets)

  • assets/nutrition/daily_macros.json: The structured log of daily intake.
  • assets/nutrition/targets.json: Daily nutritional goals (calories, protein, carbs, fats, and 10 essential micronutrients).
  • assets/nutrition/insights.json: AI-generated tips based on current progress.
  • assets/nutrition/foods/common.md: A reference list of frequently eaten foods and their macros/micros.
  • assets/canvas/index.html: The visual dashboard for the OpenClaw Canvas.

Workflow: Logging Food

When the user mentions eating something:

  1. Estimate Macros & Micros: If the user doesn't provide them, estimate:
    • Macros: Calories, protein, carbs, fats.
    • Micros: Vitamin D3, Magnesium, Potassium, Zinc, Vitamin B6, Vitamin B12, Selenium, Vitamin C, Vitamin A, Vitamin E.

Check assets/nutrition/foods/common.md first.

  1. Update Daily Log (Canonical): Update assets/nutrition/daily_macros.json. Include the micros object for both individual meals and the daily total.
  2. Update Offline Mirror: Update assets/canvas/offline_data.js with the same data, ensuring micronutrients are included.
    • Overwrite the file with: window.__OFFLINE_DAILY_MACROS = [...]; window.__OFFLINE_TARGETS = {...}; window.__OFFLINE_INSIGHTS = {...};
    • This ensures the dashboard works when opened via file:// (offline/browser-first).
  3. Update Memory: Log the meal in the agent's current daily memory file (e.g., memory/YYYY-MM-DD.md).
  4. Show Dashboard: Use canvas(action=present, url='skills/my-fitness-claw/assets/canvas/index.html') to show the updated dashboard inside OpenClaw.
  5. Provide Browser Access: After every log, provide the following message:

> 📊 View in your browser:

> - Quick: Open skills/my-fitness-claw/assets/canvas/index.html in your browser (uses offline mirror).

> - Full: Run python -m http.server 8000 from the workspace root and visit http://localhost:8000/skills/my-fitness-claw/assets/canvas/index.html.

  1. Generate Insights: Analyze progress against goals in assets/nutrition/targets.json and update assets/nutrition/insights.json.

Persistence Rules:

  • assets/nutrition/*.json: Canonical storage.
  • assets/canvas/offline_data.js: Mirror for file:// viewing only.
  • Do not modify assets/canvas/index.html during routine logging.

Publishing Checklist (Public Safety)

Before publishing or sharing this skill:

  1. Sanitize Data: Clear nutrition/daily_macros.json by setting it to [].
  2. Sanitize Mirror: Clear canvas/offline_data.js to match the empty state: window.__OFFLINE_DAILY_MACROS = [];.
  3. Check Insights: Clear nutrition/insights.json or reset to template tips.
  4. Remove Personal Notes: Scrub nutrition/targets.json and memory/ of any sensitive info.
  5. Verify Assets: Ensure no private images or documents are in the assets/ folder.

版本历史

共 2 个版本

  • v1.7.0 当前
    2026-03-29 03:03 安全 安全
  • v1.6.0
    2026-03-07 01:42

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,684
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,966
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,354 📥 317,971