Agent Skills › software-mansion/argent › argent-screen-recording

argent-screen-recording

GitHub

通过 argent MCP 工具录制 iOS/Android 模拟器或真机屏幕视频,用于展示交互流程、动画或记录应用行为。

packages/skills/skills/argent-screen-recording/SKILL.md software-mansion/argent

Trigger Scenarios

用户要求录制屏幕 需要捕获应用交互流程 生成演示视频 记录动画效果

Install

npx skills add software-mansion/argent --skill argent-screen-recording -g -y
More Options

Non-standard path

npx skills add https://github.com/software-mansion/argent/tree/main/packages/skills/skills/argent-screen-recording -g -y

Use without installing

npx skills use software-mansion/argent@argent-screen-recording

指定 Agent (Claude Code)

npx skills add software-mansion/argent --skill argent-screen-recording -a claude-code -g -y

安装 repo 全部 skill

npx skills add software-mansion/argent --all -g -y

预览 repo 内 skill

npx skills add software-mansion/argent --list

SKILL.md

Frontmatter
{
    "name": "argent-screen-recording",
    "description": "Record a video of an iOS simulator or Android emulator\/device screen using argent MCP tools. Use when the user asks to record the screen, capture a video of a flow, interaction, or animation, produce a screen recording, or document app behavior as a video clip."
}

screen-recording-start and screen-recording-stop carry the options (timeLimitSeconds, trimStatic, showTouches) and the result fields. One recording per device at a time; different devices can record concurrently.

1. Critical: never leave a recording running

A forgotten recording keeps capturing until its timeLimitSeconds cap fires, holding the session and delaying the video. Use both safety nets:

  1. Set yourself a reminder the moment the recording starts, for the expected end of the interaction. Use whatever your harness provides: a reminder/wakeup or scheduled-task tool if you have one, otherwise a background shell running sleep <expected-seconds> whose completion notification pulls you back. When it fires, call screen-recording-stop. Do not rely on remembering.
  2. Read the tool-result notes. While a recording runs, every argent tool result carries a NOTE: about it. If the note says the recording already ended, still call screen-recording-stop: that is what hands you the file.

2. Workflow

  1. Get the device booted and the app into the state the video should open on (list-devices, launch-app, argent-device-interact).
  2. Call screen-recording-start with udid and a timeLimitSeconds slightly above the expected interaction length.
  3. Set the end-of-recording reminder from §1; this step is not optional.
  4. Drive the interaction (argent-device-interact). Prefer run-sequence for tight multi-step interactions so tool-call latency does not pad the video.
  5. Call screen-recording-stop with the same udid. Check warning (cap-triggered stop, early encoder exit, dropped frame stream, possibly truncated file) and confirm the file has a sane size before presenting it.

Where the file lands. A finished recording is saved durably on the client, even with a remote argent link tool-server: into <project>/.argent/recordings/ (the nearest ancestor of the client's working directory with a .git/package.json/.argent), or ~/.argent/recordings/ outside a project. Change it with argent config set recordings.directory <dir> (--scope project for a per-repo choice). Mention the path to the user, and that the file is untracked: add it to .gitignore or clean it up if it shouldn't be committed.

3. Platform notes and limits

  • Recordable: iOS simulators (local and remote remote:), Android emulators and physical Android devices. Unsupported: physical iPhones, tvOS simulators, Chromium apps, Vega/Fire TV and HarmonyOS. For a still frame use screenshot; for a replayable interaction script use argent-create-e2e.
  • One size per video: the video keeps the size of the screen at the start; a later size change is letterboxed. On a foldable simulator, start recording on the panel you need at full size.
  • Remote (remote:) simulators: the video keeps the screen's portrait orientation, so a device in landscape plays sideways.
  • Android: secure screens (DRM, some password fields) come out black.
  • Watermark: a faint Argent logo is stamped bottom-left. Turn it off with argent disable video-watermark; the flag is read when a recording starts.

Version History

  • b965c94 Current 2026-11-07 15:13
  • 617db8d 2026-11-02 18:48

    新增支持远程 iOS 模拟器屏幕录制,解决此前因流地址不可用导致的失败问题。

  • f0e04a6 2026-10-19 02:09

    将工具描述中的破折号替换为标准标点符号,优化文本格式。

  • 133b1df 2026-09-27 19:33

    新增支持可折叠 iOS 模拟器(如 iPhone Duo),使录制能跟随面板变化并正确处理横竖屏坐标。

  • 3c1f2ae 2026-09-22 07:44
  • a6422a3 2026-08-02 20:45

    新增 recordings.directory 配置项,允许用户自定义屏幕录制文件的保存路径,替代默认的项目内固定目录。

  • a0460ee 2026-07-24 11:28

Same Skill Collection

packages/skills/skills/argent-android-emulator-setup/SKILL.md
packages/skills/skills/argent-create-e2e/SKILL.md
packages/skills/skills/argent-create-flow/SKILL.md
packages/skills/skills/argent-device-interact/SKILL.md
packages/skills/skills/argent-ios-device-interact/SKILL.md
packages/skills/skills/argent-ios-device-setup/SKILL.md
packages/skills/skills/argent-ios-simulator-setup/SKILL.md
packages/skills/skills/argent-lens/SKILL.md
packages/skills/skills/argent-metro-debugger/SKILL.md
packages/skills/skills/argent-native-profiler/SKILL.md
packages/skills/skills/argent-react-native-app-workflow/SKILL.md
packages/skills/skills/argent-react-native-optimization/SKILL.md
packages/skills/skills/argent-react-native-profiler/SKILL.md
packages/skills/skills/argent-screenshot-diff/SKILL.md
packages/skills/skills/argent-test-ui-flow/SKILL.md
packages/skills/skills/argent-tv-interact/SKILL.md
packages/skills/skills/argent-qa-e2e/SKILL.md
packages/skills/skills/argent-qa-flows/SKILL.md
packages/skills/skills/argent-settings-permissions/SKILL.md

Metadata

Files
0
Version
b965c94
Hash
98fd8a78
Indexed
2026-07-24 11:28

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-07 19:33
浙ICP备14020137号-1