OpenParable
Skip to content
← Back to skills

Fitness Nutrition

Research
fitness-nutrition

Fitness Nutrition is an Agent Skill for research published in the fuyuxiang/echo-agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Search exercises by muscle/equipment, lookup food nutrition data. Uses free wger and USDA APIs.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fuyuxiang/echo-agent/blob/HEAD/skills/health/fitness-nutrition/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fitness-nutrition, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Fitness & Nutrition

Exercise database and food nutrition lookup via free public APIs.

Exercise Search (wger API — free, no key)

# Search exercises
curl -s "https://wger.de/api/v2/exercise/search/?term=squat&language=english&format=json"

# List muscle groups
curl -s "https://wger.de/api/v2/muscle/?format=json" | python3 -c "
import sys,json; [print(f\"{m['id']}: {m['name_en']}\") for m in json.load(sys.stdin)['results']]"

# Exercises for specific muscle (e.g. chest=4)
curl -s "https://wger.de/api/v2/exercise/?muscles=4&language=2&format=json"

Muscle Groups

IDEnglish中文
1Biceps肱二头肌
2Shoulders肩部
4Chest胸部
9Legs腿部
10Abs/Core核心/腹肌
12Back背部
5Triceps肱三头肌

Nutrition Lookup (USDA FoodData Central)

# Search food (free, DEMO_KEY works)
curl -s "https://api.nal.usda.gov/fdc/v1/foods/search?query=chicken+breast&pageSize=3&api_key=DEMO_KEY" | \
  python3 -c "import sys,json; [print(f\"{f['description']}: {[n for n in f.get('foodNutrients',[]) if 'Energy' in n.get('nutrientName','')]}\") for f in json.load(sys.stdin)['foods']]"

Calculators

# BMI
bmi = weight_kg / (height_m ** 2)
# Categories: <18.5 underweight, 18.5-24.9 normal, 25-29.9 overweight, 30+ obese

# TDEE (Harris-Benedict)
bmr_male = 88.362 + (13.397 * weight_kg) + (4.799 * height_cm) - (5.677 * age)
bmr_female = 447.593 + (9.247 * weight_kg) + (3.098 * height_cm) - (4.330 * age)
# Activity multiplier: sedentary 1.2, light 1.375, moderate 1.55, active 1.725

Script

python3 scripts/health_query.py exercise "push up"
python3 scripts/health_query.py exercise-detail 123
python3 scripts/health_query.py food "鸡胸肉"
python3 scripts/health_query.py bmi 75 1.78