Chuyển đến nội dung
Skillpedia
Khác260k · #501

fitness-nutrition

Skill này làm gì

Skill tra cứu bài tập và thực phẩm trong các cơ sở dữ liệu miễn phí, và chạy các máy tính cho BMI, nhu cầu calo hằng ngày, tỷ lệ macro và sức nâng tối đa một lần (1RM). Phù hợp với người lên kế hoạch tập luyện hoặc theo dõi việc ăn uống.

Khi nào nên dùng

  • ✓Khi bạn muốn một kế hoạch tập luyện hoặc các bài tập cho một nhóm cơ cụ thể.
  • ✓Khi bạn muốn biết hàm lượng protein hoặc calo của một món ăn.
  • ✓Khi bạn muốn ước tính nhu cầu calo hằng ngày hoặc tỷ lệ macro cho mục tiêu của mình.

Liên kết skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/health/fitness-nutrition/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/health/fitness-nutrition/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Giúp tôi lên kế hoạch tập ba ngày mỗi tuần cho lưng và vai, và cho tôi biết mỗi ngày tôi cần bao nhiêu protein.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm trong một cơ sở dữ liệu bài tập mở và một cơ sở dữ liệu thực phẩm của chính phủ Hoa Kỳ, rồi chạy các máy tính ngoại tuyến cho BMI, nhu cầu năng lượng, sức nâng tối đa một lần và tỷ lệ macro. Kết quả dùng các công thức skill liệt kê.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Fitness & Nutrition

Expert fitness coach and sports nutritionist skill. Two data sources plus offline calculators — everything a gym-goer needs in one place.

Data sources (all free, no pip dependencies):

  • wger (https://wger.de/api/v2/) — open exercise database, 690+ exercises with muscles, equipment, images. Public endpoints need zero authentication.
  • USDA FoodData Central (https://api.nal.usda.gov/fdc/v1/) — US government nutrition database, 380,000+ foods. DEMO_KEY works instantly; free signup for higher limits.

Offline calculators (pure stdlib Python):

  • BMI, TDEE (Mifflin-St Jeor), one-rep max (Epley/Brzycki/Lombardi), macro splits, body fat % (US Navy method)

When to Use

Trigger this skill when the user asks about:

  • Exercises, workouts, gym routines, muscle groups, workout splits
  • Food macros, calories, protein content, meal planning, calorie counting
  • Body composition: BMI, body fat, TDEE, caloric surplus/deficit
  • One-rep max estimates, training percentages, progressive overload
  • Macro ratios for cutting, bulking, or maintenance

Procedure

Exercise Lookup (wger API)

All wger public endpoints return JSON and require no auth. Always add format=json and language=2 (English) to exercise queries.

Step 1 — Identify what the user wants:

  • By muscle → use /api/v2/exercise/?muscles={id}&language=2&status=2&format=json
  • By category → use /api/v2/exercise/?category={id}&language=2&status=2&format=json
  • By equipment → use /api/v2/exercise/?equipment={id}&language=2&status=2&format=json
  • By name → use /api/v2/exercise/search/?term={query}&language=english&format=json
  • Full details → use /api/v2/exerciseinfo/{exercise_id}/?format=json

Step 2 — Reference IDs (so you don't need extra API calls):

Exercise categories:

ID Category
8 Arms
9 Legs
10 Abs
11 Chest
12 Back
13 Shoulders
14 Calves
15 Cardio

Muscles:

ID Muscle ID Muscle
1 Biceps brachii 2 Anterior deltoid
3 Serratus anterior 4 Pectoralis major
5 Obliquus externus 6 Gastrocnemius
7 Rectus abdominis 8 Gluteus maximus
9 Trapezius 10 Quadriceps femoris
11 Biceps femoris 12 Latissimus dorsi
13 Brachialis 14 Triceps brachii
15 Soleus

Equipment:

ID Equipment
1 Barbell
3 Dumbbell
4 Gym mat
5 Swiss Ball
6 Pull-up bar
7 none (bodyweight)
8 Bench
9 Incline bench
10 Kettlebell

Step 3 — Fetch and present results:

# Search exercises by name
QUERY="$1"
ENCODED=$(python -c "import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))" "$QUERY")
curl -s "https://wger.de/api/v2/exercise/search/?term=${ENCODED}&language=english&format=json" \
  | python -c "
import json,sys
data=json.load(sys.stdin)
for s in data.get('suggestions',[])[:10]:
    d=s.get('data',{})
    print(f\"  ID {d.get('id','?'):>4} | {d.get('name','N/A'):<35} | Category: {d.get('category','N/A')}\")
"
# Get full details for a specific exercise
EXERCISE_ID="$1"
curl -s "https://wger.de/api/v2/exerciseinfo/${EXERCISE_ID}/?format=json" \
  | python -c "
import json,sys,html,re
data=json.load(sys.stdin)
trans=[t for t in data.get('translations',[]) if t.get('language')==2]
t=trans[0] if trans else data.get('translations',[{}])[0]
desc=re.sub('<[^>]+>','',html.unescape(t.get('description','N/A')))
print(f\"Exercise  : {t.get('name','N/A')}\")
print(f\"Category  : {data.get('category',{}).get('name','N/A')}\")
print(f\"Primary   : {', '.join(m.get('name_en','') for m in data.get('muscles',[])) or 'N/A'}\")
print(f\"Secondary : {', '.join(m.get('name_en','') for m in data.get('muscles_secondary',[])) or 'none'}\")
print(f\"Equipment : {', '.join(e.get('name','') for e in data.get('equipment',[])) or 'bodyweight'}\")
print(f\"How to    : {desc[:500]}\")
imgs=data.get('images',[])
if imgs: print(f\"Image     : {imgs[0].get('image','')}\")
"
# List exercises filtering 
Câu hỏi thường gặp

Tôi có cần tài khoản để dùng không?

Không. Skill nói cơ sở dữ liệu bài tập không cần xác thực, còn cơ sở dữ liệu thực phẩm có khóa demo dùng được ngay.

Skill dùng những công thức nào?

Skill liệt kê phương pháp Mifflin-St Jeor cho nhu cầu năng lượng, các phương pháp Epley, Brzycki và Lombardi cho sức nâng tối đa một lần, và phương pháp của Hải quân Hoa Kỳ cho tỷ lệ mỡ cơ thể.

Tra cứu thực phẩm có bao gồm món từ các nước khác không?

Nguồn thực phẩm là cơ sở dữ liệu FoodData Central của Hoa Kỳ, nên kết quả chính xác nhất với thực phẩm Mỹ.

Chi tiết

Mô tả gốc của tác giả

Workout planning, macros, and body metrics via wger/USDA.

repo: NousResearch/hermes-agent

Độ phổ biến

Sao GitHub
260k
Vị trí xếp hạng
#501
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự