Agent Skillsn0an/VivaDicta › screenshot

screenshot

GitHub

通过 xcrun simctl 命令捕获 iOS 模拟器截图,支持保存路径报告及基于指令的视觉分析、元素检查或文本提取。

.agents/skills/screenshot/SKILL.md n0an/VivaDicta

Trigger Scenarios

需要获取 iOS 模拟器当前屏幕画面 需要验证 UI 界面显示状态 需要分析截屏内容中的特定元素或文本

Install

npx skills add n0an/VivaDicta --skill screenshot -g -y
More Options

Non-standard path

npx skills add https://github.com/n0an/VivaDicta/tree/main/.agents/skills/screenshot -g -y

Use without installing

npx skills use n0an/VivaDicta@screenshot

指定 Agent (Claude Code)

npx skills add n0an/VivaDicta --skill screenshot -a claude-code -g -y

安装 repo 全部 skill

npx skills add n0an/VivaDicta --all -g -y

预览 repo 内 skill

npx skills add n0an/VivaDicta --list

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

  1. Create screenshots directory if needed:

    mkdir -p llmtemp/screenshots
    
  2. Capture the screenshot:

    TIMESTAMP=$(date +%Y%m%d_%H%M%S)
    xcrun simctl io booted screenshot llmtemp/screenshots/screenshot_${TIMESTAMP}.png
    
  3. Handle the optional argument:

    • If $ARGUMENTS is empty or not provided: Capture and save, then report the saved path
    • If $ARGUMENTS is 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
  4. 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 booted when 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 simctl command - no external dependencies, only Xcode
  • Captures clean framebuffer without simulator bezel
  • PNG format (lossless)

Version History

  • c5601d4 Current 2026-07-25 08:15

Same Skill Collection

.agents/skills/analyze-unrecognized-apps/SKILL.md
.agents/skills/app-container-group/SKILL.md
.agents/skills/app-container/SKILL.md
.agents/skills/asc-aso-audit/SKILL.md
.agents/skills/asc-aso-rankings/SKILL.md
.agents/skills/asc-localize-metadata/SKILL.md
.agents/skills/asc-metadata-sync/SKILL.md
.agents/skills/asc-release-flow/SKILL.md
.agents/skills/asc-whats-new-writer/SKILL.md
.agents/skills/axe-simulator-control/SKILL.md
.agents/skills/coverage-report/SKILL.md
.agents/skills/diagram/SKILL.md
.agents/skills/ios-log-capture/SKILL.md
.agents/skills/ios-simulator-skill/SKILL.md
.agents/skills/krankie-audit/SKILL.md
.agents/skills/krankie-rankings/SKILL.md
.agents/skills/loc-report/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/prcdx/SKILL.md
.agents/skills/release-prepare/SKILL.md
.agents/skills/simulator-screenshot-time/SKILL.md
.agents/skills/spm-build-analysis/SKILL.md
.agents/skills/start-logs-device-structured/SKILL.md
.agents/skills/start-logs-device/SKILL.md
.agents/skills/start-logs/SKILL.md
.agents/skills/stop-logs-device-structured/SKILL.md
.agents/skills/stop-logs-device/SKILL.md
.agents/skills/stop-logs/SKILL.md
.agents/skills/swift-concurrency-pro/SKILL.md
.agents/skills/swift-testing-pro/SKILL.md
.agents/skills/swiftdata-pro/SKILL.md
.agents/skills/swiftui-liquid-glass/SKILL.md
.agents/skills/swiftui-performance-audit/SKILL.md
.agents/skills/swiftui-pro/SKILL.md
.agents/skills/xcode-build-benchmark/SKILL.md
.agents/skills/xcode-build-fixer/SKILL.md
.agents/skills/xcode-build-orchestrator/SKILL.md
.agents/skills/xcode-compilation-analyzer/SKILL.md
.agents/skills/xcode-project-analyzer/SKILL.md
.agents/skills/xcodebuild-testing/SKILL.md
.agents/skills/commit-push/SKILL.md

Metadata

Files
0
Version
fbf9c91
Hash
e6341aa9
Indexed
2026-07-25 08:15

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:17
浙ICP备14020137号-1 $방문자$