fitness-nutrition

Search exercises and food nutrition data via wger and USDA APIs, and compute fitness metrics offline.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/xu1713/openhorse --skill fitness-nutrition-xu1713
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fitness-nutrition
Source: https://github.com/xu1713/openhorse/tree/main/openhorse/openhorse/optional-skills/health/fitness-nutrition
Command: npx skills add https://github.com/xu1713/openhorse --skill fitness-nutrition-xu1713

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Planning workouts and tracking nutrition normally requires juggling multiple apps and websites. This Skill gives you exercise lookups, food macro data, and body-metric calculators in one place, using free public APIs and pure-Python scripts with no package installs. ## Core Features & Use Cases - Exercise Search: Query 690+ exercises from the wger database by muscle, equipment, category, or name, with full details and images. - Nutrition Lookup: Search 380,000+ foods in USDA FoodData Central for calories, protein, fat, and carbs per 100g, using a free API key or DEMO_KEY. - Offline Calculators: Compute BMI, TDEE (Mifflin-St Jeor), one-rep max (Epley/Brzycki/Lombardi), macro splits, and body fat percentage (US Navy method) with stdlib-only Python. - Use Case: Ask for a chest workout with dumbbells, then look up the macros for chicken breast and rice, then calculate your TDEE and cutting macro split — all in one conversation. ## Quick Start Ask the assistant to find dumbbell exercises for chest and calculate your TDEE for a 75 kg, 180 cm, 30-year-old male with moderate activity.

Frequently Asked Questions about fitness-nutrition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search exercises by muscle group or equipment?

Query the wger API exercise endpoint with filters like muscles={id}, category={id}, or equipment={id}, always adding language=2 and status=2 for approved English results. The skill includes reference tables mapping IDs to muscles, categories, and equipment so no extra API calls are needed.

How do I look up calories and macros for a food?

Search USDA FoodData Central via the /fdc/v1/foods/search endpoint with your query, which returns calories, protein, fat, and carbs per 100g. The included nutrition_search.py script handles this and accepts multiple foods as arguments or via stdin.

Do I need an API key for USDA nutrition data?

No key is strictly required since DEMO_KEY works instantly with a 30 requests-per-hour limit. For 1,000 requests per hour, sign up free at the USDA site and set the USDA_API_KEY environment variable.

Does this skill require installing Python packages?

No pip installs are needed. All calculators and API scripts use only the Python standard library plus curl, so they run on any system with python3 on Linux, macOS, or Windows.

How accurate are the body fat and one-rep max estimates?

The US Navy body fat formula is accurate within about 3-5% compared to DEXA scans. One-rep max formulas (Epley, Brzycki, Lombardi) are most reliable for sets of 10 reps or fewer, so use sets of 3-5 reps for best estimates.