AgentSkillsCN

visual-analysis

完成完整的视觉分析流程——自动截屏并转换为PNG格式,辅以AI视觉分析。可用于UX评审、冻结帧检测与视觉验证。

SKILL.md
--- frontmatter
name: visual-analysis
description: Complete visual analysis workflow - screenshot capture with automatic PNG conversion, AI vision analysis. Use for UX review, freeze detection, and visual verification.
argument-hint: "[screen...] [--analyze] [--analysis-type quick|standard|freeze]"
allowed-tools: Bash, Glob, Grep, Read

Visual Analysis Skill

Quick Start

bash
source venv/bin/activate
CAPTURE_TUI="PYTHONPATH=.claude/skills/visual-analysis python -m tui_screenshot_capture"

# Capture with analysis
$CAPTURE_TUI capture <screen> --analyze --charts-path ../web-helm-repository

# Then read screenshot natively (Claude Code is multimodal)
Read(file_path="/tmp/screenshots/<screen>/<screen>-010s.png")

MANDATORY: --charts-path ../web-helm-repository and --id for organized output.

Analysis Types

TypePurpose
quickFast render check (5s)
standardNormal check with expected elements (10s)
dataData loading verification (10s)
freezeDetect stuck/frozen states (30,60,90s)
layoutComponent sizing and proportions (10s)
fullComprehensive UX audit (DEFAULT, 10s)

Key Options

bash
$CAPTURE_TUI capture <screen> [OPTIONS]
$CAPTURE_TUI capture --all [OPTIONS]
$CAPTURE_TUI generate-prompt <screen> --type <type>
OptionDescription
--allCapture all screens
--delaysComma-separated delays in seconds (default: 5)
--analyzeGenerate AI analysis prompts
--analysis-typeAnalysis type (default: full)
--outputOutput directory (default: /tmp/screenshots)
--idSession identifier (PRD-XXX)
--charts-pathREQUIRED Path to helm charts

Freeze Detection

bash
$CAPTURE_TUI capture <screen> --delays 30,60,90 --analyze --analysis-type freeze --charts-path ../web-helm-repository
Read(file_path="/tmp/screenshots/<screen>/<screen>-090s.png")

Cleanup: rm -rf /tmp/screenshots/