Agent skill
screenshot
Capture PNG screenshots of dex TUI commands for debugging UI layout issues. Use when iterating on CLI interface code or debugging rendering problems.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/screenshot
SKILL.md
Screenshot Tool
Capture screenshots of dex TUI commands using vhs.
Instructions
-
Run the screenshot tool with a dex command:
bash./tools/screenshot.sh "<command>" [options] -
Read the output file to view the captured TUI:
bash# Default output is /tmp/dex-screenshot.png -
Use the Read tool on the PNG file to see the rendered UI.
Options
-o, --output <path>- Output PNG path (default: /tmp/dex-screenshot.png)-k, --keys <keys>- Key sequence to send after initial load (comma-separated)-w, --wait <seconds>- Initial wait time in seconds (default: 10)--no-open- Don't open the screenshot after capture
Key Sequence
Use -k to navigate through screens. Supported keys:
enter- Press Enter (navigate into views)esc- Press Escape (go back)j,k- Navigate up/downg,G- Go to top/bottom- Any single character
Examples
# Screenshot list view (search results)
./tools/screenshot.sh "search api"
# Screenshot matches view (press Enter to expand first result)
./tools/screenshot.sh "search api" -k enter
# Screenshot conversation view (Enter twice)
./tools/screenshot.sh "search api" -k enter,enter
# Screenshot with navigation (go to matches, scroll down twice)
./tools/screenshot.sh "search api" -k enter,j,j
# Custom output path
./tools/screenshot.sh "search api" -o /tmp/api-search.png -k enter
# Don't auto-open (useful for automation)
./tools/screenshot.sh "list" --no-open
View Navigation
The search command has 4 views:
- List view - Initial search results (no keys needed)
- Matches view - All matches in a conversation (
-k enter) - Conversation view - Full conversation with messages (
-k enter,enter) - Message view - Full message content (
-k enter,enter,enter)
Workflow
- Make changes to TUI code in
src/cli/commands/ - Run screenshot tool to capture the result
- Read the PNG to view the rendered UI
- Iterate based on what you see
Requirements
Requires vhs: brew install vhs
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?