技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
nutritional-intake-analyzer【数据与研究】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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
When the user requests a nutritional analysis of their meals against fitness guidelines, follow this exact sequence:
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)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).
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.
Calculate Expected Intake:
weight_kg / (height_m ** 2).health_guide.md) to determine the appropriate g/kg ratios for carbohydrates and protein based on:
weight_kg * carb_g_per_kg_rangeweight_kg * protein_g_per_kg_targetCalculate Actual Intake:
Perform Assessment: Compare actual vs. expected values using the assessment logic defined in format.md:
Below expectations: Actual < 95% of the range's lower bound.Excessive intake: Actual > 105% of the range's upper bound.Meets expectations: Otherwise.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.
Verify and Conclude: Read back the generated file to confirm correctness, then provide a final summary to the user.
analysis.md must match the structure in format.md character-for-character, including the heading # Today's Meal Nutritional Analysis.