Tennis Video Coach Report logo

Tennis Video Coach Report

Community
Vivixiao980
tennis-video-coach-report

Create shareable tennis practice video analysis reports. Use when a user provides tennis video files or key frames and asks for AI tennis coaching, beginner-friendly technique review, automatic rally segmentation, rally review/download, compiling favorite rallies into one video, skeleton/pose overlays, slow-motion swing clips, contact sheets, HTML reports, mobile PNG reports, or PDF reports. This public skill generates standalone local artifacts only; it does not update private diaries, cloud documents, remote docs, or training ledgers.

Add to TypingMind

Overview

PublisherVivixiao980
Repositorytennis-video-coach-report
Skill nametennis-video-coach-report
Stars
28
Forks
6
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Vivixiao980 on GitHub. Read the source before you install it.

Installation

Install the Tennis Video Coach Report AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Vivixiao980/tennis-video-coach-report.git /tmp/tennis-video-coach-report
mkdir -p .claude/skills
cp -r /tmp/tennis-video-coach-report/tennis-video-coach-report .claude/skills/tennis-video-coach-report
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tennis Video Coach Report in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Tennis Video Coach Report on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Tennis Video Coach Report is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Tennis Video Coach Report

Overview

Turn a tennis practice video into a portable coaching package: rally clips, a rally review viewer, extracted frames, contact sheets, selected key moments, optional MediaPipe skeleton overlays, early/middle/late slow-motion clips, and a mobile-friendly HTML/PNG/PDF report.

This is the public/shareable version. Keep all outputs in the requested output folder or a new local run folder. Do not write to private diary systems, cloud documents, or user-specific paths unless the user explicitly asks.

Dependencies

Required command-line tools: ffmpeg, ffprobe.

Python packages used by scripts: see references/requirements.txt.

When dependencies are missing, prefer an isolated environment:

bash
python3 -m venv .venv
.venv/bin/python -m pip install -r <skill-root>/references/requirements.txt
.venv/bin/python -m playwright install chromium

Use the active Python if the packages already exist. Do not install globally unless the user asks.

Workflow

  1. Resolve the video file.

    • Prefer a path the user provided.
    • If the user says the video was uploaded but gives no path, search recent .mov, .mp4, .m4v files in ~/Downloads, ~/Desktop, and the current workspace.
    • Keep the original video untouched.
  2. Create a run folder.

    • Default: <cwd>/tennis-video-analysis/<YYYY-MM-DD>-<video-stem>-<YYYYMMDD-HHMMSS>/.
    • Store all derived files inside that folder: frames, contact sheets, pose overlays, clips, analysis.json, and report exports.
  3. Extract frames and contact sheets.

    • Run:
      bash
      python3 <skill-root>/scripts/extract_tennis_frames.py <video> --outdir <run-folder>
    • Review contact_sheets/ and candidate_frames/.
    • Pick 4-8 evidence moments: cover, ready/preparation, contact or near-contact, follow-through, main issue, and one positive frame.
    • Do not write a strong diagnosis before choosing the exact frame or clip that supports it.
  4. Split long videos into candidate rallies when requested.

    • Use this when the user has long continuous footage and wants to review rallies, save clips, or build a highlight video.
    • Choose a review mode:
      • --mode auto: default. Detects whether the footage looks like dense shots, practice chunks, or real rallies.
      • --mode shot: short 2-6 second clips for checking individual swings.
      • --mode practice: grouped practice chunks for coach feeding, ball-machine sessions, and repeated drills.
      • --mode rally: longer active-play intervals for true point/rally review.
    • Run:
      bash
      python3 <skill-root>/scripts/split_rallies.py <video> --outdir <run-folder>/rally_review --mode auto
    • If the user wants two browsing styles, generate both:
      bash
      python3 <skill-root>/scripts/split_rallies.py <video> --outdir <run-folder>/rally_review_shots --mode shot
      python3 <skill-root>/scripts/split_rallies.py <video> --outdir <run-folder>/rally_review_practice --mode practice
    • If the camera includes irrelevant motion outside the court, use a normalized crop:
      bash
      python3 <skill-root>/scripts/split_rallies.py <video> --outdir <run-folder>/rally_review --crop 0.05,0.20,0.95,0.95
    • Open rally_review/rally_viewer.html. The viewer is Chinese-first and supports favorites, playback speed buttons, and individual clip downloads.
    • If segmentation is too strict or too loose, rerun with --sensitivity or --threshold.
    • Treat automatic rally splits as candidates. Ask the user to confirm or name favorite IDs before compiling.
  5. Compile favorite rallies when the user chooses clips.

    • Run:
      bash
      python3 <skill-root>/scripts/compile_rallies.py <run-folder>/rally_review/rally_index.json --ids 1,3,5 --out selected-rallies.mp4
    • Preserve the user's chosen order when provided.
    • If stream-copy concat fails, the script falls back to re-encoding.
  6. Add skeleton overlays when useful.

    • Use skeletons for visible full-body or half-body frames. Prefer a frame where the player is not heavily occluded.
    • If multiple people are visible, crop around the player:
      bash
      python3 <skill-root>/scripts/pose_overlay.py <key-frame.jpg> --outdir <run-folder>/generated_assets --crop x1,y1,x2,y2 --timestamp "38.50s" --title "Pose skeleton demo"
    • The script writes full-frame overlay, crop overlay, comparison image, and JSON metadata.
    • Put the resulting paths in analysis.json under pose_analysis.
  7. Create slow-motion phase clips when requested or useful.

    • Use early/middle/late representative swings, preferably selected from contact sheets rather than raw thirds.
    • Run:
      bash
      python3 <skill-root>/scripts/make_swing_clips.py <video> --outdir <run-folder>/swing_clips \
        --event "early|31.75|Early|issue note|next cue" \
        --event "middle|147.25|Middle|issue note|next cue" \
        --event "late|280.75|Late|issue note|next cue"
    • Merge swing_clips/swing_clips.json phase paths into analysis.json.
  8. Write analysis.json.

    • Follow references/report-schema.md.
    • Read references/analysis-checklist.md before writing coaching claims.
    • Use plain coaching language. For beginners, choose one primary bottleneck and at most two secondary issues.
    • Include:
      • title, date, player, video metadata, confidence
      • one-liner and main focus
      • coach summary
      • capture quality
      • optional pose_analysis
      • phase review
      • highlights
      • issues
      • next practice
      • training prescription
  9. Render the report.

    • Run:
      bash
      python3 <skill-root>/scripts/render_tennis_report.py <run-folder>/analysis.json --outdir <run-folder>/report --pdf --png
    • If Playwright is unavailable, still deliver HTML and explain that PDF/PNG export was skipped.

Pose Analysis Guidance

Skeleton overlays are good evidence for:

  • shoulder/hip orientation during preparation
  • elbow/wrist distance from the body
  • whether the player is cramped at contact
  • knee bend and lower-body support
  • whether the player stands up too early
  • finish position and follow-through completeness
  • long-term comparison of the same movement pattern

Skeleton overlays are not enough for:

  • exact racket face angle
  • exact contact moment
  • ball speed, spin, or trajectory
  • precise 3D hip/shoulder rotation
  • injury or medical diagnosis

State uncertainty when the player is small, blurred, occluded, or partly outside the frame. Treat pose output as an evidence layer, not the whole analysis.

Rally Segmentation Guidance

The rally splitter uses motion changes to find candidate active-play intervals. It is useful for quickly reviewing long videos, but it is not a perfect tennis rules engine.

Good uses:

  • isolate likely rally clips from long continuous footage
  • review each clip at 0.5x, 0.75x, 1x, 1.25x, 1.5x, or 2x speed
  • download individual rallies
  • favorite clips and compile a highlight reel
  • hand off chosen rally IDs into deeper technical analysis

Mode guidance:

  • shot mode is best when the user wants one swing or one ball at a time.
  • practice mode is best for lessons, coach feeding, and ball-machine sessions where several shots belong together.
  • rally mode is best for match play or true point construction.
  • auto mode should be the default, but keep a manual override available because camera movement, ball pickup, or coach movement can confuse motion-only detection.

Limitations:

  • false positives can happen during camera movement, ball pickup, or coach movement
  • false negatives can happen when the player is small or motion is subtle
  • one real rally can be split into two if there is a long pause in the middle
  • two nearby rallies can merge if the between-rally pause is short

Prefer a manual review step before final compilation. For important videos, do not delete the original long video or the unselected candidate clips.

Output Standard

Deliver these files when feasible:

  • rally_review/rally_index.json when rally splitting is requested
  • rally_review/rally_viewer.html
  • rally_review/rallies/*.mp4
  • selected-rallies.mp4 when favorite rallies are compiled
  • metadata.json
  • frame_index.json
  • contact_sheets/*.jpg
  • candidate_frames/*.jpg
  • generated_assets/*pose*.jpg when pose is enabled
  • swing_clips/*/swing_slow_annotated.mp4 when slow motion is enabled
  • swing_clips/*/freeze_annotated.jpg
  • analysis.json
  • report/index.html
  • report/tennis-report-mobile.png
  • report/tennis-report.pdf

In the final response, link the HTML report, PNG, PDF, and 2-4 representative visual assets using absolute paths.

Boundaries

  • Do not update user-specific training ledgers, private cloud folders, docs, Notion, Google Drive, or any remote destination.
  • Do not include private user names, paths, API tokens, or document IDs in this public skill.
  • Do not overdiagnose. One actionable correction beats a long fault list.
  • Do not shame the player. Use concrete, friendly coaching language.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Tennis Video Coach Report AI skill do?

Create shareable tennis practice video analysis reports. Use when a user provides tennis video files or key frames and asks for AI tennis coaching, beginner-friendly technique review, automatic rally segmentation, rally review/download, compiling favorite rallies into one video, skeleton/pose overlays, slow-motion swing clips, contact sheets, HTML reports, mobile PNG reports, or PDF reports. This public skill generates standalone local artifacts only; it does not update private diaries, cloud documents, remote docs, or training ledgers.

Why use Tennis Video Coach Report on TypingMind?

Because you install it once and use it with any model. Tennis Video Coach Report is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Tennis Video Coach Report in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Tennis Video Coach Report?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Tennis Video Coach Report?

As many as you like. As long as a model supports skills, you can use Tennis Video Coach Report with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Tennis Video Coach Report AI skill free?

Yes. It is published on GitHub by Vivixiao980 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇