Body Management: Diet Tracking and Nutrition Goal Management in an Agent

前言

When breaking fat loss, muscle gain, or weight maintenance down into “calculate calories, log each meal, check how many are left for the day,” the common approach is to use a separate app or spreadsheet. If you already use conversational environments like Cursor or Claude Code to accomplish tasks, switching to another tool to track meals easily breaks context. Below introduces the SkillHub community Skill “Body Shape Manager” (@user_9bf18927/body-shape-manager): it uses a standard SKILL.md to define trigger words and workflows, and pairs with local Python scripts and JSON/Markdown data files to keep profiles, nutrition targets, and daily diet logs inside the skill directory, without needing any API key.

What is this

“Body Shape Manager” is a community Skill published by user_9bf18927 on SkillHub (source: community). Current version: 1.0.0; category: life-service; subcategory: Health Management. The SkillHub page marks requires_api_key=false, and the package states that data is stored in references/user_profile.json and memory/YYYY-MM-DD.md, not relying on external services to store user data.

Official entry points:

  • API index: https://api.skillhub.cn/user_9bf18927/body-shape-manager
  • Skill page: https://www.skillhub.cn/skills/user_9bf18927/body-shape-manager

Core features

The capabilities below come from the SKILL.md and bundled scripts in the 1.0.0 package, and can be cross-checked with the page.

  1. Nutrition target calculation: Based on height, weight, age, gender, activity level, and goal type (fat loss / muscle gain / maintenance), compute BMR, TDEE, daily calorie target, and quotas for protein, carbs, and fats; for fat-loss scenarios it can also output a staged weight plan.
  2. New user onboarding: Initialize a profile via a 6-question questionnaire; scripts/init_profile.py validates responses, then calls calculate_all() in scripts/nutrition_calculator.py to write the profile.
  3. Diet logging: Users describe meals and foods in text (supports separators like , / 和); scripts/diet_logger.py parses portions. If an item hits references/food_database.json (about 60 foods), it is logged directly; otherwise the Agent estimates by common sense and marks it as AI-estimated.
  4. Summary and advice: Read memory/YYYY-MM-DD.md by day, show progress for calories and the three macronutrients, and generate prompts following cut or bulk rules (e.g., calorie deficit too large, insufficient protein, etc.).

Trigger examples (excerpt): “start body shape management”, “body shape management”, “log my diet”, “I ate xxx today”, “did I eat enough today”, “I want to lose fat”, etc.; see the “Trigger Keywords” table in the packaged SKILL.md for the full list.

Installation and activation

The method provided on the SkillHub page is to have your Agent read the installation instructions and install the specified coordinate:

Please follow https://skillhub.cn/install/skillhub.md to install `@user_9bf18927/body-shape-manager`.

If the skillhub CLI is already installed on your machine, you can follow the SkillHub installation docs to install the skill into the current Agent’s skills directory (the docs require --dir; otherwise the default ./skills/ may not be recognized):

command -v skillhub && skillhub --version

skillhub install @user_9bf18927/body-shape-manager --dir <skills directory>

Commonly used directories (excerpt from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

If the CLI is not installed, run the installation script from the docs first (full install or --cli-only), then execute the install command above. After installation, restart or refresh according to your client’s instructions so the skill is loaded.

Typical usage

First-time use: In the conversation, send “start body shape management” or “body shape management”, and answer the questionnaire in order to provide height and weight, age, gender, activity level, goal type, and target weight; after completion, the Agent should display BMR, TDEE, daily calories, and nutrient targets.

Log a meal: After initialization, you can directly describe intake, e.g.:

I ate today: rice 200g, 2 eggs (60g each), broccoli 150g, greens 200g

The skill workflow will parse the foods, look them up in the database or estimate via AI, and output a table for the meal and the day’s cumulative proportions.

Check today’s progress: Use phrases like “did I eat enough today” or “how many calories can I still eat”, which reads the day’s log and generates a summary and advice.

On the Agent side, you can call modules as described in the package, e.g.:

from scripts.diet_logger import add_food_entry, load_today_log, format_log_summary, generate_advice

result = add_food_entry("lunch", "rice", 200)

(The actual import paths depend on the directory structure after the skill is installed.)

Use cases and notes

Good fit: Individual users who want to complete “set goals → log meals → see whether today’s targets are met” within the same Agent conversation; scenarios that value data staying in local directories and do not require an extra API key.

Notes:

  • The SkillHub listing’s summary fields are empty (summary / overviewMd not filled); refer to the packaged SKILL.md for capability details.
  • Foods not included in food_database.json rely on Agent estimates; the nutrition values are for reference only and are not a substitute for professional medical or nutritionist advice.
  • Page stats (as of crawl time): 1,035 downloads, 1 install; the SkillHub rating field is 100000. The security scan on the skill page shows “Safe, no risk” (Keen / 三不).
  • When installing via the CLI, use the coordinate with @: @user_9bf18927/body-shape-manager; using only user_9bf18927/body-shape-manager may cause the remote download to fail.

Conclusion

“Body Shape Manager” packages body-shape-related calculations, logging, and advice into a reusable Agent Skill workflow, and persists progress using local JSON and daily Markdown files. If you want to obtain the 1.0.0 package from SkillHub or copy the installation prompt, open the official skill page: https://www.skillhub.cn/skills/user_9bf18927/body-shape-manager.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye