I’ll spare you the dreary personal drama about sports, running, and injuries, and jump straight into what I’ve vibe-coded to analyze my running stats with Gemini.
Syncing Garmin stats into a Google Sheet
For analyzing my running, I haven’t really seen the need for any fancy AI agents – agentic workflows aren’t particularly necessary here. A regular chat in Gemini works completely fine for me (apart from a real human coach, of course). All I really want is an easy way to pull my latest workout stats into that chat.
There are plenty of ways to do this; I put together a lightweight ETL script (runstats2sheet) that fetches activity data from Garmin (and Strava too, after I later added support for it) and dumps it into a Google Sheet.
Garmin has a surprisingly nice unofficial Python API, garminconnect. Ironically, the hardest part was actually writing to Google Sheets – as a Googler, I had to wrestle with that way more than I’d like to admit 🤣. Once you set up the service account and provide your Garmin credentials and spreadsheet ID, your training stats start flowing into the sheet: distance, duration, average and max heart rate, pace, cadence, training effect, per-kilometer splits, and so on. I hooked the script up to good old crontab to keep the table updated every hour – good enough.
Building a running coach skill
Next, I created a custom skill in Gemini (in the chat UI it’s Menu > Customize > Skills) – a reusable set of instructions and context you can invoke right inside any chat. Into its context, I uploaded “Daniels’ Running Formula” by Jack Daniels (whiskey jokes go into the comments), which my runner friend and Master of Sports recommended as a must-have desk reference for runners.

I also linked the Google Sheet with my stats in the skill’s context, and of course, ran the skill’s instructions through Gemini to polish them up.
After a run, I just open a chat, invoke the skill, and ask Gemini to comment on my latest results. My LLM assistant then happily calls me out for low cadence or pushing the pace too hard. The critique is usually quite nontrivial – definitely not your typical “Absolutely! You nailed this training like a champ!” (By the way, all my prompts, the book, and our chats were in Russian – Gemini is especially strong with languages.)
In the end, Gemini can build a training plan, give concrete feedback on individual sessions, and explain the reasoning grounded in Daniels’ book. Better yet, the whole setup automatically improves whenever the underlying model gets upgraded (free alpha from the foundation model) like the marvellous latest Gemini 4 Neon. This raises a fair question about why specialized apps are even needed here (though that’s a tangent you could make about plenty of AI startups these days).
Creating a custom workout: Josh Kerr’s 5K pyramid
Beyond post-run analysis, this setup turns out to be super handy for designing custom sessions from scratch and pushing them straight to your watch.
Here is a concrete example. I came across an Instagram post by Josh Kerr sharing his classic first track session of the season – a 5K ladder (pyramid), going up to 1K and back down:
- Intervals:
200m – 400m – 600m – 800m – 1K – 800m – 600m – 400m – 200m - Recovery:
90s / 90s / 90s / 2m / 2m / 2m / 90s / 90s

Source: Josh Kerr (@joshhkerr) on Instagram.
I liked the look of it and decided to add a similar session to my own training – calibrated to my fitness, obviously, not an Olympic medalist’s.
So I went to Gemini, linked the Google Sheet with my running stats, and asked it to plan an 8/10 effort 5K pyramid for me. With my actual training history right there, Gemini anchored the workout to my 18:47 5K PB (3:45/km) and my recent speed work (300m and 400m repeats plus my 5K opening kilometer pace).
The resulting plan was a 19-step workout: a 3 km warm-up (5:30–5:44/km), the 9 pyramid intervals averaging around 3:36/km across the 5K of hard work (starting at 3:15–3:20/km for the opening 200m, easing to 3:43–3:45/km at the 1K peak, and descending slightly faster on the back half so you finish under race-level lactate), easy jog recoveries (5:44–6:14/km) matching the 90s / 2:00 structure, and a cool-down.
Uploading the structured workout to Final Surge
Note: this step can also be automated with garminconnect
Now came the annoying part: getting a 19-step structured workout with custom pace ranges into Final Surge (which syncs directly to Garmin). Manually clicking “Add Step” 19 times and typing in distances, durations, and pace targets for every single interval and recovery is pure tedium.
Instead, you can simply ask Gemini to generate a binary Garmin .fit workout file for the session – I did this right in the Chrome side panel while having Final Surge open.
Final Surge’s + Upload feature in the workout builder expects a proper binary .fit file (with file_id, workout, and workout_step records, valid headers, and CRC checksums – not a plain-text CSV). Gemini wrote and packaged a valid .fit file with all 19 steps encoded (exact distances, durations, and custom pace targets) and gave me a ZIP to download.
From there, it’s just unzip, click + Upload in Final Surge, and the entire structured workout pops right into the builder, ready to save and sync to the watch:

Ready to go!

Wrapping up
If you want to try a similar workflow for your own running, feel free to grab the ETL repo here. Overall, everything works quite reliably – there were a few minor quirks along the way, as expected with vibe-coded tools, nothing fatal. Enjoy!