Nutrient Composition: Calculating Macronutrient Ratios and Plate Templates by Goals in the Agent

Introduction

In everyday diet planning, a common practice is to ask a general conversational model to “just give me a fat-loss meal plan.” The output often lacks caloric justification, macronutrient ratios, and actionable portion sizes. Manually looking up the TDEE formula and hand-calculating grams of carbs, protein, and fat can also lead to repeated errors in unit conversions and adjustments for training days.

Below we introduce a community Skill on SkillHub called “Nutrient Pairing” (@user_70c2f807/nutrient-pairing). It uses a standard SKILL.md to constrain the Agent: first clarifying goals and physical activity information, then estimating daily caloric needs and macronutrient distribution, and finally landing on three-meal-a-day examples, food source tables, and simple portion methods. The Skill is marked with requires_api_key=false, so it does not depend on any external API Key.

What Is This

“Nutrient Pairing” is a life-service type Agent Skill maintained by the publisher user_70c2f807, currently at version 1.0.0, with a source of community. Its SkillHub page coordinates are @user_70c2f807/nutrient-pairing.

Positioning (quoted from the Skill description): Recommends nutrient ratios and daily intake amounts based on user goals (muscle gain, fat loss, blood sugar control, maintaining health), provides food selection guidelines and plate composition methods, and helps establish a sustainable dietary structure. Trigger scenarios include users mentioning nutrient pairing, macronutrient ratios, muscle-gain/fat-loss/blood-sugar-control diets, or asking how to distribute protein, carbs, and fat.

Official entry points:

  • SkillHub display page: https://www.skillhub.cn/skills/user_70c2f807/nutrient-pairing
  • API coordinates page: https://api.skillhub.cn/user_70c2f807/nutrient-pairing

As of the time this information was retrieved, SkillHub shows a rating of 100000, 1080 downloads, and 0 installations (page statistics may change, please refer to the official website for the latest data).

Core Functions

All of the following capabilities come from the installed SKILL.md version 1.0.0. There are no independent scripts or CLI subcommands; the execution logic is completed by the Agent following the documented steps.

  1. Needs Assessment: Confirm the goal (muscle gain / fat loss / blood sugar control / maintenance), and collect weight, height, activity level, dietary preferences and restrictions, and exercise type and frequency.
  2. Plan Calculation: Estimate daily caloric needs (TDEE), set a surplus or deficit based on the goal, distribute the carb/protein/fat ratios, and convert them into specific food quantities.
  3. Implementation Guidance: Provide three-meal-a-day composition templates, quality food sources for each nutrient, adjustment suggestions for training days vs. rest days, and portion estimation methods such as the hand method.
  4. Extended Explanations: Pre- and post-workout nutrition timing, basic pairing principles for micronutrients; the FAQ covers whether fat loss requires a low-carb diet, protein upper limits, fat lower limits, whether protein powder is necessary, and how to observe the effects of the plan.
  5. Boundaries and Error Handling: Provides fixed prompt messages for scenarios such as kidney disease with high protein intake, excessively low caloric intake, eating disorder tendencies, complete rejection of certain nutrients, and blood sugar control for diabetes, and guides users toward medical treatment or clinical nutrition support.

It explicitly states not applicable for clinical nutrition therapy, eating disorder treatment, dietary management for specific diseases, as well as diabetes/kidney disease nutrition management, infant nutrition, oncology nutrition support, etc. (a comparison table is provided within the Skill).

Installation and Activation

1. Install the SkillHub CLI

If it is not yet installed on your machine, you can first check the version:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation (including CLI and default Skills) following the official SkillHub installation documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Source reference: https://skillhub.cn/install/skillhub.md

2. Install This Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/ and may not be recognized.

skillhub install nutrient-pairing --namespace user_70c2f807 --dir <your Agent skills directory>

The equivalent command given on the SkillHub search page is:

skillhub install nutrient-pairing --namespace user_70c2f807

(You still need to add the correct --dir yourself.)

Common client skills paths (quoted from the official installation documentation):

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

You can also ask the AI in a conversation to install @user_70c2f807/nutrient-pairing following https://skillhub.cn/install/skillhub.md (the prompt method provided on the SkillHub page).

After installation is complete, enable or refresh the Skills configuration in the corresponding client (specific operations vary by client, refer to their respective documentation). This Skill does not require an API Key configuration.

Typical Usage

The Skill does not bundle any Python scripts; typical usage is to ask questions in natural language within an Agent conversation where this Skill has been enabled. The quick-start examples in the documentation are as follows, and can be directly reproduced:

User: How should protein, carbs, and fat be distributed during a muscle-gain phase?
User: How many calories should I eat for fat loss, and what is the nutrient ratio?
User: How do I control carbs in my diet for prediabetes?
User: How much protein do I need per day?
User: What nutritional pairing should I eat after working out?

The Agent should respond according to the documented three-step process: Needs Assessment → Plan Calculation → Implementation Guidance. In terms of output, the Skill requires providing both ratios and actual gram amounts, examples of meals throughout the day, quality food source tables, and simple portion techniques such as the palm/fist/thumb method; it should also distinguish between training days and rest days, and explain when plan adjustments are needed.

To facilitate verification, users can proactively provide: goal type, weight and height, weekly training frequency and intensity, and restrictions such as vegetarianism or allergies, to reduce repeated follow-up questions.

Applicable Scenarios and Notes

Who Is It For

  • Users who need to quickly get TDEE estimates, macronutrient ratios, and followable plate templates in a conversation, rather than a one-time generic “recipe recommendation.”
  • Developers or individual users already using environments that support Skills, such as Cursor, Claude Code, or Codex, who want to constrain diet planning into a fixed workflow.

Limitations and Notes (emphasized in the original Skill text, should be explained to end users before use)

  • Not a clinical nutrition prescription: Diabetes, kidney disease, etc. require guidance from medical professionals or clinical nutritionists; when diseases are involved, the Skill will recommend endocrinology or nutrition departments.
  • Data is estimates: Exact caloric intake is influenced by factors such as basal metabolism, with large individual differences; fine-tuning is needed based on signals such as weight, waist circumference, and strength over 1–2 weeks.
  • Not a substitute for testing: Nutrient deficiencies need to be confirmed by blood tests.
  • Safety boundaries: Extreme low-calorie intake or complete fasting is not recommended; when eating disorder tendencies are identified, professional psychological help is suggested; conversational information is used to generate plans, and the Skill declares that it does not persistently collect user body data.

The same publisher also has other life-service type Skills such as “Medical Lab Report Interpretation”; the former focuses on macronutrient diet planning, while the latter focuses on laboratory indicator education and comparison. They have different purposes and should not be mixed as diagnostic or treatment basis.

Conclusion

“Nutrient Pairing” writes caloric estimation, macronutrient distribution, and meal templates for muscle gain, fat loss, blood sugar control, and health maintenance scenarios into SKILL.md, enabling the Agent to follow steps to ask questions, calculate, and output actionable pairing plans, while using the FAQ and error handling tables to clarify non-medical boundaries. Installation and coordinates are based on SkillHub:

https://www.skillhub.cn/skills/user_70c2f807/nutrient-pairing

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

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

Xiaoye