[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GEMMCA8MF6CXKSRBA73WG5":3,"skill-same:01M6GEMMCA8MF6CXKSRBA73WG5":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":64,"commitSha":65,"skillDirectory":66,"forksCount":67,"repositoryHtmlUrl":68,"repositoryHomepageUrl":6,"ownerHtmlUrl":69,"ownerBlogUrl":6,"ownerDescription":70,"updatedAt":71,"install":72,"resources":84},"01M6GEMMCA8MF6CXKSRBA73WG5","fitness-nutrition",null,"Workout planning, macros, and body metrics via wger\u002FUSDA.","zapabob\u002FSkills","zapabob","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F130830376?v=4","01M6DBMYZAGRTFQDSQYW3W764P","峯岸 亮","01M6DBMZ3GKDSJ01NZ9XTZD7JD",2,"MIT","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002Fca\u002Fcadfe2928cef65fb6f41836c96741eeee571c433f1bce822569f9f4abaf15532\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"fitness nutrition","nutrition","workout","true","food","with","diet","free","get","macros","python","use","curl","health","exercise","api","demo","planning","windows","linux","2026-11-10 10:12:30",false,"---\nname: fitness-nutrition\ndescription: \"Workout planning, macros, and body metrics via wger\u002FUSDA.\"\nplatforms: [linux, macos, windows]\nversion: 1.0.0\nauthor: Hailey Marshall (haileymarshall), Hermes Agent\nauthors:\n  - haileymarshall\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [health, fitness, nutrition, gym, workout, diet, exercise]\n    category: health\n    prerequisites:\n      commands: [curl, python]\nrequired_environment_variables:\n  - name: USDA_API_KEY\n    prompt: \"USDA FoodData Central API key (free)\"\n    help: \"Get one free at https:\u002F\u002Ffdc.nal.usda.gov\u002Fapi-key-signup\u002F — or skip to use DEMO_KEY with lower rate limits\"\n    required_for: \"higher rate limits on food\u002Fnutrition lookups (DEMO_KEY works without signup)\"\n    optional: true\n---\n\n# Fitness & Nutrition\n\nExpert fitness coach and sports nutritionist skill. Two data sources\nplus offline calculators — everything a gym-goer needs in one place.\n\n**Data sources (all free, no pip dependencies):**\n\n- **wger** (https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002F) — open exercise database, 690+ exercises with muscles, equipment, images. Public endpoints need zero authentication.\n- **USDA FoodData Central** (https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002F) — US government nutrition database, 380,000+ foods. `DEMO_KEY` works instantly; free signup for higher limits.\n\n**Offline calculators (pure stdlib Python):**\n\n- BMI, TDEE (Mifflin-St Jeor), one-rep max (Epley\u002FBrzycki\u002FLombardi), macro splits, body fat % (US Navy method)\n\n---\n\n## When to Use\n\nTrigger this skill when the user asks about:\n- Exercises, workouts, gym routines, muscle groups, workout splits\n- Food macros, calories, protein content, meal planning, calorie counting\n- Body composition: BMI, body fat, TDEE, caloric surplus\u002Fdeficit\n- One-rep max estimates, training percentages, progressive overload\n- Macro ratios for cutting, bulking, or maintenance\n\n---\n\n## Procedure\n\n### Exercise Lookup (wger API)\n\nAll wger public endpoints return JSON and require no auth. Always add\n`format=json` and `language=2` (English) to exercise queries.\n\n**Step 1 — Identify what the user wants:**\n\n- By muscle → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?muscles={id}&language=2&status=2&format=json`\n- By category → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?category={id}&language=2&status=2&format=json`\n- By equipment → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?equipment={id}&language=2&status=2&format=json`\n- By name → use `\u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term={query}&language=english&format=json`\n- Full details → use `\u002Fapi\u002Fv2\u002Fexerciseinfo\u002F{exercise_id}\u002F?format=json`\n\n**Step 2 — Reference IDs (so you don't need extra API calls):**\n\nExercise categories:\n\n| ID | Category    |\n|----|-------------|\n| 8  | Arms        |\n| 9  | Legs        |\n| 10 | Abs         |\n| 11 | Chest       |\n| 12 | Back        |\n| 13 | Shoulders   |\n| 14 | Calves      |\n| 15 | Cardio      |\n\nMuscles:\n\n| ID | Muscle                    | ID | Muscle                  |\n|----|---------------------------|----|-------------------------|\n| 1  | Biceps brachii            | 2  | Anterior deltoid        |\n| 3  | Serratus anterior         | 4  | Pectoralis major        |\n| 5  | Obliquus externus         | 6  | Gastrocnemius           |\n| 7  | Rectus abdominis          | 8  | Gluteus maximus         |\n| 9  | Trapezius                 | 10 | Quadriceps femoris      |\n| 11 | Biceps femoris            | 12 | Latissimus dorsi        |\n| 13 | Brachialis                | 14 | Triceps brachii         |\n| 15 | Soleus                    |    |                         |\n\nEquipment:\n\n| ID | Equipment      |\n|----|----------------|\n| 1  | Barbell        |\n| 3  | Dumbbell       |\n| 4  | Gym mat        |\n| 5  | Swiss Ball     |\n| 6  | Pull-up bar    |\n| 7  | none (bodyweight) |\n| 8  | Bench          |\n| 9  | Incline bench  |\n| 10 | Kettlebell     |\n\n**Step 3 — Fetch and present results:**\n\n```bash\n# Search exercises by name\nQUERY=\"$1\"\nENCODED=$(python -c \"import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))\" \"$QUERY\")\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term=${ENCODED}&language=english&format=json\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nfor s in data.get('suggestions',[])[:10]:\n    d=s.get('data',{})\n    print(f\\\"  ID {d.get('id','?'):>4} | {d.get('name','N\u002FA'):\u003C35} | Category: {d.get('category','N\u002FA')}\\\")\n\"\n```\n\n```bash\n# Get full details for a specific exercise\nEXERCISE_ID=\"$1\"\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexerciseinfo\u002F${EXERCISE_ID}\u002F?format=json\" \\\n  | python -c \"\nimport json,sys,html,re\ndata=json.load(sys.stdin)\ntrans=[t for t in data.get('translations',[]) if t.get('language')==2]\nt=trans[0] if trans else data.get('translations',[{}])[0]\ndesc=re.sub('\u003C[^>]+>','',html.unescape(t.get('description','N\u002FA')))\nprint(f\\\"Exercise  : {t.get('name','N\u002FA')}\\\")\nprint(f\\\"Category  : {data.get('category',{}).get('name','N\u002FA')}\\\")\nprint(f\\\"Primary   : {', '.join(m.get('name_en','') for m in data.get('muscles',[])) or 'N\u002FA'}\\\")\nprint(f\\\"Secondary : {', '.join(m.get('name_en','') for m in data.get('muscles_secondary',[])) or 'none'}\\\")\nprint(f\\\"Equipment : {', '.join(e.get('name','') for e in data.get('equipment',[])) or 'bodyweight'}\\\")\nprint(f\\\"How to    : {desc[:500]}\\\")\nimgs=data.get('images',[])\nif imgs: print(f\\\"Image     : {imgs[0].get('image','')}\\\")\n\"\n```\n\n```bash\n# List exercises filtering by muscle, category, or equipment\n# Combine filters as needed: ?muscles=4&equipment=1&language=2&status=2\nFILTER=\"$1\"  # e.g. \"muscles=4\" or \"category=11\" or \"equipment=3\"\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexercise\u002F?${FILTER}&language=2&status=2&limit=20&format=json\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nprint(f'Found {data.get(\\\"count\\\",0)} exercises.')\nfor ex in data.get('results',[]):\n    print(f\\\"  ID {ex['id']:>4} | muscles: {ex.get('muscles',[])} | equipment: {ex.get('equipment',[])}\\\")\n\"\n```\n\n### Nutrition Lookup (USDA FoodData Central)\n\nUses `USDA_API_KEY` env var if set, otherwise falls back to `DEMO_KEY`.\nDEMO_KEY = 30 requests\u002Fhour. Free signup key = 1,000 requests\u002Fhour.\n\n```bash\n# Search foods by name\nFOOD=\"$1\"\nAPI_KEY=\"[REDACTED]\"\nENCODED=$(python -c \"import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))\" \"$FOOD\")\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffoods\u002Fsearch?api_key=[REDACTED]\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nfoods=data.get('foods',[])\nif not foods: print('No foods found.'); sys.exit()\nfor f in foods:\n    n={x['nutrientName']:x.get('value','?') for x in f.get('foodNutrients',[])}\n    cal=n.get('Energy','?'); prot=n.get('Protein','?')\n    fat=n.get('Total lipid (fat)','?'); carb=n.get('Carbohydrate, by difference','?')\n    print(f\\\"{f.get('description','N\u002FA')}\\\")\n    print(f\\\"  Per 100g: {cal} kcal | {prot}g protein | {fat}g fat | {carb}g carbs\\\")\n    print(f\\\"  FDC ID: {f.get('fdcId','N\u002FA')}\\\")\n    print()\n\"\n```\n\n```bash\n# Detailed nutrient profile by FDC ID\nFDC_ID=\"$1\"\nAPI_KEY=\"[REDACTED]\"\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffood\u002F${FDC_ID}?api_key=${API_KEY}\" \\\n  | python -c \"\nimport json,sys\nd=json.load(sys.stdin)\nprint(f\\\"Food: {d.get('description','N\u002FA')}\\\")\nprint(f\\\"{'Nutrient':\u003C40} {'Amount':>8} {'Unit'}\\\")\nprint('-'*56)\nfor x in sorted(d.get('foodNutrients',[]),key=lambda x:x.get('nutrient',{}).get('rank',9999)):\n    nut=x.get('nutrient',{}); amt=x.get('amount',0)\n    if amt and float(amt)>0:\n        print(f\\\"  {nut.get('name',''):\u003C38} {amt:>8} {nut.get('unitName','')}\\\")\n\"\n```\n\n### Offline Calculators\n\nUse the helper scripts in `scripts\u002F` for batch operations,\nor run inline for single calculations:\n\n- `python scripts\u002Fbody_calc.py bmi \u003Cweight_kg> \u003Cheight_cm>`\n- `python scripts\u002Fbody_calc.py tdee \u003Cweight_kg> \u003Cheight_cm> \u003Cage> \u003CM|F> \u003Cactivity 1-5>`\n- `python scripts\u002Fbody_calc.py 1rm \u003Cweight> \u003Creps>`\n- `python scripts\u002Fbody_calc.py macros \u003Ctdee_kcal> \u003Ccut|maintain|bulk>`\n- `python scripts\u002Fbody_calc.py bodyfat \u003CM|F> \u003Cneck_cm> \u003Cwaist_cm> [hip_cm] \u003Cheight_cm>`\n\nSee `references\u002FFORMULAS.md` for the science behind each formula.\n\n---\n\n## Pitfalls\n\n- wger exercise endpoint returns **all languages by default** — always add `language=2` for English\n- wger includes **unverified user submissions** — add `status=2` to only get approved exercises\n- USDA `DEMO_KEY` has **30 req\u002Fhour** — add `sleep 2` between batch requests or get a free key\n- USDA data is **per 100g** — remind users to scale to their actual portion size\n- BMI does not distinguish muscle from fat — high BMI in muscular people is not necessarily unhealthy\n- Body fat formulas are **estimates** (±3-5%) — recommend DEXA scans for precision\n- 1RM formulas lose accuracy above 10 reps — use sets of 3-5 for best estimates\n- wger's `exercise\u002Fsearch` endpoint uses `term` not `query` as the parameter name\n\n---\n\n## Verification\n\nAfter running exercise search: confirm results include exercise names, muscle groups, and equipment.\nAfter nutrition lookup: confirm per-100g macros are returned with kcal, protein, fat, carbs.\nAfter calculators: sanity-check outputs (e.g. TDEE should be 1500-3500 for most adults).\n\n---\n\n## Quick Reference\n\n| Task | Source | Endpoint |\n|------|--------|----------|\n| Search exercises by name | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term=&language=english` |\n| Exercise details | wger | `GET \u002Fapi\u002Fv2\u002Fexerciseinfo\u002F{id}\u002F` |\n| Filter by muscle | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002F?muscles={id}&language=2&status=2` |\n| Filter by equipment | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002F?equipment={id}&language=2&status=2` |\n| List categories | wger | `GET \u002Fapi\u002Fv2\u002Fexercisecategory\u002F` |\n| List muscles | wger | `GET \u002Fapi\u002Fv2\u002Fmuscle\u002F` |\n| Search foods | USDA | `GET \u002Ffdc\u002Fv1\u002Ffoods\u002Fsearch?query=&dataType=Foundation,SR Legacy` |\n| Food details | USDA | `GET \u002Ffdc\u002Fv1\u002Ffood\u002F{fdcId}` |\n| BMI \u002F TDEE \u002F 1RM \u002F macros | offline | `python scripts\u002Fbody_calc.py` |","# Fitness & Nutrition\n\nExpert fitness coach and sports nutritionist skill. Two data sources\nplus offline calculators — everything a gym-goer needs in one place.\n\n**Data sources (all free, no pip dependencies):**\n\n- **wger** (https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002F) — open exercise database, 690+ exercises with muscles, equipment, images. Public endpoints need zero authentication.\n- **USDA FoodData Central** (https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002F) — US government nutrition database, 380,000+ foods. `DEMO_KEY` works instantly; free signup for higher limits.\n\n**Offline calculators (pure stdlib Python):**\n\n- BMI, TDEE (Mifflin-St Jeor), one-rep max (Epley\u002FBrzycki\u002FLombardi), macro splits, body fat % (US Navy method)\n\n---\n\n## When to Use\n\nTrigger this skill when the user asks about:\n- Exercises, workouts, gym routines, muscle groups, workout splits\n- Food macros, calories, protein content, meal planning, calorie counting\n- Body composition: BMI, body fat, TDEE, caloric surplus\u002Fdeficit\n- One-rep max estimates, training percentages, progressive overload\n- Macro ratios for cutting, bulking, or maintenance\n\n---\n\n## Procedure\n\n### Exercise Lookup (wger API)\n\nAll wger public endpoints return JSON and require no auth. Always add\n`format=json` and `language=2` (English) to exercise queries.\n\n**Step 1 — Identify what the user wants:**\n\n- By muscle → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?muscles={id}&language=2&status=2&format=json`\n- By category → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?category={id}&language=2&status=2&format=json`\n- By equipment → use `\u002Fapi\u002Fv2\u002Fexercise\u002F?equipment={id}&language=2&status=2&format=json`\n- By name → use `\u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term={query}&language=english&format=json`\n- Full details → use `\u002Fapi\u002Fv2\u002Fexerciseinfo\u002F{exercise_id}\u002F?format=json`\n\n**Step 2 — Reference IDs (so you don't need extra API calls):**\n\nExercise categories:\n\n| ID | Category    |\n|----|-------------|\n| 8  | Arms        |\n| 9  | Legs        |\n| 10 | Abs         |\n| 11 | Chest       |\n| 12 | Back        |\n| 13 | Shoulders   |\n| 14 | Calves      |\n| 15 | Cardio      |\n\nMuscles:\n\n| ID | Muscle                    | ID | Muscle                  |\n|----|---------------------------|----|-------------------------|\n| 1  | Biceps brachii            | 2  | Anterior deltoid        |\n| 3  | Serratus anterior         | 4  | Pectoralis major        |\n| 5  | Obliquus externus         | 6  | Gastrocnemius           |\n| 7  | Rectus abdominis          | 8  | Gluteus maximus         |\n| 9  | Trapezius                 | 10 | Quadriceps femoris      |\n| 11 | Biceps femoris            | 12 | Latissimus dorsi        |\n| 13 | Brachialis                | 14 | Triceps brachii         |\n| 15 | Soleus                    |    |                         |\n\nEquipment:\n\n| ID | Equipment      |\n|----|----------------|\n| 1  | Barbell        |\n| 3  | Dumbbell       |\n| 4  | Gym mat        |\n| 5  | Swiss Ball     |\n| 6  | Pull-up bar    |\n| 7  | none (bodyweight) |\n| 8  | Bench          |\n| 9  | Incline bench  |\n| 10 | Kettlebell     |\n\n**Step 3 — Fetch and present results:**\n\n```bash\n# Search exercises by name\nQUERY=\"$1\"\nENCODED=$(python -c \"import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))\" \"$QUERY\")\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term=${ENCODED}&language=english&format=json\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nfor s in data.get('suggestions',[])[:10]:\n    d=s.get('data',{})\n    print(f\\\"  ID {d.get('id','?'):>4} | {d.get('name','N\u002FA'):\u003C35} | Category: {d.get('category','N\u002FA')}\\\")\n\"\n```\n\n```bash\n# Get full details for a specific exercise\nEXERCISE_ID=\"$1\"\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexerciseinfo\u002F${EXERCISE_ID}\u002F?format=json\" \\\n  | python -c \"\nimport json,sys,html,re\ndata=json.load(sys.stdin)\ntrans=[t for t in data.get('translations',[]) if t.get('language')==2]\nt=trans[0] if trans else data.get('translations',[{}])[0]\ndesc=re.sub('\u003C[^>]+>','',html.unescape(t.get('description','N\u002FA')))\nprint(f\\\"Exercise  : {t.get('name','N\u002FA')}\\\")\nprint(f\\\"Category  : {data.get('category',{}).get('name','N\u002FA')}\\\")\nprint(f\\\"Primary   : {', '.join(m.get('name_en','') for m in data.get('muscles',[])) or 'N\u002FA'}\\\")\nprint(f\\\"Secondary : {', '.join(m.get('name_en','') for m in data.get('muscles_secondary',[])) or 'none'}\\\")\nprint(f\\\"Equipment : {', '.join(e.get('name','') for e in data.get('equipment',[])) or 'bodyweight'}\\\")\nprint(f\\\"How to    : {desc[:500]}\\\")\nimgs=data.get('images',[])\nif imgs: print(f\\\"Image     : {imgs[0].get('image','')}\\\")\n\"\n```\n\n```bash\n# List exercises filtering by muscle, category, or equipment\n# Combine filters as needed: ?muscles=4&equipment=1&language=2&status=2\nFILTER=\"$1\"  # e.g. \"muscles=4\" or \"category=11\" or \"equipment=3\"\ncurl -s \"https:\u002F\u002Fwger.de\u002Fapi\u002Fv2\u002Fexercise\u002F?${FILTER}&language=2&status=2&limit=20&format=json\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nprint(f'Found {data.get(\\\"count\\\",0)} exercises.')\nfor ex in data.get('results',[]):\n    print(f\\\"  ID {ex['id']:>4} | muscles: {ex.get('muscles',[])} | equipment: {ex.get('equipment',[])}\\\")\n\"\n```\n\n### Nutrition Lookup (USDA FoodData Central)\n\nUses `USDA_API_KEY` env var if set, otherwise falls back to `DEMO_KEY`.\nDEMO_KEY = 30 requests\u002Fhour. Free signup key = 1,000 requests\u002Fhour.\n\n```bash\n# Search foods by name\nFOOD=\"$1\"\nAPI_KEY=\"[REDACTED]\"\nENCODED=$(python -c \"import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))\" \"$FOOD\")\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffoods\u002Fsearch?api_key=[REDACTED]\" \\\n  | python -c \"\nimport json,sys\ndata=json.load(sys.stdin)\nfoods=data.get('foods',[])\nif not foods: print('No foods found.'); sys.exit()\nfor f in foods:\n    n={x['nutrientName']:x.get('value','?') for x in f.get('foodNutrients',[])}\n    cal=n.get('Energy','?'); prot=n.get('Protein','?')\n    fat=n.get('Total lipid (fat)','?'); carb=n.get('Carbohydrate, by difference','?')\n    print(f\\\"{f.get('description','N\u002FA')}\\\")\n    print(f\\\"  Per 100g: {cal} kcal | {prot}g protein | {fat}g fat | {carb}g carbs\\\")\n    print(f\\\"  FDC ID: {f.get('fdcId','N\u002FA')}\\\")\n    print()\n\"\n```\n\n```bash\n# Detailed nutrient profile by FDC ID\nFDC_ID=\"$1\"\nAPI_KEY=\"[REDACTED]\"\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffood\u002F${FDC_ID}?api_key=${API_KEY}\" \\\n  | python -c \"\nimport json,sys\nd=json.load(sys.stdin)\nprint(f\\\"Food: {d.get('description','N\u002FA')}\\\")\nprint(f\\\"{'Nutrient':\u003C40} {'Amount':>8} {'Unit'}\\\")\nprint('-'*56)\nfor x in sorted(d.get('foodNutrients',[]),key=lambda x:x.get('nutrient',{}).get('rank',9999)):\n    nut=x.get('nutrient',{}); amt=x.get('amount',0)\n    if amt and float(amt)>0:\n        print(f\\\"  {nut.get('name',''):\u003C38} {amt:>8} {nut.get('unitName','')}\\\")\n\"\n```\n\n### Offline Calculators\n\nUse the helper scripts in `scripts\u002F` for batch operations,\nor run inline for single calculations:\n\n- `python scripts\u002Fbody_calc.py bmi \u003Cweight_kg> \u003Cheight_cm>`\n- `python scripts\u002Fbody_calc.py tdee \u003Cweight_kg> \u003Cheight_cm> \u003Cage> \u003CM|F> \u003Cactivity 1-5>`\n- `python scripts\u002Fbody_calc.py 1rm \u003Cweight> \u003Creps>`\n- `python scripts\u002Fbody_calc.py macros \u003Ctdee_kcal> \u003Ccut|maintain|bulk>`\n- `python scripts\u002Fbody_calc.py bodyfat \u003CM|F> \u003Cneck_cm> \u003Cwaist_cm> [hip_cm] \u003Cheight_cm>`\n\nSee `references\u002FFORMULAS.md` for the science behind each formula.\n\n---\n\n## Pitfalls\n\n- wger exercise endpoint returns **all languages by default** — always add `language=2` for English\n- wger includes **unverified user submissions** — add `status=2` to only get approved exercises\n- USDA `DEMO_KEY` has **30 req\u002Fhour** — add `sleep 2` between batch requests or get a free key\n- USDA data is **per 100g** — remind users to scale to their actual portion size\n- BMI does not distinguish muscle from fat — high BMI in muscular people is not necessarily unhealthy\n- Body fat formulas are **estimates** (±3-5%) — recommend DEXA scans for precision\n- 1RM formulas lose accuracy above 10 reps — use sets of 3-5 for best estimates\n- wger's `exercise\u002Fsearch` endpoint uses `term` not `query` as the parameter name\n\n---\n\n## Verification\n\nAfter running exercise search: confirm results include exercise names, muscle groups, and equipment.\nAfter nutrition lookup: confirm per-100g macros are returned with kcal, protein, fat, carbs.\nAfter calculators: sanity-check outputs (e.g. TDEE should be 1500-3500 for most adults).\n\n---\n\n## Quick Reference\n\n| Task | Source | Endpoint |\n|------|--------|----------|\n| Search exercises by name | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002Fsearch\u002F?term=&language=english` |\n| Exercise details | wger | `GET \u002Fapi\u002Fv2\u002Fexerciseinfo\u002F{id}\u002F` |\n| Filter by muscle | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002F?muscles={id}&language=2&status=2` |\n| Filter by equipment | wger | `GET \u002Fapi\u002Fv2\u002Fexercise\u002F?equipment={id}&language=2&status=2` |\n| List categories | wger | `GET \u002Fapi\u002Fv2\u002Fexercisecategory\u002F` |\n| List muscles | wger | `GET \u002Fapi\u002Fv2\u002Fmuscle\u002F` |\n| Search foods | USDA | `GET \u002Ffdc\u002Fv1\u002Ffoods\u002Fsearch?query=&dataType=Foundation,SR Legacy` |\n| Food details | USDA | `GET \u002Ffdc\u002Fv1\u002Ffood\u002F{fdcId}` |\n| BMI \u002F TDEE \u002F 1RM \u002F macros | offline | `python scripts\u002Fbody_calc.py` |",{"name":5,"author":44,"authors":45,"license":15,"version":47,"metadata":48,"platforms":55,"description":7,"required_environment_variables":57},"Hailey Marshall (haileymarshall), Hermes Agent",[46],"haileymarshall","1.0.0",{"hermes":49},{"tags":50,"category":32,"prerequisites":53},[32,51,20,52,21,25,33],"fitness","gym",{"commands":54},[31,29],[38,56,37],"macos",[58],{"help":59,"name":60,"prompt":61,"optional":62,"required_for":63},"Get one free at https:\u002F\u002Ffdc.nal.usda.gov\u002Fapi-key-signup\u002F — or skip to use DEMO_KEY with lower rate limits","USDA_API_KEY","USDA FoodData Central API key (free)",true,"higher rate limits on food\u002Fnutrition lookups (DEMO_KEY works without signup)","main","0d1434f89f4bc6b07e9d272accd8c1013768820f","archive\u002Fskill-md-reviewed\u002Fsha256\u002Fca\u002Fcadfe2928cef65fb6f41836c96741eeee571c433f1bce822569f9f4abaf15532",0,"https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills","https:\u002F\u002Fgithub.com\u002Fzapabob","The Open University of JAPAN　2019-now\r\n\r\nTokyo University of Science　2007-2010","2026-10-26 16:29:01",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":62},[74,77,80],{"tool":75,"command":76},"npx","npx skills add zapabob\u002FSkills --skill fitness-nutrition",{"tool":78,"command":79},"bunx","bunx skills add zapabob\u002FSkills --skill fitness-nutrition",{"tool":81,"command":82},"pnpm","pnpm dlx skills add zapabob\u002FSkills --skill fitness-nutrition","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Farchive\u002Fskill-md-reviewed\u002Fsha256\u002Fca\u002Fcadfe2928cef65fb6f41836c96741eeee571c433f1bce822569f9f4abaf15532\u002FSKILL.md",[],[86,120,154,180,207,223],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":105,"publishedAt":39},"01M6GJTE1GESGGF9K028Y7753E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fxurl\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[92,97,100],{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[88,106,56,107,108,38,37,109,110,111,112,34,113,114,115,116,64,117,118,119],"openclaw","cli","github","official","search","https","social-media","Media","hermes","hermes agent","twitter","social","via","post",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":137,"publishedAt":39},"01M6GJT8S1PXQ8WPXT1HSNBWH2","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwriting-plans\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[126,129,132,133,134],{"categoryNo":127,"categoryName":128,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":130,"categoryName":131,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},{"categoryNo":135,"categoryName":136,"taxonomyType":103,"taxonomyTypeDesc":104},"01JBSEEDCAT000000000000036","内容创作者",[138,139,140,141,56,142,38,143,37,144,145,146,147,36,148,149,150,151,152,153],"writing","writing plans","plans","design","review","workflow","documentation","tasks","development","code","code-review","subagent","write","superpowers","paths","test-driven-development",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":163,"publishedAt":39},"01M6GJST0H5X7WHBJ3BZK0DVKH","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwhisper\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[160],{"categoryNo":161,"categoryName":162,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000016","图像与多媒体",[156,56,38,164,165,166,167,168,169,170,171,172,30,173,174,175,176,177,178,179],"openai","speech","multimodal","Transformers","ASR","Audio","text","model","speech recognition","general","multilingual","translation","english","identification","processing","Audio Processing",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":189,"publishedAt":39},"01M6GJSMRQ8EETZTYMG72P70EA","weights-and-biases","W&B: log ML experiments, sweeps, model registry, dashboards.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fweights-and-biases\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[186],{"categoryNo":187,"categoryName":188,"taxonomyType":95,"taxonomyTypeDesc":96},"01JBSEEDCAT000000000000013","分析与可视化",[190,56,191,192,37,193,194,195,196,197,198,171,199,200,201,202,203,204,205,206],"weights and biases","tensorflow","experiments","pytorch","visualization","registry","real-time","tuning","dashboards","experiment","log","time","Experiment Tracking","Model Registry","Hyperparameter Tuning","WandB","Real-Time Visualization",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":214,"publishedAt":39},"01M6GJS19KDPRY112JTR326S06","watchers","Poll RSS, JSON APIs, and GitHub with watermark dedup.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fwatchers\u002Fvariants\u002Fhermes-agent-optional\u002FSKILL.md",[213],{"categoryNo":98,"categoryName":99,"taxonomyType":95,"taxonomyTypeDesc":96},[209,56,215,108,38,216,217,218,219,220,221,114,115,222,24],"terminal","automation","http","monitoring","cron","json","rss","devops",{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":231,"publishedAt":39},"01M6GJRHJD2A6Q830SWF9W48BC","serving-llms-vllm","vLLM: high-throughput LLM serving, OpenAI API, quantization.","https:\u002F\u002Fgithub.com\u002Fzapabob\u002FSkills\u002Fblob\u002Fmain\u002Fregistry\u002Fskills\u002Fvllm\u002Fvariants\u002Fhermes-agent\u002FSKILL.md",[229,230],{"categoryNo":93,"categoryName":94,"taxonomyType":95,"taxonomyTypeDesc":96},{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},[232,233,234,38,235,164,236,237,238,167,239,34,240,241,242,243,244,245,246,247],"llms","vLLM","serving llms vllm","research","openai api","tensor","Inference Serving","Production","llm serving","High Throughput","PagedAttention","Continuous Batching","Quantization","Tensor Parallelism","high-throughput","throughput"]