Logo: Tennis Video Coach Report

Tennis Video Coach Report

Communautéit
Vivixiao980
tennis-video-coach-report

Erstellt tennisanalytik-Berichter vu Trainingsvideoen, déi sech deele loossen. Benotzt dëse Skill, wann Dir Tennisvideoen oder Schlësselframes liwwert an no KI-Tenniscoaching, enger Technikbewäertung fir Ufänger, automatescher Rallye-Segmentéierung, der Iwwerpréiwung oder dem Download vu Rallyen, dem Zesummesetze vu Liiblingsrallyen zu engem Video, Skelett-/Pose-Overlays, Slow-Motion-Schwongclips, Kontaktblieder, HTML-Berichter, mobilen PNG-Berichter oder PDF-Berichter frot. Dësen ëffentleche Skill generéiert nëmme lokal Artefakter, déi fir sech eleng stinn; en aktualiséiert keng privat Tagebicher, Cloud-Dokumenter, extern Dokumenter oder Trainingsjournaler.

Add to TypingMind

Iwwersiicht

EditeurVivixiao980
Repositorytennis-video-coach-report
Skill-Nummtennis-video-coach-report
Stären
28
Forks
6
Matgeliwwert Dateien
11
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 11 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vivixiao980 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Tennis Video Coach Report an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Tennis Video Coach Report an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Tennis Video Coach Report automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Tennis Video Coach Report net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Tennis Video Coach Report?

Erstellt tennisanalytik-Berichter vu Trainingsvideoen, déi sech deele loossen. Benotzt dëse Skill, wann Dir Tennisvideoen oder Schlësselframes liwwert an no KI-Tenniscoaching, enger Technikbewäertung fir Ufänger, automatescher Rallye-Segmentéierung, der Iwwerpréiwung oder dem Download vu Rallyen, dem Zesummesetze vu Liiblingsrallyen zu engem Video, Skelett-/Pose-Overlays, Slow-Motion-Schwongclips, Kontaktblieder, HTML-Berichter, mobilen PNG-Berichter oder PDF-Berichter frot. Dësen ëffentleche Skill generéiert nëmme lokal Artefakter, déi fir sech eleng stinn; en aktualiséiert keng privat Tag...

Firwat Tennis Video Coach Report op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Tennis Video Coach Report besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Tennis Video Coach Report an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Tennis Video Coach Report benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Tennis Video Coach Report benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Tennis Video Coach Report domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Tennis Video Coach Report gratis?

Jo. Vivixiao980 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇