Agent Skills
› n0an/VivaDicta
› screenshot
screenshot
GitHub通过 xcrun simctl 命令捕获 iOS 模拟器截图,支持保存路径报告及基于指令的视觉分析、元素检查或文本提取。
Trigger Scenarios
需要获取 iOS 模拟器当前屏幕画面
需要验证 UI 界面显示状态
需要分析截屏内容中的特定元素或文本
Install
npx skills add n0an/VivaDicta --skill screenshot -g -y
SKILL.md
Frontmatter
{
"name": "screenshot",
"description": "Capture screenshots from iOS Simulator using native xcrun simctl command for documentation, debugging, and visual verification. Optionally analyze the screenshot.",
"disable-model-invocation": true
}
screenshot
You are given the following context: $ARGUMENTS
Task
Capture a screenshot of the iOS Simulator using xcrun simctl and optionally analyze it based on user instructions.
Instructions
-
Create screenshots directory if needed:
mkdir -p llmtemp/screenshots -
Capture the screenshot:
TIMESTAMP=$(date +%Y%m%d_%H%M%S) xcrun simctl io booted screenshot llmtemp/screenshots/screenshot_${TIMESTAMP}.png -
Handle the optional argument:
- If
$ARGUMENTSis empty or not provided: Capture and save, then report the saved path - If
$ARGUMENTSis provided: After saving, read the screenshot and follow the requested instruction
Common argument patterns:
- "take a look" / "analyze" / "what's on screen" - Read and describe what's visible
- "check for [element]" - Look for specific UI elements
- "is there [something]" - Verify presence of specific content
- "extract text" - Extract and list all visible text
- Any other instruction - Follow it after reading the screenshot
- If
-
Report results: Always mention the saved screenshot path. If analyzed, provide findings.
Example Usage
screenshot # Simple capture
screenshot take a look # Capture and analyze
screenshot is there a login button? # Check for specific element
screenshot extract all visible text # Extract text
Advanced Options
For advanced use cases, load references/advanced.md.
- Specific simulator: Use UDID instead of
bootedwhen multiple simulators are running - Image format:
--type=png(default),--type=tiff - Specific display:
--display=1(main),--display=2(secondary, e.g. Apple Watch) - Mask sensitive data:
--mask=black(iOS 15+)
Troubleshooting
- "No such device: booted": No simulator running. Check with
xcrun simctl list devices | grep Booted - Blank/black screenshot: Wait for content to load, ensure simulator is not minimized
- Wrong simulator captured: Use specific UDID instead of
booted
Technical Notes
- Screenshots saved to
llmtemp/screenshots(gitignored) - Filenames include timestamps to prevent overwrites
- Native
xcrun simctlcommand - no external dependencies, only Xcode - Captures clean framebuffer without simulator bezel
- PNG format (lossless)
Version History
- c5601d4 Current 2026-07-25 08:15


