Skip to content
Back to skills

Nutritional Intake Analyzer

ASecurity

Analyzes dietary intake against fitness/nutritional guidelines for fitness planning, fat loss, or muscle gain goals. Reads body metrics, extracts meal ingredients, retrieves nutritional data, calculates expected intake based on guidelines, compares actual vs expected values, and generates formatted assessment reports.

  • 8 stars
  • 0 votes
  • 1 copy
  • 13 views
  • Added September 6, 2026
educationgodatabase

Works with

  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add zjunlp/Skills --skill nutritional-intake-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nutritional Intake Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nutritional Intake Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-nutritional-intake-analyzer/badge)](https://www.skillsdirectory.com/skills/zjunlp-nutritional-intake-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nutritional-intake-analyzer
description: Analyzes dietary intake against fitness/nutritional guidelines for fitness planning, fat loss, or muscle gain goals. Reads body metrics, extracts meal ingredients, retrieves nutritional data, calculates expected intake based on guidelines, compares actual vs expected values, and generates formatted assessment reports.
---
# Instructions

## Core Workflow
When the user requests a nutritional analysis of their meals against fitness guidelines, follow this exact sequence:

1.  **Read Input Files:** Use `filesystem-read_multiple_files` to read:
    *   `body.md` (contains height, weight, gender)
    *   `cuisine.md` or similar (contains meal list/recipe names)
    *   `health_guide.md` or similar (contains fitness dietary ratios)
    *   `format.md` (contains the exact output format specification)

2.  **Read Nutritional Database:** Use `excel-get_workbook_metadata` and `excel-read_data_from_excel` to load the nutritional composition spreadsheet (e.g., `Nutrition.xlsx`). Parse it into a lookup dictionary mapping ingredient names to their per-100g nutrient values (focus on carbohydrates and protein).

3.  **Get Recipe Details:** For each dish name listed in the meal file, use `howtocook-mcp_howtocook_getRecipeById` to fetch the detailed recipe, including ingredient lists and quantities.

4.  **Calculate Expected Intake:**
    *   Parse the user's body metrics (height, weight, gender, goal phase).
    *   Calculate BMI: `weight_kg / (height_m ** 2)`.
    *   Consult the fitness guidelines (`health_guide.md`) to determine the appropriate `g/kg` ratios for carbohydrates and protein based on:
        *   Goal (Muscle Gain / Fat Loss)
        *   Phase (Initial / Late)
        *   Gender
        *   Training vs. Rest Day (note: rest day carb intake is typically 0.5 g/kg lower)
        *   BMI adjustments (for large-bodied obese individuals, use reduced ratios).
    *   Calculate expected daily intake ranges/targets:
        *   Carbs (g): `weight_kg * carb_g_per_kg_range`
        *   Protein (g): `weight_kg * protein_g_per_kg_target`

5.  **Calculate Actual Intake:**
    *   For each recipe, map its ingredients and estimated consumed quantities to the nutritional database.
    *   **Handle estimation:** When ingredient quantities are given as ranges (e.g., "1.5-2g"), use the average. For cooking oils, estimate absorbed amounts (e.g., 30ml from 500ml used for frying). For coatings like starch, estimate the portion that adheres to the food.
    *   Sum the carbohydrates and protein from all meals to get the total daily actual intake.

6.  **Perform Assessment:** Compare actual vs. expected values using the assessment logic defined in `format.md`:
    *   **For a range (Carbohydrates):**
        *   `Below expectations`: Actual < 95% of the range's lower bound.
        *   `Excessive intake`: Actual > 105% of the range's upper bound.
        *   `Meets expectations`: Otherwise.
    *   **For a target with tolerance (Protein):** Apply the ±10g tolerance to create an effective range, then use the same 95%/105% rule.

7.  **Generate Output:** Create a new file (e.g., `analysis.md`). Write the analysis using the **exact format** specified in `format.md`, including the required heading, assessment labels, expected values, actual values, and the "|" separator.

8.  **Verify and Conclude:** Read back the generated file to confirm correctness, then provide a final summary to the user.

## Critical Notes
*   **Strict Format Adherence:** The output in `analysis.md` must match the structure in `format.md` character-for-character, including the heading `# Today's Meal Nutritional Analysis`.
*   **BMI-Based Adjustments:** Always check BMI and apply the special reduced intake ratios for "large-bodied obese individuals" (BMI > 28 or > 32) as specified in the guidelines.
*   **Ingredient Mapping:** Be prepared for ingredient name mismatches between the recipe and nutrition database. Use partial matching or manual lookup if necessary.
*   **Quantity Estimation:** Explicitly state your estimation logic when precise consumption amounts are not clear from the recipe (e.g., "assumed 30ml of oil was absorbed").

Files in this skill

  • SKILL.md4.1 KB
  • references/assessment_logic.md2.5 KB
  • references/ingredient_mapping_guide.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.