Logo Screencast Recorder

Screencast Recorder

Tổ chức
OpenLinkSoftware
screencast-recorder

Record screencast videos of web application interactions using shot-scraper video. Use when the user says: record a screencast, record a video demo, make a walkthrough of, record this session, record what you just did, add voice-over narration, or mix narration into a screencast. Handles mTLS-authenticated endpoints (linkeddata.uriburner.com:5443), local dev server demos, after-the-fact recording from curl session history, optional text-to-speech MP3 generation, dual-format storyboards (YAML/RDF Turtle), and DEFAULT distribution HTML that MUST embed the primary MP4 via HTML5 video (never download-only). Default narration voice: Grok/xAI leo (OpenAI onyx and offline Piper are alternatives).

Tổng quan

Nhà phát hànhOpenLinkSoftware
Kho mãai-agent-skills
Tên kỹ năngscreencast-recorder
Sao
42
Bản fork
10
Tệp đi kèm
14
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 là Markdown thuần túy, không phải 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ộ.

  • 14 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 OpenLinkSoftware công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Screencast Recorder 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/screencast-recorder
  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/OpenLinkSoftware/ai-agent-skills.git /tmp/ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agent-skills/screencast-recorder .claude/skills/screencast-recorder
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 Screencast Recorder 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ự tải Screencast Recorder 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 Screencast Recorder không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Record WebM/MP4 screencasts of browser interactions using shot-scraper video. Accepts YAML storyboards natively or RDF Turtle via the ttl-to-yaml.py converter.

Prerequisite Check

Before recording, verify shot-scraper is available:

bash
command -v shot-scraper >/dev/null 2>&1 || uv tool install shot-scraper

Install Playwright browsers if missing:

bash
shot-scraper install 2>/dev/null || python3 -m playwright install chromium

Output Convention

Recordings go to {LLM_ROOT}/{model}/screencasts/ where {LLM_ROOT} is the canonical LLM root from preferences artifact-routing rules ({LLM_ROOT}), and {model} is the model-specific output directory (e.g., Big Pickle, DeepSeek, Claude Generated). Use descriptive filenames: {YYYY-MM-DD}-{topic}.mp4 (with companion .webm).

When recording, derive the path at runtime by looking up the model's output path per agent-rdf-memory/howto/artifact-routing.ttl and appending screencasts/.

Workflow

Step 1: Determine Mode (disambiguate automatically)

Mode A — curl → screencast: User explored resources via mtls-curl commands. Parse the conversation for curl URLs, present the extracted URL list to the user.

Mode B — direct browser: URLs were discussed directly (not via curl). Present them as-is.

If neither is clear, ask: "What URLs or resources should the screencast show?"

Step 2: Elicit Scene List

Present a curated list to the user with numbered scenes:

"I found these URLs from the session:

  1. {url-1}
  2. {url-2}
  3. {url-3}

Want all of them? Adjust order? Add scene names? Set pauses between scenes?"

Capture user preferences:

  • Scene ordering — reorder, drop, or add scenes
  • Scene names — labels for each scene (shown in progress output)
  • Pauses — how long to pause on each scene (default 2s for readability)
  • Cursor — visible cursor with click rings enabled by default
  • Viewport — default 1440x900 (wider for SPARQL result pages)

Step 3: Build Storyboard

Construct the storyboard.yml. The user may also provide a storyboard.ttl — in that case, run:

bash
python3 scripts/ttl-to-yaml.py storyboard.ttl -o storyboard.yml

Core storyboard structure (hand-authored):

yaml
output: {SCREENCAST_DIR}/{filename}.webm
url: {starting-url}
viewport:
  width: 1440
  height: 900
cursor:
  visible: true
  clicks: true
  color: "#1a73e8"
wait_for: body

scenes:
- name: "{scene-1-name}"
  do:
  - pause: 2
- name: "{scene-2-name}"
  open: "{scene-2-url}"
  wait_for: body
  do:
  - pause: 2

Step 4: Handle Auth

Detect mTLS-requiring endpoints (port :5443, host linkeddata.uriburner.com).

On macOS, Chromium picks up client certificates from the Keychain automatically — no special config needed.

For self-signed server certs on port 5443, add browser args:

bash
shot-scraper video storyboard.yml --mp4 --browser-arg --ignore-certificate-errors

For other auth mechanisms, use:

  • --auth : cookie-based auth JSON file (see shot-scraper auth docs)
  • --auth-username / --auth-password : HTTP Basic auth

Step 5: Record

bash
shot-scraper video storyboard.yml --mp4 [--browser-arg --ignore-certificate-errors]

Always include --mp4 to produce both WebM and MP4 outputs.

After recording, verify both files exist.

Step 6: Deliver recording files

Report to the user:

"Screencast recorded: MP4: {SCREENCAST_DIR}/{filename}.mp4 WebM: {SCREENCAST_DIR}/{filename}.webm"

Step 6b: Distribution HTML — embed the MP4 (DEFAULT, BLOCKING)

Default behavior: every screencast bundle that includes a distributable presentation page MUST embed the primary MP4 with an in-document HTML5 <video> player. Download-only pages fail delivery.

Required pattern (bundle-relative paths; prefer narrated mux when present):

html
<div class="player">
  <video id="screencast-player" controls playsinline
         poster="poster.jpg" preload="metadata"
         width="1440" height="900"
         aria-label="{description}">
    <source src="{filename}-with-voiceover.mp4" type="video/mp4" />
    <source src="{filename}.mp4" type="video/mp4" />
    <source src="{filename}.webm" type="video/webm" />
    <p>Your browser does not support embedded HTML5 video.
       <a href="{filename}-with-voiceover.mp4">Download the MP4</a>.</p>
  </video>
</div>

Also required on the same page:

  • Filename: {model-display-id}-{topic-slug}-presentation.html (not bare presentation.html)
  • Bundle path: {model-root}/screencasts/{bundle}/
  • POSH rel="enclosure" + JSON-LD VideoObject.contentUrl matching the primary embedded file
  • Hero/footer on-behalf-of attribution

Gate contract (preferences): step-screencastEmbedMp4 (pos 156), companion howto agent-rdf-memory/howto/screencast-distribution-artifacts.ttl (:stepEmbedPrimaryMp4).

Validation before handoff:

bash
# Must find an embedded player sourcing the primary MP4
grep -E '<video[^>]*controls' "{presentation}.html"
grep -E 'src="[^"]+\.mp4"' "{presentation}.html"
# Relative media files must exist next to the HTML
test -f "{SCREENCAST_DIR}/{filename}-with-voiceover.mp4" || test -f "{SCREENCAST_DIR}/{filename}.mp4"

Optional: Voice-over Narration

When the user wants voice-over narration, generate a standalone MP3 first and ask the user to approve the voice quality before modifying the screencast.

Default: Grok/xAI voice leo

The default narration voice is leo, through the Grok/xAI text-to-speech endpoint https://api.x.ai/v1/tts (set 2026-10-07, preferences.ttl Step 323). Use another voice only when the user names one in that session. rex is the fallback if leo is unavailable; say so if you use it.

Use scripts/screencast-grok-voiceover.py. For a whole screencast, write one text file per scene (narration-scenes/00-intro.txt, 01-...txt) and generate a clip per scene, a timing plan, and a standalone voice track in one go:

bash
python3 scripts/screencast-grok-voiceover.py \
  --scenes-dir narration-scenes --out-dir vo \
  --plan vo-plan.json --track "{SCREENCAST_DIR}/{filename}-voiceover.mp3"

For a single narration file: --text-file narration.txt --output "{SCREENCAST_DIR}/{filename}-voiceover.mp3".

  • Key: the script reads XAI_API_KEY from the environment, and if that is unset it reads the single export XAI_API_KEY= line from the user's ~/.zshrc (a non-interactive shell does not load that file). Never print, log, store, or write the key anywhere, and send it only to api.x.ai.
  • Sandboxed shells: api.x.ai may need to be allowed for the command to reach the network.
  • Scene timing: each scene lasts its clip plus --tail seconds (default 1.0), written to the plan. Re-time the recording to those lengths rather than freezing the last frame when the visual is an animation; freeze the last frame only when the video is a fixed recording that cannot be re-timed.
  • Pronunciation: apply the phonetic spellings in preferences.ttl Step 175 and howto/screencast-recording.ttl (for example LOAC is pronounced "lock"; ACP, UCP and MPP are spoken letter by letter).
  • Record the voice in a TTS.txt beside the clips, for example: TTS: Grok/xAI api.x.ai/v1/tts voice=leo text_normalization=true.

The voice-quality approval gate below still applies.

Alternative: OpenAI TTS

Use scripts/screencast-openai-voiceover.py only when the user asks for an OpenAI voice or the Grok endpoint is unreachable:

bash
python3 scripts/screencast-openai-voiceover.py \
  --text-file narration.txt \
  --output "{SCREENCAST_DIR}/{filename}-voiceover.mp3" \
  --voice onyx \
  --instructions "Speak as a calm, confident technical narrator. Keep the pace measured and clear."

For OpenAI narration, onyx is the male voice; use coral (or another OpenAI TTS voice) only when the user requests it. This script requires OPENAI_API_KEY and the Python openai package. If local Python dependencies are broken, tell the user clearly and either repair the environment with approval or ask them to provide an externally generated MP3.

Fallback: local/offline narration via Piper

If the cloud TTS options (Grok/xAI, then OpenAI) are unreachable (no API key, out of quota, network down) and the user wants to proceed without waiting, offer scripts/screencast-piper-voiceover.py as a local, offline alternative. It is an optional dependency -- nothing installs at skill-load time. The script installs piper-tts (pip) and downloads the requested voice model (one-time, ~50-120MB depending on quality tier) only when actually run, and only if not already cached under ~/.cache/piper-voices/.

bash
python3 scripts/screencast-piper-voiceover.py \
  --text-file narration.txt \
  --output "{SCREENCAST_DIR}/{filename}-voiceover.mp3" \
  --voice en_US-ryan-high

Default voice for male narration is en_US-ryan-high (highest quality tier). Other male options: en_US-norman-medium, en_US-bryce-medium, en_US-hfc_male-medium, en_GB-alan-medium, en_GB-northern_english_male-medium. Full voice list: https://huggingface.co/rhasspy/piper-voices/tree/main/en

Known limitation, state this to the user before using it: Piper has no style/instructions prompt -- it is fixed-voice, fixed-prosody synthesis. There is no way to ask for "steady, unhurried power" or any other delivery style the way the OpenAI path's --instructions allows. The script's defaults (--length-scale 1.05, --noise-scale 0.5, --noise-w-scale 0.6, all tuned down/up from Piper's own stock defaults of 1.0/0.667/0.8) are the closest numeric PROXY for a steady, measured delivery -- flatter variation and a touch slower pace -- but this is an approximation, not real style control. It cannot add emphasis, warmth, urgency, or any other directed quality; the voice choice itself carries most of the tone. If the user needs precise, describable style control, OpenAI TTS (which accepts an instructions prompt) or another cloud provider remains the better fit -- Piper is for when a narration is needed and no cloud TTS is reachable, not a drop-in style-equivalent replacement.

The upstream project (OHF-Voice/piper1-gpl) is GPL-3.0 licensed. That is not a practical concern for local, personal use of the installed tool, but do not bundle/redistribute the package or voice models as part of a shipped product without checking license compatibility first.

After the user approves the MP3, mux it into the MP4 while preserving captions:

bash
ffmpeg -y \
  -i "{SCREENCAST_DIR}/{filename}.mp4" \
  -i "{SCREENCAST_DIR}/{filename}-voiceover.mp3" \
  -map 0:v -map 1:a -map 0:s? \
  -c:v copy -c:a aac -b:a 160k -c:s copy \
  -shortest -movflags +faststart \
  "{SCREENCAST_DIR}/{filename}-with-voiceover.mp4"

Verify the output with ffprobe and keep the original silent MP4 unless the user explicitly asks to replace it.

After muxing, the distribution HTML <video> primary <source> MUST point at {filename}-with-voiceover.mp4.

Step 7: Log (Post-Recording)

Generate an RDF Turtle log of the recording session and append to agent-rdf-memory/:

bash
python3 scripts/yaml-to-ttl.py storyboard.yml -o {SCREENCAST_DIR}/{filename}.log.ttl

This produces a queryable record of what was recorded, when, and which URLs were visited.

Dual-Format Storyboard Support

The skill accepts storyboards in two formats:

YAML (Native)

Standard storyboard.yml consumed directly by shot-scraper video. See references/storyboard-schema.md for the full schema. See templates/ for ready-to-use starter templates.

RDF Turtle

A storyboard.ttl using schema.org + the screencast ontology. See references/screencast-ontology.ttl for the term definitions. See templates/*.ttl for starter templates.

Convert TTL → YAML before recording:

bash
python3 scripts/ttl-to-yaml.py storyboard.ttl -o storyboard.yml
shot-scraper video storyboard.yml --mp4

Post-Recording Log (Auto-generated RDF)

After recording, generate a .log.ttl file with recording metadata. This can be loaded into SPARQL-queriable memory or directly into agent-rdf-memory/.

HTML Report Mode (no-webapp demos)

When no browser URL exists (e.g., a CLI-only session), generate a self-contained HTML summary page, serve it locally via Python, and record a walkthrough of the report:

yaml
python: |
  from pathlib import Path
  html = "<html><body><h1>Session Summary</h1>..."
  Path("/tmp/screencast-report.html").write_text(html)
server: python3 -m http.server 8765 --directory /tmp
url: http://localhost:8765/screencast-report.html

Elicitation Best Practices

  • Present scenes as a numbered list with URLs visible
  • Ask about pauses: "How long on each scene? Default 2s?"
  • Ask about cursor: "Visible cursor with click rings?"
  • For long/multi-URL sessions, suggest grouping by purpose rather than URL count
  • Always confirm before recording — recording takes real time (pauses add up)

References

  • storyboard-schema.md — complete YAML syntax reference
  • common-patterns.md — reusable scene patterns (YAML + TTL)
  • screencast-ontology.ttl — RDF ontology for storyboard Turtle representation

Scripts

  • scripts/ensure-shot-scraper.sh — install prerequisites
  • scripts/ttl-to-yaml.py — convert RDF Turtle → YAML storyboard
  • scripts/yaml-to-ttl.py — convert YAML storyboard → RDF Turtle log

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

Kỹ năng AI Screencast Recorder làm được gì?

Record screencast videos of web application interactions using shot-scraper video. Use when the user says: record a screencast, record a video demo, make a walkthrough of, record this session, record what you just did, add voice-over narration, or mix narration into a screencast. Handles mTLS-authenticated endpoints (linkeddata.uriburner.com:5443), local dev server demos, after-the-fact recording from curl session history, optional text-to-speech MP3 generation, dual-format storyboards (YAML/RDF Turtle), and DEFAULT distribution HTML that MUST embed the primary MP4 via HTML5 video (never do...

Vì sao nên dùng Screencast Recorder 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. Screencast Recorder 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 Screencast Recorder trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/screencast-recorder. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành 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 Screencast Recorder?

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.

Bạn có thể dùng Screencast Recorder 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 Screencast Recorder 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 Screencast Recorder có miễn phí không?

Có. Kỹ năng này được OpenLinkSoftware 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇