Log a New Workout
When to Use
- •User wants to log a workout
- •User wants to record exercise or fitness activities
- •User mentions adding a new post about working out
Instructions
- •
Create the post using the rake task:
bashnoedit=1 rake new WORKOUT TITLE HERE
This creates the post file with proper frontmatter (
_id_,date,title) and prints the filename. Thenoedit=1flag prevents opening the editor so you can edit the file directly.WARNING: Do NOT use
rake edit,rake copy, orrake sl— these open vi, which doesn't work with an agent. Always usenoedit=1 rake newand edit the file directly. - •
Add content to the post. Wrap all workout numbers in
{% w %}tags — not just sets/reps/weight combos, but also standalone rep counts:code- Squat: {% w 5x5@145lb %} # 5 sets of 5 reps at 145lb - Pullups: {% w 3x8 %} # 3 sets of 8 reps - Deadlift: {% w 1x5@205lb %} # 1 set of 5 reps at 205lb - Turkish getups: {% w 3x35lb %} # 3 reps at 35lb - KB swings: {% w 35lb %} # just weight - {% w 8 %} ring pushups # standalone rep countFormat:
SETSxREPS@WEIGHT- omit parts as needed (e.g.,3x35lbfor reps x weight,35lbfor just weight,8for just reps).Structuring workouts:
- •When stating rounds at the top (e.g., "3 rounds superset:"), list only per-round reps for each exercise — don't repeat the round count on individual lines
- •Use "Then:" to separate distinct sections of a workout
- •Supersets: group exercises under a header like "3 rounds superset:"
- •Tabatas: format as "Xmin Tabata description"
Example post body:
code3 rounds superset: - {% w 6@50lb %} rear leg elevated split squats - {% w 8 %} ring pushups - {% w 8 %} ring rows Then: - 3min Tabata alternating side Copenhagen plankWhitespace: Never leave trailing whitespace on blank lines. Empty lines should be truly empty (no spaces or tabs).
- •
Add tags to categorize the workout:
bashrake tag ID tagname1 tagname2
Run
rake tagsto see existing tags and their frequencies.
Stronglifts Shortcut
For Stronglifts 5x5 workouts specifically, use:
rake sl a # Day A: Squat, Bench, Row rake sl b # Day B: Squat, Press, Deadlift
Reference
- •Posts are stored in
_posts/asYYYY-MM-DD-title-slug.md - •See
cli.rakefor all rake task implementations - •See
_plugins/workout.rbfor the{% w %}tag - •Run
rake lsto list recent posts