[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BQ3P1FV9DAQX4ZHT5P4CHR":3,"skill-same:01M7BQ3P1FV9DAQX4ZHT5P4CHR":88},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":53,"commitSha":54,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":6,"updatedAt":58,"install":59,"resources":71},"01M7BQ3P1FV9DAQX4ZHT5P4CHR","fitness-nutrition",null,"Gym workout planner and nutrition tracker. Search 690+ exercises by muscle, equipment, or category via wger. Look up macros and calories for 380,000+ foods via USDA FoodData Central. Compute BMI, TDEE, one-rep max, macro splits, and body fat — pure Python, no pip installs. Built for anyone chasing gains, cutting weight, or just trying to eat better.","hikmet4434\u002Fclaude-skills","hikmet4434","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301146035?v=4","01M7BNXPE7A92JBFSZV3GXVQA4","hikmet tanriverdi","01M7BNXPEXW1JAJ271VVPSK87C",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Ffitness-nutrition\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: fitness-nutrition\ndescription: >\n  Gym workout planner and nutrition tracker. Search 690+ exercises by muscle,\n  equipment, or category via wger. Look up macros and calories for 380,000+\n  foods via USDA FoodData Central. Compute BMI, TDEE, one-rep max, macro\n  splits, and body fat — pure Python, no pip installs. Built for anyone\n  chasing gains, cutting weight, or just trying to eat better.\nplatforms: [linux, macos, windows]\nversion: 1.0.0\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, python3]\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=$(python3 -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  | python3 -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  | python3 -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  | python3 -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=\"${USDA_API_KEY:-DEMO_KEY}\"\nENCODED=$(python3 -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=${API_KEY}&query=${ENCODED}&pageSize=5&dataType=Foundation,SR%20Legacy\" \\\n  | python3 -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=\"${USDA_API_KEY:-DEMO_KEY}\"\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffood\u002F${FDC_ID}?api_key=${API_KEY}\" \\\n  | python3 -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- `python3 scripts\u002Fbody_calc.py bmi \u003Cweight_kg> \u003Cheight_cm>`\n- `python3 scripts\u002Fbody_calc.py tdee \u003Cweight_kg> \u003Cheight_cm> \u003Cage> \u003CM|F> \u003Cactivity 1-5>`\n- `python3 scripts\u002Fbody_calc.py 1rm \u003Cweight> \u003Creps>`\n- `python3 scripts\u002Fbody_calc.py macros \u003Ctdee_kcal> \u003Ccut|maintain|bulk>`\n- `python3 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 | `python3 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=$(python3 -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  | python3 -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  | python3 -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  | python3 -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=\"${USDA_API_KEY:-DEMO_KEY}\"\nENCODED=$(python3 -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=${API_KEY}&query=${ENCODED}&pageSize=5&dataType=Foundation,SR%20Legacy\" \\\n  | python3 -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=\"${USDA_API_KEY:-DEMO_KEY}\"\ncurl -s \"https:\u002F\u002Fapi.nal.usda.gov\u002Ffdc\u002Fv1\u002Ffood\u002F${FDC_ID}?api_key=${API_KEY}\" \\\n  | python3 -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- `python3 scripts\u002Fbody_calc.py bmi \u003Cweight_kg> \u003Cheight_cm>`\n- `python3 scripts\u002Fbody_calc.py tdee \u003Cweight_kg> \u003Cheight_cm> \u003Cage> \u003CM|F> \u003Cactivity 1-5>`\n- `python3 scripts\u002Fbody_calc.py 1rm \u003Cweight> \u003Creps>`\n- `python3 scripts\u002Fbody_calc.py macros \u003Ctdee_kcal> \u003Ccut|maintain|bulk>`\n- `python3 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 | `python3 scripts\u002Fbody_calc.py` |",{"name":5,"authors":24,"license":15,"version":26,"metadata":27,"platforms":41,"description":45,"required_environment_variables":46},[25],"haileymarshall","1.0.0",{"hermes":28},{"tags":29,"category":30,"prerequisites":37},[30,31,32,33,34,35,36],"health","fitness","nutrition","gym","workout","diet","exercise",{"commands":38},[39,40],"curl","python3",[42,43,44],"linux","macos","windows","Gym workout planner and nutrition tracker. Search 690+ exercises by muscle, equipment, or category via wger. Look up macros and calories for 380,000+ foods via USDA FoodData Central. Compute BMI, TDEE, one-rep max, macro splits, and body fat — pure Python, no pip installs. Built for anyone chasing gains, cutting weight, or just trying to eat better.\n",[47],{"help":48,"name":49,"prompt":50,"optional":51,"required_for":52},"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)","master","8f65f9c8da48757c0ec3e7d6483545ecc0167ee1","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fhikmet4434","thirdhand.com.tr","2026-11-01 23:11:46",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":51},[61,64,67],{"tool":62,"command":63},"npx","npx skills add hikmet4434\u002Fclaude-skills --skill fitness-nutrition",{"tool":65,"command":66},"bunx","bunx skills add hikmet4434\u002Fclaude-skills --skill fitness-nutrition",{"tool":68,"command":69},"pnpm","pnpm dlx skills add hikmet4434\u002Fclaude-skills --skill fitness-nutrition","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Ffitness-nutrition\u002FSKILL.md",[72,78,84],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002FFORMULAS.md","REFERENCE","参考文档",3234,"https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Ffitness-nutrition\u002Freferences\u002FFORMULAS.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fbody_calc.py","SCRIPT","脚本",6430,"https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Ffitness-nutrition\u002Fscripts\u002Fbody_calc.py",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fnutrition_search.py",2641,"https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Ffitness-nutrition\u002Fscripts\u002Fnutrition_search.py",[89,98,105,112,120,128],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7BTGA12ETGPJZV002TR0YDS","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7BTG43MC8DG3395QZ9V8628","yayin-seo-geo-yasal-denetim","Bir web uygulaması canlıya çıkmadan veya iş teslimi biterken resmî\u002Fkurumsal sayfaları, SEO, GEO, indeksleme ve canlı çıktıyı denetler; eksikleri kodda tamamlar ve üretimde kanıtlar. Uygulama bitti, canlıya hazır mı, yayına al, launch checklist, release readiness, SEO audit, GEO audit, legal pages, privacy policy, terms, cookies, KVKK, robots, sitemap, canonical, hreflang, JSON-LD, llms.txt ifadelerinde kullan. Yeni veya önemli ölçüde değişmiş halka açık web uygulamasının son teslim aşamasında kullanıcı ayrıca istemese de uygula. Güvenlik sızma testi için güvenlik skillini ayrıca kullan.","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fyayin-seo-geo-yasal-denetim\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7BTG0P2JC1MW62J36K8GTXE","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7BTF744QWNY97F5SQJZ7WQ1","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fwrangler\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fwrangler\u002FSKILL.md",[],[],{"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":93,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M7BTD1RVAZTYZ3J6JT97W2XJ","winui-app","Bootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Windows App SDK samples, and CommunityToolkit components. Use when creating a brand new app, preparing a machine for WinUI, reviewing, refactoring, planning, troubleshooting, environment-checking, or setting up WinUI 3 XAML, controls, navigation, windowing, theming, accessibility, responsiveness, performance, deployment, or related Windows app design and development work.","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fwinui-app\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fwinui-app\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M7BTCJJ3F3G3VASJYEAWXDQ1","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\u002Fhikmet4434\u002Fclaude-skills\u002Fblob\u002Fmaster\u002Fwhisper\u002FSKILL.md",[],[]]