Build an AI Coach for Your Swing
Analyze your sports swing with phone video, body tracking, and Claude Code.
Introduction
30 Second Summary
A swing can feel wrong even when two attempts look almost identical at full speed. Gut instinct can point to a problem, but it cannot show which movement changed or by how much.
In this project, you will film two of your own swings and one agreed reference. You'll use Claude Code and MediaPipe to turn the clips into moving skeletons, camera-distance-aware measurements, a blind comparison, and coaching ideas tied to numbers.
What You'll Build
Picture opening compare.png and seeing your weaker swing beside reference at peak wrist speed, with the biggest measured difference labelled in plain words and numbers.
By the end of this project, you'll have:
- Moving skeleton videos where 33 tracked body points follow the shoulders, arms, hips, and legs through swing-a, swing-b, and reference.
- A three-row measurement table in measurements.csv using torso-length normalization across all three clips.
- A blind coaching result with one evidence-backed root cause, compare.png, three measurable tips, and one drill.
- Secret Mission: Practise the drill, film swing-after, and check whether the root-cause number moved.
Are there any prerequisites?
You'll need Claude Code access through a Claude Pro, Max, Ultra, Team, Enterprise, or Console account because the free Claude plan does not include it.
You'll also need a phone for filming only yourself or people who agreed, plus an Apple silicon Mac on macOS 13 or later or a Windows PC on Windows 10 version 1809 or later or Windows 11.
Before We Start
Before the hands-on work begins, choose the swing sport you want to film and the comparison result that would be useful to you. This gives your analysis a clear purpose from the start.
Install Python and Claude Code
Your swing analysis needs a working local toolchain before Claude Code can inspect clips or create scripts.
Python and Claude Code will work together from one empty project folder. You will install both tools before checking that they can communicate.
In this step, get ready to:
- Install Python 3.15.2.
- Install Claude Code.
- Confirm the installed Python version from Claude Code inside my-swing-coach.
Install Python 3.15.2
Python must be available from your computer's terminal before Claude Code can run the tracking scripts. The installer differs between macOS and Windows.
- Install Python 3.15.2 from the official macOS downloads page or Windows downloads page.
macOS
- Select Download macOS installer for Python 3.15.2.
- Run the downloaded installer.
Windows
- Download the Python install manager from the Windows downloads page.
- Run the Python install manager.
- Use the Python install manager to install Python 3.15.2.
The Python installer completes without an error.
macOS
- Press Command-Space bar to open Spotlight.
- Type Terminal.
- Press the Return key to start macOS Terminal.
- Check the installed Python version by running this command:
python3 --version
What does this command do?
The --version option asks Python to print its version number before exiting.
You should see Python 3.15.2 in the terminal output.
Windows
- Open the Start menu.
- Type Windows PowerShell.
- Select Windows PowerShell.
- Select Open.
- Check the installed Python version by running this command:
python --version
What does this command do?
The --version option asks Python to print its version number before exiting.
You should see Python 3.15.2 in the PowerShell output.
✔️ I see the expected version
That confirms Python is ready for the swing-analysis scripts you create later.
ⓧ I see an older version
- Install Python 3.15.2 from the official download page linked above.
- Repeat the platform version check after the installation completes.
ⓧ Command not found
- Install Python 3.15.2 from the official download page linked above.
- Start a new terminal window after the installation completes.
- Repeat the platform version check in the new window.
Install Claude Code
Claude Code needs its own local command before it can work inside your project folder. Its native installer adds that command to your computer.
- Install Claude Code using the command for your computer from the official setup guide below:
macOS
curl -fsSL https://claude.ai/install.sh | bash
What does this command do?
This downloads Claude Code's macOS installation script from Anthropic. The pipe passes that script to your shell for installation.
The installer completes without an error.
Windows
irm https://claude.ai/install.ps1 | iex
What does this command do?
This downloads Claude Code's Windows installation script from Anthropic. The pipe passes that script to PowerShell for installation.
The installer completes without an error.
macOS
- Close the current Terminal window.
- Press Command-Space bar to open Spotlight.
- Type Terminal.
- Press the Return key to start a new Terminal window.
- Confirm Claude Code is installed in the new Terminal window by running:
claude --version
What does this command do?
This asks the Claude Code command to print its installed version number.
You should see a Claude Code version number.
Windows
- Close the current Windows PowerShell window.
- Open the Start menu.
- Type Windows PowerShell.
- Select Windows PowerShell.
- Select Open to start a new PowerShell window.
- Confirm Claude Code is installed in the new PowerShell window by running:
claude --version
What does this command do?
This asks the Claude Code command to print its installed version number.
You should see a Claude Code version number.
✔️ I see a version number
That confirms Claude Code is available in the new terminal window.
ⓧ Command not found
- Repeat the Claude Code installation command for your computer.
- Close the current terminal window after the installer completes.
- Repeat the version check in a new terminal window.
Create the project folder and start Claude Code
Claude Code uses the current folder as the boundary for its project work. Starting it inside an empty my-swing-coach folder keeps every future clip and script in one place.
macOS
- Create the empty my-swing-coach folder by running this command:
mkdir my-swing-coach
What does this command do?
The mkdir command creates a folder named my-swing-coach.
- Move into the new folder by running this command:
cd my-swing-coach
What does this command do?
The cd command changes the terminal's current location to my-swing-coach.
You should see the terminal prompt remain ready for another command inside my-swing-coach.
Windows
- Create the empty my-swing-coach folder by running this command:
mkdir my-swing-coach
What does this command do?
The mkdir command creates a folder named my-swing-coach.
- Move into the new folder by running this command:
cd my-swing-coach
What does this command do?
The cd command changes PowerShell's current location to my-swing-coach.
You should see the PowerShell prompt remain ready for another command inside my-swing-coach.
The next command asks you to sign in through the browser before Claude Code starts. Complete that sign-in with the Claude account that includes Claude Code access.
- Complete the browser sign-in when Claude Code asks.
- Start Claude Code from inside my-swing-coach by running this command:
claude
What does this command do?
This starts an interactive Claude Code session with my-swing-coach as the current project folder.
You should see Claude Code ready for your first message inside the empty my-swing-coach folder.
Before you send the message, which Python version do you expect Claude Code to report?
- Ask Claude Code to confirm Python by pasting this message:
Check that Python works here and tell me which version I have.
What does this message do?
Claude Code runs the matching Python version command for your computer. Its reply proves that Claude Code can reach your local Python installation.
You should see Claude Code reply with the installed Python version. The result should identify Python 3.15.2.
Command not found?
A missing claude, python, or python3 command usually means the terminal window was open before the installation completed.
- Close the current terminal window.
- Repeat the operating-system steps above to start a new terminal window.
- Run Claude Code's full check with this command:
claude doctor
This checks the Claude Code installation for problems that can block startup.
Help me diagnose why Claude Code or Python is not available in my new terminal window.
Your local toolchain is ready. Next up, you will film and organize the three clips that make the blind comparison possible.
Film Your Swings
Your Python toolchain is ready inside my-swing-coach. You can now capture the footage that your swing analysis needs.
Pose tracking needs three consistently framed clips before it can produce a fair blind comparison.
In this step, get ready to:
- Set up consistent side-on framing.
- Film three swing clips.
- Prepare the clips for a blind comparison.
Set up consistent framing
A consistent camera position keeps framing differences from distorting the comparison. Each clip needs the same side-on view with every moving body part visible.
- Prop your phone at about hip height.
- Position the camera side-on to the swing.
- Keep the phone still throughout every recording.
- Frame your whole body with your feet and racket or club visible.
You should see your complete swing area in the preview without any part of your body leaving the frame.
- Set your phone camera to record at 60 fps if that option is available.
- Find the video recording options in your phone camera's settings.
- Choose the recording option that shows 60 fps.
Your recording setting should show 60 fps when your phone supports it.
- Set new iPhone recordings to Most Compatible if you are filming with an iPhone.
- Open Settings on your iPhone.
- Select Camera.
- Select Formats.
- Select Most Compatible.
If you use an iPhone, you should see Most Compatible selected.
Film the blind comparison clips
The clip names keep your expectations out of the analysis. Consistent labels let Claude compare the measurements before it learns your private guess.
- Film only yourself or another person who agreed to be recorded.
- Record 5 to 10 swings of your first swing kind in one clip.
- Record 5 to 10 swings of your second swing kind in one clip.
You should now have two own-footage clips with one swing kind in each clip.
- Record one reference clip of an agreed better player doing the same swing.
- Record your own best-feeling swings as the reference when nobody else is available.
You should now have three clips recorded from the same side-on camera position.
Organize the clips and keep your guess private
The project needs neutral filenames before Claude reads any metadata. Your private guess stays outside the folder so the later diagnosis begins without that clue.
- Create a videos folder inside my-swing-coach.
- In your computer's file browser, return to the my-swing-coach folder from the previous step.
- Use the new-folder control to create videos.
You should see an empty videos folder inside my-swing-coach.
- Copy all three clips from your phone into the videos folder.
- Use AirDrop, a cable, or a cloud drive to transfer the three clips into my-swing-coach/videos.
You should see three video files inside videos.
- Rename the first own-footage clip so its base filename is swing-a while keeping its current video extension.
- Use the file's rename option inside videos to set the base filename to swing-a.
- Rename the second own-footage clip so its base filename is swing-b while keeping its current video extension.
- Use the file's rename option inside videos to set the base filename to swing-b.
- Rename the comparison clip so its base filename is reference while keeping its current video extension.
- Use the file's rename option inside videos to set the base filename to reference.
The videos folder should now contain exactly swing-a, swing-b, and reference with their existing video extensions.
- Write which swing you think is weaker plus your reason on paper or in your phone's notes.
Your private guess should exist outside my-swing-coach with no copy inside the project folder.
Before you send the verification message, predict whether Claude Code will find exactly three clips with duration and frame-rate details.
- Send this message in the Claude Code conversation from the previous step:
List the videos in the videos folder with their length and frames per second.
What does this prompt do?
Claude Code reads the files in videos and reports each clip's duration plus frame rate. The neutral request checks the dataset without asking Claude to judge either swing.
You should see Claude list exactly swing-a, swing-b, and reference with a duration and frame rate for each clip. It should not suggest which swing is weaker.
One clip will not open?
An iPhone .mov clip that will not open is fine for now. The next step gives Claude a chance to convert it if needed.
Get help checking the clip's location before you continue.
That is the capture complete. Your blind comparison now has three consistently framed clips plus a private guess that Claude has never seen.
Your footage is ready. Next, you will track 33 body points through every clip and watch each swing become a moving skeleton.
Track Your Body
Your three blind-labelled clips are ready. The next move is to turn their frames into body motion you can measure.
Raw video does not expose the joint motion needed for a fair comparison.
In this step, get ready to:
- Set up MediaPipe for body tracking.
- Run track.py across all three clips.
- Review the skeleton videos.
Create the tracking script
The request uses MediaPipe Tasks with the Pose Landmarker in VIDEO mode. This preserves the frame-by-frame path needed for measurement.
- In Claude Code, request the tracker setup by pasting this message:
Install mediapipe. Download the MediaPipe Pose Landmarker full model from https://huggingface.co/litert-community/MediaPipe-PoseLandmarker-Full/resolve/main/pose_landmarker_full.task. Then write track.py. For each video in videos, run the pose landmarker in VIDEO mode on every frame, save every landmark to a CSV per video (frame, time, landmark number, x, y, visibility), and write a copy of the video with the skeleton drawn on top. Print how many frames had a person found.
What does this message do?
- The first request installs the tracking package and its OpenCV dependency.
- The second request downloads the full Pose Landmarker model.
- The final request creates track.py with landmark CSV output, skeleton videos, and person-found counts.
You should see three proposed changes. They install MediaPipe, download the full model, and create track.py with the Tasks API in VIDEO mode.
- Approve the MediaPipe installation when Claude Code asks.
- At Claude Code's permission prompt, select the option that allows the package installation once.
You should see MediaPipe 1.3.0 and opencv-contrib-python finish installing.
✔️ I see the required version
Your installation output names MediaPipe 1.3.0. The tracking dependency is ready.
ⓧ I see an older version
An older release can steer Claude Code toward examples that no longer work.
- Return to Claude Code and request the pinned release with this message:
Install mediapipe==1.3.0.
What does this message do?
This message replaces the older package with MediaPipe 1.3.0.
You should see installation output naming MediaPipe 1.3.0.
ⓧ MediaPipe is not installed
The original package installation did not complete.
- Return to Claude Code and request the required release with this message:
Install mediapipe==1.3.0.
What does this message do?
This message installs the exact MediaPipe release used by the tracking workflow.
You should see installation output naming MediaPipe 1.3.0.
- Approve the full Pose Landmarker model download when Claude Code asks.
- At the download permission prompt, select the option that allows this download once.
You should see pose_landmarker_full.task finish downloading into my-swing-coach.
- Approve the creation of track.py when Claude Code asks.
- At the file permission prompt, select the option that allows Claude Code to create the file once.
You should see track.py inside my-swing-coach.
Run the body tracker
The script now has the full model and the three clips it needs. Its first run tests whether the entire tracking path works.
Before you send the next message, do you expect the tracker to find a person in most frames or only a few?
- Run the tracker across all three clips by pasting this message:
Run track.py.
What does this message do?
Claude Code runs track.py from my-swing-coach. The script processes each decoded frame in timestamp order.
Each detected pose becomes CSV landmark data. The same landmarks are drawn onto a tracked copy of the clip.
You should see a person-found count for swing-a, swing-b, and reference. Each count should be close to that clip's total frame count.
You may see Failed to register engine: ALREADY_EXISTS or repeated Sparsity tensors may not yet be fully supported lines. These messages were normal on the supplied tested path.
The run is ready to review when Claude Code prints the frame counts and creates the CSV files plus skeleton videos.
Tracking run failed?
- If the error mentions mp.solutions, send Claude Code this repair message:
Update track.py to use the MediaPipe Tasks API with PoseLandmarker in VIDEO mode. Do not use mp.solutions.pose.
This message replaces the removed Solutions API pattern while preserving the required PoseLandmarker workflow.
- Refilm closer with the feet in frame when only a few frames contain a detected person.
- Refilm with Most Compatible when a video will not open on Windows.
Help me diagnose why track.py is not producing person-found counts and skeleton videos.
Review the skeleton videos
The person-found counts confirm that frames were processed. The tracked videos let you check whether the pose landmarks stayed attached to the body through each swing.
Before you open the videos, which joints do you expect the skeleton lines to follow most steadily?
- Ask Claude Code to open every tracked clip by pasting this message:
Open each skeleton video.
What does this message do?
Claude Code locates the tracked copies created by track.py. It opens each video with the available video player on your computer.
You should see each tracked clip open with lines following the shoulders, arms, hips, and legs. You have turned all three phone clips into moving skeletons.
Your checkpoint is complete when all three skeleton videos follow the body and the terminal shows a person-found count for every clip.
Your clips now contain the frame-by-frame body data needed for comparison. Next, you will turn those landmarks into torso-normalized swing measurements.
Measure Every Swing
Your skeleton videos now show the tracked body through every clip. Next, Claude Code will turn the saved landmark data into measurements you can compare.
Landmark coordinates alone are hard to compare. In this step, torso-length normalization turns them into repeatable swing measurements.
In this step, get ready to:
- Create measure.py with the six swing measurements.
- Run measure.py to create measurements.csv.
- Check the swing counts and frame times against your footage.
Create the measurement script
The script uses torso length as its distance unit. This keeps distances comparable when the phone sits closer to one player.
It calculates six outputs for each detected swing. These cover swing time, take-back distance, peak wrist speed, elbow angle, knee bend, and shoulder turn against the hips.
- Paste this message into the Claude Code session from earlier:
Write measure.py. Use torso length (midpoint of the shoulders to midpoint of the hips) as the unit for distances, so camera distance doesn't matter. Find each swing in each clip from the peak speed of the hitting wrist. For each swing measure: swing time from the end of the take-back to peak wrist speed in seconds, take-back distance of the wrist behind the body in torsos, peak wrist speed in torsos per second, elbow angle and knee bend at peak speed, and shoulder turn compared with the hips. Save the average and spread of each measurement per clip to measurements.csv and print it as a table.
What does this prompt create?
- Claude uses peak hitting-wrist speed to locate each swing in the landmark data.
- Torso length becomes the distance unit for take-back distance and wrist speed.
- The script calculates an average and spread for each measurement in every clip.
You should see Claude create measure.py. Claude explains that the code details depend on your footage.
Run the measurement script
Running the script applies the same measurement process to all three clips. The resulting rows keep the blind comparison consistent.
- Ask Claude Code to execute measure.py by pasting this message:
Run it.
What happens when it runs?
Claude Code runs measure.py inside my-swing-coach. The script reads the existing per-clip landmark CSV files.
The terminal table gives you an immediate result. The same averages and spreads are saved in measurements.csv.
You should see a printed measurement table with one data row for swing-a, swing-b, and reference. You should also see a new measurements.csv file.
You have turned frame-by-frame landmarks into a three-row swing comparison.
Check the detected swings
A measurement table is useful only when each detected peak represents a swing you actually filmed. The frame times show where measure.py found those peaks.
Before you ask, do you expect the detected count for each clip to match the number of swings you filmed?
- Ask Claude Code to report the detected swings by pasting this message:
How many swings did you find in each clip? Show me the frame times.
What does this check prove?
The count tells you how many wrist-speed peaks became swings. The frame times let you compare those peaks with the moments recorded in each clip.
You should see a swing count and a list of frame times for swing-a, swing-b, and reference.
- Compare each reported count with the number of swings you filmed in that clip.
The count for each clip should match the swings you filmed. The listed frame times should line up with those swings.
Swing counts look wrong?
Too many swings found means small arm movements count as swings. Ask Claude Code to raise the speed threshold by sending:
Raise the speed threshold in measure.py so small arm movements are not counted as swings. Then run it again and show me the swing counts and frame times.
This asks Claude Code to make swing detection more selective. The new counts should sit closer to the number of swings you filmed.
- Refilm the affected clip at 60 fps or in slo-mo if its swing time is 0 s. A frame rate of 30 fps is too coarse for that timing.
Get help with the detection results.
Your measurements.csv now contains average and spread values for all three clips. The swing counts and frame times confirm which recorded movements produced those measurements.
Your three clips now have comparable measurements. Next, you will clear the conversation before asking Claude to diagnose one weaker swing from the numbers alone.
Get a Blind Diagnosis
Your three clips now have comparable measurements in measurements.csv. The next goal is to let Claude Code judge swing-a and swing-b without knowing your private guess.
The current conversation remembers how the files were created. Clearing it protects the blind comparison from setup context while keeping your project files available.
In this step, get ready to:
- Start a fresh Claude Code conversation with empty context.
- Request one weaker swing with one evidence-based root cause from measurements.csv.
- Compare the blind diagnosis with your private guess.
Clear the conversation context
The /clear command starts a new conversation without deleting anything from my-swing-coach. Claude can still read measurements.csv when your next message asks for it.
- Start a fresh conversation at the Claude Code prompt in my-swing-coach by entering this command:
/clear
What does this command do?
/clear starts a new conversation with empty context. It leaves your project files untouched.
That clean slate is ready. You should see a fresh Claude Code conversation while the files in my-swing-coach remain available.
Request the blind diagnosis
The fresh conversation now has to base its judgment on the table you provide. Your message also requires one root cause with numbers instead of a vague comparison.
Before you send this message, do you think the measurement differences will point to one clear root cause?
- Ask Claude Code for the blind diagnosis by pasting this message:
Read measurements.csv. These are measurements of my swings (swing-a and swing-b) and a reference swing by a better player. Don't assume which of my swings is better. Which one is weaker compared with the reference? Join the differences into one root cause, and show the numbers behind it.
What does this message do?
- The message limits the evidence to the three rows in measurements.csv.
- The instruction to avoid assumptions preserves the blind comparison between swing-a and swing-b.
- The request for one root cause makes Claude connect related measurement differences into one diagnosis.
You should see Claude name either swing-a or swing-b as the weaker swing. You should also see one root cause supported by numbers from measurements.csv.
Claude hedging between both swings?
Claude may describe differences without choosing one weaker swing. Force a single choice with the follow-up below.
- Require one answer by sending this follow-up:
If you had to pick one, which, and why?
This follow-up keeps the comparison blind while requiring Claude to make a direct choice.
Help me understand why Claude still will not choose one swing.
Compare the diagnosis with your private guess
Your private guess gives you a personal prediction to test against the measurement-based result. Keeping it outside the project means Claude never receives that extra context.
- Compare Claude's chosen weaker swing with the private guess you kept on paper or in your phone's notes.
- Note whether the diagnosis matched on the same paper or in the same phone note.
Checkpoint: Claude has named one weaker swing and one root cause using numbers from measurements.csv. You have noted whether the result matched your private guess.
Your blind diagnosis now has one measurable root cause. Next, you will put the weaker swing beside reference at peak wrist speed and turn that difference into coaching ideas.
Compare and Get Coaching
Your blind diagnosis now identifies one weaker swing. It also gives you one evidence-based root cause with supporting numbers.
A visual comparison turns that diagnosis into measurable coaching by making the largest difference easy to see.
The comparison freezes both clips at peak wrist speed. The coaching request then connects each idea to a number you can re-measure.
In this step, get ready to:
- Create a side-by-side comparison at peak wrist speed.
- Ask Claude Code for three measurable tips plus one drill.
- Open compare.png to verify the largest measured difference.
Create the peak-speed comparison
Matching both clips at peak wrist speed gives the comparison a shared moment. The image can then focus on the largest difference behind the diagnosis.
- Create compare.png in the Claude Code conversation from earlier by pasting this message:
Make compare.png: the frame at peak wrist speed from my weaker swing next to the same moment from the reference, both with skeletons, with the biggest difference written on it in plain words and numbers.
What does this prompt do?
- The prompt uses the weaker swing named in the current conversation.
- Peak wrist speed gives both clips the same measured instant for the comparison.
- The label makes the largest measured difference readable without opening measurements.csv.
You should see Claude create compare.png from the diagnosis in the current conversation. The image uses the diagnosed weaker swing plus reference at peak wrist speed.
That puts the largest measured gap into a picture you can inspect.
Get measurable coaching guidance
The root cause gives each coaching idea a specific target. Linking that target to an existing measurement makes the advice testable after practice.
- Ask Claude for three measurable tips plus one drill by pasting this message:
Coach me. Give me three tips and one drill for the root cause, each tied to a number I can re-measure.
What does this prompt do?
- The root cause keeps the advice focused on evidence from the blind diagnosis.
- Three tips give you separate technique cues tied to the existing measurements.
- One drill gives you a repeatable action for the retest.
You should see three tips plus one drill. Each item points to a measurement from measurements.csv that you can re-measure.
Your diagnosis now has a practice plan with a measurable target.
Treat Claude's tips as coaching ideas. They are not medical or injury advice.
Open and verify the comparison
Opening the finished image checks whether Claude selected matching moments from both clips. It also confirms that the measurement label is readable.
Before you ask Claude to open the image, what difference do you expect the label to highlight?
- Open compare.png by pasting this message:
Open compare.png.
What does this prompt do?
This prompt asks Claude Code to display the image it just created. Opening the file gives you the final visual check.
You should see two skeletons side by side at peak wrist speed. The largest measured difference is labelled in plain words and numbers.
You now have the diagnosis, its evidence, and a measurable next action in one image.
Seeing mismatched moments?
If the two frames show different moments in the swing, ask Claude Code to align them again:
Line them up by peak wrist speed.
This asks Claude to use the same measured event for both clips.
Help me fix mismatched peak-speed frames in the comparison image.
Secret mission
Re-film and Re-measure
Practise the drill from your diagnosis. Then film a fresh retest and measure whether the root-cause number moved toward the reference.
Clean Up Your Resources
Clean Up Your Resources
Everything you created lives inside the local my-swing-coach folder. These files create no ongoing charges, though future Claude Code use counts against your existing plan.
Resources you used:
- The local my-swing-coach folder contains videos, track.py, per-clip landmark CSV files, skeleton videos, measure.py, measurements.csv, and compare.png. The videos folder holds swing-a, swing-b, reference, and swing-after.
Keep everything running
No action is needed. Choose this if you want to repeat the workflow or add more swing clips.
- Leave my-swing-coach unchanged so every clip, measurement, skeleton video, and comparison remains available.
Pause - I'll come back to this later
Close the current session to stop working while preserving every file. Nothing runs in the background after the terminal window closes.
- Close the Terminal window on macOS or the PowerShell window on Windows that is running Claude Code.
- Keep my-swing-coach unchanged so you can continue from the same clips and measurements later.
Delete - I don't want to use this again
Deleting my-swing-coach removes every original clip and generated result in this project. Your private guess remains outside the folder.
- Close the Terminal window on macOS or the PowerShell window on Windows that is running Claude Code.
macOS
- Use Finder to locate my-swing-coach in the place where you created it.
- Use Finder's file deletion control on my-swing-coach.
- Confirm my-swing-coach no longer appears in Finder.
Windows
- Use File Explorer to locate my-swing-coach in the place where you created it.
- Use File Explorer's file deletion control on my-swing-coach.
- Confirm my-swing-coach no longer appears in File Explorer.
Deleting the folder leaves Python 3.15.2, Claude Code, MediaPipe 1.3.0, and OpenCV installed.
Nice Work!
Nice Work!
You made it! Your AI swing coach now turns your own phone footage into tracked skeletons backed by torso-normalized measurements. It also checks whether practice moved the diagnosed root-cause number.
You've learned how to:
- Keep a blind comparison clean with neutral clip names. The private guess stays outside my-swing-coach until Claude Code analyzes measurements.csv after /clear.
- Track 33 pose landmarks through every clip with track.py plus MediaPipe Tasks in VIDEO mode. The resulting skeleton videos show the tracked motion frame by frame.
- Turn landmark data into torso-normalized swing measurements with measure.py. Use the numbers in measurements.csv with compare.png to connect one root cause to three tips plus one drill.
- Secret Mission: Complete a measurable retest with swing-after. Compare its root-cause value with the diagnosed weaker swing plus reference to see whether the number moved.
Ready to quiz yourself?