name: log-workout description: "Log workouts to Obsidian. Triggered when the user mentions log-workout, record workout, trained today, or /log-workout."
Log Workout Skill
Log the user's workout to Obsidian, compare against historical data, and highlight progress.
Design philosophy: AI does the legwork (formatting records, looking up history for comparison), human does the core action (actually training).
File Path
~/Desktop/Notes/Fitness/Workouts/YYYY-MM-DD-Split.md
Workflow
Step 1: Ask About the Workout
Ask 3 quick questions:
- What did you train today? — Chest / Back / Legs / Shoulders / Arms / Other
- What exercises did you do? — Open-ended answer, the user will describe casually (e.g., "bench 70 four sets of 8, incline DB 30 three sets of 10")
- How did it feel overall? (1-5) Anything to note?
Step 2: Look Up History for Comparison
Read the most recent entry for the same split from ~/Desktop/Notes/Fitness/Workouts/.
Compare weight and reps for each exercise:
- ↑ Improved
- → Same
- ↓ Declined
- PR annotation (exceeded all-time high)
Step 3: Generate Workout Note
---
date: YYYY-MM-DD
split: Chest
muscles: [chest, triceps, shoulders]
duration:
feel: 4
---
## Exercises
| Exercise | Sets | Reps | Weight (kg) | Notes |
|----------|------|------|-------------|-------|
| Bench Press | 4 | 8/8/7/6 | 70 | → Same as last time |
| Incline DB Press | 3 | 10/10/9 | 30 | ↑ Last time was 27.5 |
## Notes
User's notes go here
Step 4: Show for Confirmation, Then Write
Split -> Muscles Mapping
- Chest -> [chest, triceps, shoulders]
- Back -> [back, biceps, rear delts]
- Legs -> [quads, hamstrings, glutes, calves]
- Shoulders -> [shoulders, traps]
- Arms -> [biceps, triceps, forearms]
Common Exercise Name Recognition
Chest: 卧推=Bench Press, 上斜=Incline Press, 飞鸟/夹胸=Cable Fly, 双杠=Dips, 三头下压=Tricep Pushdown, 碎颅者=Skull Crusher
Back: 引体=Pull-up, 高位下拉=Lat Pulldown, 划船=Row, 坐姿划船=Seated Cable Row, 硬拉=Deadlift, 弯举=Bicep Curl, 面拉=Face Pull
Legs: 深蹲=Squat, 腿举=Leg Press, RDL=Romanian Deadlift, 腿弯举=Leg Curl, 腿屈伸=Leg Extension, 保加利亚=Bulgarian Split Squat, 提踵=Calf Raise