Logo Tennis Video Coach Report

Tennis Video Coach Report

Cộng đồng
Vivixiao980
tennis-video-coach-report

Tạo báo cáo phân tích video luyện tập tennis có thể chia sẻ. Dùng khi người dùng cung cấp tệp video tennis hoặc khung hình chính và yêu cầu huấn luyện tennis bằng AI, nhận xét kỹ thuật phù hợp cho người mới, tự động chia đoạn các loạt đánh, xem lại/tải xuống loạt đánh, ghép các loạt đánh yêu thích thành một video, lớp phủ bộ xương/tư thế, clip cú đánh quay chậm, bảng ảnh liên hệ, báo cáo HTML, báo cáo PNG cho thiết bị di động hoặc báo cáo PDF. Kỹ năng công khai này chỉ tạo artifact độc lập trên máy; không cập nhật nhật ký riêng tư, tài liệu đám mây, tài liệu từ xa hoặc sổ theo dõi huấn luyện.

Add to TypingMind

Tổng quan

Nhà phát hànhVivixiao980
Kho mãtennis-video-coach-report
Tên kỹ năngtennis-video-coach-report
Sao
28
Bản fork
6
Tệp đi kèm
11
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 11 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Vivixiao980 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Tennis Video Coach Report trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Tennis Video Coach Report trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Tennis Video Coach Report ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Tennis Video Coach Report với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Tennis Video Coach Report làm được gì?

Tạo báo cáo phân tích video luyện tập tennis có thể chia sẻ. Dùng khi người dùng cung cấp tệp video tennis hoặc khung hình chính và yêu cầu huấn luyện tennis bằng AI, nhận xét kỹ thuật phù hợp cho người mới, tự động chia đoạn các loạt đánh, xem lại/tải xuống loạt đánh, ghép các loạt đánh yêu thích thành một video, lớp phủ bộ xương/tư thế, clip cú đánh quay chậm, bảng ảnh liên hệ, báo cáo HTML, báo cáo PNG cho thiết bị di động hoặc báo cáo PDF. Kỹ năng công khai này chỉ tạo artifact độc lập trên máy; không cập nhật nhật ký riêng tư, tài liệu đám mây, tài liệu từ xa hoặc sổ theo dõi huấn luyện.

Vì sao nên dùng Tennis Video Coach Report trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Tennis Video Coach Report là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Tennis Video Coach Report trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Vivixiao980/tennis-video-coach-report/tree/main/tennis-video-coach-report. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Tennis Video Coach Report?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Tennis Video Coach Report với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Tennis Video Coach Report với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Tennis Video Coach Report có miễn phí không?

Có. Kỹ năng này được Vivixiao980 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇