AgentSkillsCN

fitness

记录运动情况,管理健身目标,生成锻炼处方,并分析健身趋势。当用户希望记录锻炼、追踪进展,或获取运动建议时使用此功能。

SKILL.md
--- frontmatter
name: fitness
description: Record exercise, manage fitness goals, generate workout prescriptions, and analyze fitness trends. Use when user wants to log workouts, track progress, or get exercise recommendations.
argument-hint: <operation_type exercise_info, e.g.: record running 30minutes>
allowed-tools: Read, Write
schema: fitness/schema.json

Exercise and Fitness Management Skill

Record exercise, manage fitness goals, generate workout prescriptions, and analyze fitness trends.

Medical Safety Disclaimer

Important: The exercise recommendations and analysis provided by this system are for reference only and do not constitute medical advice or specific exercise prescriptions.

Cannot Do:

  • Do not provide specific exercise prescriptions - exercise prescriptions must be formulated by doctors or exercise specialists
  • Do not handle exercise injuries - injuries require medical attention
  • Do not assess cardiovascular risk - medical evaluation required before exercise
  • Do not replace professional guidance - complex exercises require professional coach guidance

Can Do:

  • Exercise data recording and analysis
  • Fitness goal management
  • Exercise trend identification
  • General exercise recommendations
  • Reference recommendations based on health conditions

Core Flow

code
User Input → Identify Operation Type → [record] Parse Exercise Info → Save Record
                              ↓
                         [history/stats] Read Data → Display Report
                              ↓
                         [goal] Parse Goal → Update Goal → Save
                              ↓
                         [analysis] Read Data → Analyze Trends → Display Results
                              ↓
                         [prescription] Based on Health Status → Provide Reference Recommendations

Step 1: Parse User Input

Operation Type Recognition

Input KeywordsOperation Type
recordrecord - Log exercise
historyhistory - View history records
statsstats - Exercise statistical analysis
goalgoal - Goal management
analysisanalysis - Exercise analysis
prescriptionprescription - Exercise prescription recommendations
precautionsprecautions - Precautions

Exercise Type Recognition

Aerobic Exercise

KeywordsType
runningrunning
walkingwalking
cyclingcycling
swimmingswimming
jump_ropejump_rope
aerobicsaerobics
ellipticalelliptical
rowingrowing

Strength Training

KeywordsType
strengthstrength
calisthenicscalisthenics
machine_weightsmachine_weights
free_weightsfree_weights
resistance_bandsresistance_bands

Ball Sports

KeywordsType
basketballbasketball
soccersoccer
badmintonbadminton
ping_pongping_pong
tennistennis
volleyballvolleyball

Other Exercises

KeywordsType
yogayoga
pilatespilates
tai_chitai_chi
dancedance
hikinghiking
skiingskiing

Intensity Recognition

Inputlevelrpe
lowlow9-11
moderatemoderate12-14
highhigh15-17
rpe 13moderate13
heart_rate 145, hr 145moderate~13

Step 2: Parse Exercise Parameters

Duration Recognition

  • "30 minutes" → 30
  • "1 hour" → 60
  • "90 minutes" → 90

Distance Recognition

  • "5km" → 5.0
  • "3 km" → 3.0
  • "1000m" → 1.0 |

Pace Recognition

  • "6min_per_km" → "6:00"
  • "5'30"" → "5:30"

Heart Rate Recognition

  • "heart_rate 145" → {avg: 145}
  • "hr 145 max 165" → {avg: 145, max: 165}

Calorie Recognition

  • "calories 300" → 300
  • "burned 400 kcal" → 400 |

Step 3: Generate JSON

Exercise Record Data Structure

json
{
  "date": "2025-06-20",
  "time": "07:00",
  "type": "running",
  "duration_minutes": 30,
  "intensity": {
    "level": "moderate",
    "rpe": 13
  },
  "heart_rate": {
    "avg": 145,
    "max": 165,
    "min": 120
  },
  "distance_km": 5.0,
  "pace_min_per_km": "6:00",
  "calories_burned": 300,
  "how_felt": "good",
  "notes": "Felt comfortable, steady pace"
}

Fitness Goal Data Structure

json
{
  "goal_id": "goal_20250101",
  "category": "weight_loss",
  "title": "Lose 5 kg",
  "start_date": "2025-01-01",
  "target_date": "2025-06-30",
  "baseline_value": 75.0,
  "current_value": 70.5,
  "target_value": 70.0,
  "unit": "kg",
  "progress": 90,
  "status": "on_track"
}

Step 4: Save Data

  1. Read data/fitness-tracker.json
  2. Update corresponding record sections
  3. Write back to file

FITT Principle Reference

Frequency(频率)

  • Exercise days per week
  • General recommendation: 3-5 days/week

Intensity(强度)

  • Target heart rate zone = (220 - age) × 60-80%
  • RPE 12-16(somewhat hard to hard)
  • MET value reference

Time(时间)

  • Warm-up: 5-10 minutes
  • Main exercise: 20-60 minutes
  • Cool-down: 5-10 minutes

Type(类型)

  • Aerobic exercise: running, swimming, cycling, etc.
  • Strength training: bodyweight, machines, free weights
  • Flexibility training: stretching, yoga
  • Balance training: tai chi, single-leg stand

Goal Types

TypeDescriptionExample
weight_lossWeight loss goalLose 5 kg
muscle_gainMuscle gain goalGain 2 kg muscle
enduranceEndurance goalRun 5K under 30 minutes
healthHealth goalLower resting heart rate
habitHabit formationExercise 4 days per week

For more examples, see examples.md.