[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DCXX2582CZB0ZK7213M7B3":3,"skill-same:01M7DCXX2582CZB0ZK7213M7B3":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7DCXX2582CZB0ZK7213M7B3","tui-validate",null,"Validates Terminal User Interface (TUI) output using freeze for screenshot capture and LLM-as-judge for semantic validation. Supports both visual (PNG\u002FSVG) and text-based validation modes.","flaviomartil\u002Fralph-jev","flaviomartil","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F60192455?v=4","01M7DCWCHAAEJPMG1QM8T0ZN9F","Flávio Martil","01M7DCWCJTHN5T4YN12F3GTXGM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftui-validate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tui-validate\ndescription: Validates Terminal User Interface (TUI) output using freeze for screenshot capture and LLM-as-judge for semantic validation. Supports both visual (PNG\u002FSVG) and text-based validation modes.\ntype: anthropic-skill\nversion: \"1.0\"\nmetadata:\n  internal: true\n---\n\n# TUI Validate\n\n## Overview\n\nThis skill validates Terminal User Interface (TUI) applications by capturing their output and using LLM-as-judge for semantic validation. It leverages [freeze](https:\u002F\u002Fgithub.com\u002Fcharmbracelet\u002Ffreeze) from Charmbracelet for high-fidelity terminal screenshots and provides structured validation criteria.\n\n**Philosophy**: Rather than brittle string matching, this skill uses semantic understanding to validate that TUI output \"looks right\" - checking layout, content presence, and visual hierarchy without breaking on minor formatting changes.\n\n## When to Use\n\n- Validating TUI rendering after changes\n- Checking that UI components display correctly\n- Visual regression testing for terminal applications\n- Verifying TUI state after specific interactions\n- Creating documentation screenshots with validation\n\n## Prerequisites\n\n**Required:**\n- `freeze` CLI tool installed (`brew install charmbracelet\u002Ftap\u002Ffreeze`)\n- `tmux` for interactive TUI capture (optional, for live applications)\n\n**Verification:**\n```bash\n# Check freeze is installed\nfreeze --version\n\n# Check tmux is installed (for interactive capture)\ntmux -V\n```\n\n## Parameters\n\n- **target** (required): What to validate. One of:\n  - `file:\u003Cpath>` - ANSI output file to validate\n  - `command:\u003Ccmd>` - Command to execute and capture\n  - `tmux:\u003Csession>` - Live tmux session to capture\n  - `buffer:\u003Ctext>` - Raw text\u002FANSI to validate\n\n- **criteria** (required): Validation criteria. Can be:\n  - A predefined criteria name (see Built-in Criteria)\n  - A custom criteria string describing what to check\n\n- **output_format** (optional, default: \"svg\"): Screenshot format\n  - `svg` - Vector format, best for documentation\n  - `png` - Raster format, best for visual diff\n  - `text` - Text-only extraction, fastest\n\n- **save_screenshot** (optional, default: false): Whether to save the screenshot\n  - If true, saves to `{target_name}.{format}` in current directory\n\n- **judge_mode** (optional, default: \"semantic\"): Validation approach\n  - `semantic` - LLM judges based on meaning and layout\n  - `strict` - Also checks exact content presence\n  - `visual` - Requires PNG, checks visual appearance\n\n## Built-in Criteria\n\n### `ralph-header`\nValidates Ralph TUI header component:\n- Iteration counter in `[iter N]` or `[iter N\u002FM]` format\n- Elapsed time in `MM:SS` format\n- Hat indicator with emoji and name\n- Mode indicator (`▶ auto` or `⏸ paused`)\n- Optional scroll mode indicator `[SCROLL]`\n- Optional idle countdown `idle: Ns`\n\n### `ralph-footer`\nValidates Ralph TUI footer component:\n- Activity indicator (`◉ active`, `◯ idle`, or `■ done`)\n- Last event topic display\n- Search mode display when active\n\n### `ralph-full`\nValidates complete Ralph TUI layout:\n- Header section at top (3 lines)\n- Terminal content area (variable height)\n- Footer section at bottom (3 lines)\n- Proper visual hierarchy and borders\n\n### `tui-basic`\nGeneric TUI validation:\n- Has visible content (not blank)\n- No rendering artifacts or broken characters\n- Proper terminal dimensions\n\n## Execution Flow\n\n### 1. Capture Phase\n\nCapture TUI output based on target type:\n\n**For file targets:**\n```bash\nfreeze {file_path} -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For command targets:**\n```bash\nfreeze --execute \"{command}\" -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For tmux targets:**\n```bash\ntmux capture-pane -pet {session} | freeze -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For buffer targets:**\n```bash\necho \"{buffer}\" | freeze -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**Constraints:**\n- You MUST verify freeze is installed before attempting capture\n- You MUST handle capture failures gracefully and report the error\n- You MUST use appropriate freeze flags for the output format\n- You SHOULD use `--theme base16` for consistent rendering\n- You SHOULD set reasonable dimensions with `--width` and `--height`\n\n### 2. Extraction Phase\n\nExtract content for LLM analysis:\n\n**For text\u002Fsemantic validation:**\n- If format is `text`, use the captured text directly\n- If format is `svg` or `png`, also capture text version for content analysis\n\n**For visual validation:**\n- Requires PNG format\n- Will analyze the image directly using vision capabilities\n\n**Constraints:**\n- You MUST extract both visual and text representations when judge_mode is `visual`\n- You MUST preserve ANSI escape sequences for color validation when relevant\n\n### 3. Validation Phase\n\nApply LLM-as-judge with the appropriate criteria:\n\n**Semantic Validation Prompt Template:**\n```\nAnalyze this terminal UI output and determine if it meets the following criteria:\n\nCRITERIA:\n{criteria_description}\n\nTERMINAL OUTPUT:\n{captured_text}\n\nEvaluate each criterion and provide:\n1. PASS or FAIL for each requirement\n2. Brief explanation for any failures\n3. Overall verdict: PASS or FAIL\n\nBe lenient on exact formatting but strict on:\n- Required content presence\n- Logical layout and hierarchy\n- No rendering errors or artifacts\n```\n\n**Visual Validation Prompt Template (with image):**\n```\nExamine this terminal screenshot and validate:\n\nCRITERIA:\n{criteria_description}\n\nCheck for:\n1. Visual hierarchy and layout\n2. Color coding correctness\n3. No rendering artifacts or broken characters\n4. Proper alignment and spacing\n\nVerdict: PASS or FAIL with explanation\n```\n\n**Constraints:**\n- You MUST return a clear PASS or FAIL verdict\n- You MUST provide specific feedback on failures\n- You MUST be lenient on whitespace\u002Fformatting differences\n- You MUST be strict on content presence and semantic correctness\n- You SHOULD note any warnings even on PASS results\n\n### 4. Reporting Phase\n\nReport validation results:\n\n**On PASS:**\n```\n✅ TUI Validation PASSED\n\nCriteria: {criteria_name}\nTarget: {target}\nMode: {judge_mode}\n\nAll requirements satisfied.\n{optional_notes}\n```\n\n**On FAIL:**\n```\n❌ TUI Validation FAILED\n\nCriteria: {criteria_name}\nTarget: {target}\nMode: {judge_mode}\n\nIssues found:\n- {issue_1}\n- {issue_2}\n\nScreenshot saved: {path_if_saved}\n```\n\n**Constraints:**\n- You MUST always provide a clear verdict\n- You MUST list specific issues on failure\n- You MUST offer the screenshot path if saved\n- You SHOULD suggest fixes for common issues\n\n## Examples\n\n### Example 1: Validate Ralph Header from File\n\n**Input:**\n```\n\u002Ftui-validate file:test_output.txt criteria:ralph-header\n```\n\n**Process:**\n1. Read `test_output.txt` containing ANSI output\n2. Capture with freeze: `freeze test_output.txt -o \u002Ftmp\u002Fcapture.svg`\n3. Extract text content\n4. Apply `ralph-header` criteria via LLM judge\n5. Report PASS\u002FFAIL with details\n\n### Example 2: Validate Live TUI in tmux\n\n**Input:**\n```\n\u002Ftui-validate tmux:ralph-session criteria:ralph-full save_screenshot:true\n```\n\n**Process:**\n1. Capture tmux pane: `tmux capture-pane -pet ralph-session | freeze -o ralph-session.svg`\n2. Also capture text: `tmux capture-pane -pet ralph-session > \u002Ftmp\u002Ftext.txt`\n3. Apply `ralph-full` criteria checking header, content, and footer\n4. Save screenshot to `ralph-session.svg`\n5. Report validation result\n\n### Example 3: Custom Criteria Validation\n\n**Input:**\n```\n\u002Ftui-validate command:\"cargo run --example tui_demo\" criteria:\"Shows a bordered box with 'Hello World' text centered inside\" output_format:png judge_mode:visual\n```\n\n**Process:**\n1. Execute command and capture: `freeze --execute \"cargo run --example tui_demo\" -o \u002Ftmp\u002Fcapture.png`\n2. Use vision model to analyze PNG\n3. Check for bordered box and centered text\n4. Report visual validation result\n\n### Example 4: Quick Text Validation\n\n**Input:**\n```\n\u002Ftui-validate buffer:\"[iter 3\u002F10] 04:32 | 🔨 Builder | ▶ auto\" criteria:ralph-header output_format:text\n```\n\n**Process:**\n1. Analyze text directly (no freeze needed for text mode with buffer)\n2. Check for iteration format, elapsed time, hat, and mode indicator\n3. Report validation result\n\n## Criteria Definitions\n\n### ralph-header (Full Definition)\n\n```yaml\nname: ralph-header\ndescription: Ralph TUI header component validation\nrequirements:\n  - name: iteration_counter\n    description: Shows iteration in [iter N] or [iter N\u002FM] format\n    required: true\n    pattern: '\\[iter \\d+(\u002F\\d+)?\\]'\n\n  - name: elapsed_time\n    description: Shows elapsed time in MM:SS format\n    required: true\n    pattern: '\\d{2}:\\d{2}'\n\n  - name: hat_indicator\n    description: Shows current hat with emoji prefix\n    required: true\n    examples: [\"🔨 Builder\", \"📋 Planner\", \"🎯 Executor\"]\n\n  - name: mode_indicator\n    description: Shows loop mode status\n    required: true\n    values: [\"▶ auto\", \"⏸ paused\"]\n\n  - name: scroll_indicator\n    description: Shows [SCROLL] when in scroll mode\n    required: false\n    pattern: '\\[SCROLL\\]'\n\n  - name: idle_countdown\n    description: Shows idle timeout when present\n    required: false\n    pattern: 'idle: \\d+s'\n```\n\n### ralph-footer (Full Definition)\n\n```yaml\nname: ralph-footer\ndescription: Ralph TUI footer component validation\nrequirements:\n  - name: activity_indicator\n    description: Shows current activity state\n    required: true\n    values: [\"◉ active\", \"◯ idle\", \"■ done\"]\n\n  - name: event_topic\n    description: Shows last event topic\n    required: false\n    examples: [\"task.start\", \"build.done\", \"loop.terminate\"]\n\n  - name: search_display\n    description: Shows search query and match count when searching\n    required: false\n    pattern: 'Search: .+ \\d+\u002F\\d+'\n```\n\n### ralph-full (Full Definition)\n\n```yaml\nname: ralph-full\ndescription: Complete Ralph TUI layout validation\nrequirements:\n  - name: header_section\n    description: Header at top with iteration, time, hat, and mode\n    required: true\n    references: ralph-header\n\n  - name: content_section\n    description: Main terminal content area\n    required: true\n    checks:\n      - Has visible content or is ready for content\n      - Properly bounded between header and footer\n\n  - name: footer_section\n    description: Footer at bottom with activity status\n    required: true\n    references: ralph-footer\n\n  - name: visual_hierarchy\n    description: Clear visual separation between sections\n    required: true\n    checks:\n      - Borders or spacing between sections\n      - Consistent width across sections\n```\n\n## Troubleshooting\n\n### freeze not found\n\n```bash\n# macOS\nbrew install charmbracelet\u002Ftap\u002Ffreeze\n\n# Linux (via Go)\ngo install github.com\u002Fcharmbracelet\u002Ffreeze@latest\n\n# Verify installation\nfreeze --version\n```\n\n### tmux capture fails\n\n- Ensure the tmux session exists: `tmux list-sessions`\n- Verify pane number: `tmux list-panes -t {session}`\n- Try capturing specific pane: `tmux capture-pane -pet {session}:{pane}`\n\n### Rendering artifacts in capture\n\n- Try different terminal emulator settings in freeze\n- Use `--theme` flag for consistent colors\n- Ensure terminal dimensions match TUI expectations\n\n### LLM judge too strict\u002Flenient\n\n- Adjust criteria to be more specific\n- Use `strict` mode for exact matching requirements\n- Use `semantic` mode for layout\u002Fpresence checking\n\n## Integration with Tests\n\nThis skill can be integrated into test suites:\n\n```rust\n\u002F\u002F In tests\u002Ftui_validation.rs\n#[test]\n#[ignore] \u002F\u002F Run with: cargo test -- --ignored\nfn validate_header_rendering() {\n    \u002F\u002F 1. Render header to buffer\n    let output = render_header_to_string(&test_state);\n\n    \u002F\u002F 2. Save to temp file\n    std::fs::write(\"\u002Ftmp\u002Fheader_test.txt\", &output).unwrap();\n\n    \u002F\u002F 3. Run tui-validate skill (via CLI or programmatic)\n    \u002F\u002F \u002Ftui-validate file:\u002Ftmp\u002Fheader_test.txt criteria:ralph-header\n\n    \u002F\u002F 4. Assert validation passed\n}\n```\n\n## Best Practices\n\n1. **Use semantic validation for layout checks** - Don't break on minor formatting\n2. **Use strict validation for content requirements** - Ensure critical info is present\n3. **Save screenshots on failure** - Aids debugging\n4. **Test with various terminal sizes** - TUIs should be responsive\n5. **Combine with unit tests** - Use this for integration\u002Fvisual validation, unit tests for logic\n","# TUI Validate\n\n## Overview\n\nThis skill validates Terminal User Interface (TUI) applications by capturing their output and using LLM-as-judge for semantic validation. It leverages [freeze](https:\u002F\u002Fgithub.com\u002Fcharmbracelet\u002Ffreeze) from Charmbracelet for high-fidelity terminal screenshots and provides structured validation criteria.\n\n**Philosophy**: Rather than brittle string matching, this skill uses semantic understanding to validate that TUI output \"looks right\" - checking layout, content presence, and visual hierarchy without breaking on minor formatting changes.\n\n## When to Use\n\n- Validating TUI rendering after changes\n- Checking that UI components display correctly\n- Visual regression testing for terminal applications\n- Verifying TUI state after specific interactions\n- Creating documentation screenshots with validation\n\n## Prerequisites\n\n**Required:**\n- `freeze` CLI tool installed (`brew install charmbracelet\u002Ftap\u002Ffreeze`)\n- `tmux` for interactive TUI capture (optional, for live applications)\n\n**Verification:**\n```bash\n# Check freeze is installed\nfreeze --version\n\n# Check tmux is installed (for interactive capture)\ntmux -V\n```\n\n## Parameters\n\n- **target** (required): What to validate. One of:\n  - `file:\u003Cpath>` - ANSI output file to validate\n  - `command:\u003Ccmd>` - Command to execute and capture\n  - `tmux:\u003Csession>` - Live tmux session to capture\n  - `buffer:\u003Ctext>` - Raw text\u002FANSI to validate\n\n- **criteria** (required): Validation criteria. Can be:\n  - A predefined criteria name (see Built-in Criteria)\n  - A custom criteria string describing what to check\n\n- **output_format** (optional, default: \"svg\"): Screenshot format\n  - `svg` - Vector format, best for documentation\n  - `png` - Raster format, best for visual diff\n  - `text` - Text-only extraction, fastest\n\n- **save_screenshot** (optional, default: false): Whether to save the screenshot\n  - If true, saves to `{target_name}.{format}` in current directory\n\n- **judge_mode** (optional, default: \"semantic\"): Validation approach\n  - `semantic` - LLM judges based on meaning and layout\n  - `strict` - Also checks exact content presence\n  - `visual` - Requires PNG, checks visual appearance\n\n## Built-in Criteria\n\n### `ralph-header`\nValidates Ralph TUI header component:\n- Iteration counter in `[iter N]` or `[iter N\u002FM]` format\n- Elapsed time in `MM:SS` format\n- Hat indicator with emoji and name\n- Mode indicator (`▶ auto` or `⏸ paused`)\n- Optional scroll mode indicator `[SCROLL]`\n- Optional idle countdown `idle: Ns`\n\n### `ralph-footer`\nValidates Ralph TUI footer component:\n- Activity indicator (`◉ active`, `◯ idle`, or `■ done`)\n- Last event topic display\n- Search mode display when active\n\n### `ralph-full`\nValidates complete Ralph TUI layout:\n- Header section at top (3 lines)\n- Terminal content area (variable height)\n- Footer section at bottom (3 lines)\n- Proper visual hierarchy and borders\n\n### `tui-basic`\nGeneric TUI validation:\n- Has visible content (not blank)\n- No rendering artifacts or broken characters\n- Proper terminal dimensions\n\n## Execution Flow\n\n### 1. Capture Phase\n\nCapture TUI output based on target type:\n\n**For file targets:**\n```bash\nfreeze {file_path} -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For command targets:**\n```bash\nfreeze --execute \"{command}\" -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For tmux targets:**\n```bash\ntmux capture-pane -pet {session} | freeze -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**For buffer targets:**\n```bash\necho \"{buffer}\" | freeze -o \u002Ftmp\u002Ftui-capture.{format}\n```\n\n**Constraints:**\n- You MUST verify freeze is installed before attempting capture\n- You MUST handle capture failures gracefully and report the error\n- You MUST use appropriate freeze flags for the output format\n- You SHOULD use `--theme base16` for consistent rendering\n- You SHOULD set reasonable dimensions with `--width` and `--height`\n\n### 2. Extraction Phase\n\nExtract content for LLM analysis:\n\n**For text\u002Fsemantic validation:**\n- If format is `text`, use the captured text directly\n- If format is `svg` or `png`, also capture text version for content analysis\n\n**For visual validation:**\n- Requires PNG format\n- Will analyze the image directly using vision capabilities\n\n**Constraints:**\n- You MUST extract both visual and text representations when judge_mode is `visual`\n- You MUST preserve ANSI escape sequences for color validation when relevant\n\n### 3. Validation Phase\n\nApply LLM-as-judge with the appropriate criteria:\n\n**Semantic Validation Prompt Template:**\n```\nAnalyze this terminal UI output and determine if it meets the following criteria:\n\nCRITERIA:\n{criteria_description}\n\nTERMINAL OUTPUT:\n{captured_text}\n\nEvaluate each criterion and provide:\n1. PASS or FAIL for each requirement\n2. Brief explanation for any failures\n3. Overall verdict: PASS or FAIL\n\nBe lenient on exact formatting but strict on:\n- Required content presence\n- Logical layout and hierarchy\n- No rendering errors or artifacts\n```\n\n**Visual Validation Prompt Template (with image):**\n```\nExamine this terminal screenshot and validate:\n\nCRITERIA:\n{criteria_description}\n\nCheck for:\n1. Visual hierarchy and layout\n2. Color coding correctness\n3. No rendering artifacts or broken characters\n4. Proper alignment and spacing\n\nVerdict: PASS or FAIL with explanation\n```\n\n**Constraints:**\n- You MUST return a clear PASS or FAIL verdict\n- You MUST provide specific feedback on failures\n- You MUST be lenient on whitespace\u002Fformatting differences\n- You MUST be strict on content presence and semantic correctness\n- You SHOULD note any warnings even on PASS results\n\n### 4. Reporting Phase\n\nReport validation results:\n\n**On PASS:**\n```\n✅ TUI Validation PASSED\n\nCriteria: {criteria_name}\nTarget: {target}\nMode: {judge_mode}\n\nAll requirements satisfied.\n{optional_notes}\n```\n\n**On FAIL:**\n```\n❌ TUI Validation FAILED\n\nCriteria: {criteria_name}\nTarget: {target}\nMode: {judge_mode}\n\nIssues found:\n- {issue_1}\n- {issue_2}\n\nScreenshot saved: {path_if_saved}\n```\n\n**Constraints:**\n- You MUST always provide a clear verdict\n- You MUST list specific issues on failure\n- You MUST offer the screenshot path if saved\n- You SHOULD suggest fixes for common issues\n\n## Examples\n\n### Example 1: Validate Ralph Header from File\n\n**Input:**\n```\n\u002Ftui-validate file:test_output.txt criteria:ralph-header\n```\n\n**Process:**\n1. Read `test_output.txt` containing ANSI output\n2. Capture with freeze: `freeze test_output.txt -o \u002Ftmp\u002Fcapture.svg`\n3. Extract text content\n4. Apply `ralph-header` criteria via LLM judge\n5. Report PASS\u002FFAIL with details\n\n### Example 2: Validate Live TUI in tmux\n\n**Input:**\n```\n\u002Ftui-validate tmux:ralph-session criteria:ralph-full save_screenshot:true\n```\n\n**Process:**\n1. Capture tmux pane: `tmux capture-pane -pet ralph-session | freeze -o ralph-session.svg`\n2. Also capture text: `tmux capture-pane -pet ralph-session > \u002Ftmp\u002Ftext.txt`\n3. Apply `ralph-full` criteria checking header, content, and footer\n4. Save screenshot to `ralph-session.svg`\n5. Report validation result\n\n### Example 3: Custom Criteria Validation\n\n**Input:**\n```\n\u002Ftui-validate command:\"cargo run --example tui_demo\" criteria:\"Shows a bordered box with 'Hello World' text centered inside\" output_format:png judge_mode:visual\n```\n\n**Process:**\n1. Execute command and capture: `freeze --execute \"cargo run --example tui_demo\" -o \u002Ftmp\u002Fcapture.png`\n2. Use vision model to analyze PNG\n3. Check for bordered box and centered text\n4. Report visual validation result\n\n### Example 4: Quick Text Validation\n\n**Input:**\n```\n\u002Ftui-validate buffer:\"[iter 3\u002F10] 04:32 | 🔨 Builder | ▶ auto\" criteria:ralph-header output_format:text\n```\n\n**Process:**\n1. Analyze text directly (no freeze needed for text mode with buffer)\n2. Check for iteration format, elapsed time, hat, and mode indicator\n3. Report validation result\n\n## Criteria Definitions\n\n### ralph-header (Full Definition)\n\n```yaml\nname: ralph-header\ndescription: Ralph TUI header component validation\nrequirements:\n  - name: iteration_counter\n    description: Shows iteration in [iter N] or [iter N\u002FM] format\n    required: true\n    pattern: '\\[iter \\d+(\u002F\\d+)?\\]'\n\n  - name: elapsed_time\n    description: Shows elapsed time in MM:SS format\n    required: true\n    pattern: '\\d{2}:\\d{2}'\n\n  - name: hat_indicator\n    description: Shows current hat with emoji prefix\n    required: true\n    examples: [\"🔨 Builder\", \"📋 Planner\", \"🎯 Executor\"]\n\n  - name: mode_indicator\n    description: Shows loop mode status\n    required: true\n    values: [\"▶ auto\", \"⏸ paused\"]\n\n  - name: scroll_indicator\n    description: Shows [SCROLL] when in scroll mode\n    required: false\n    pattern: '\\[SCROLL\\]'\n\n  - name: idle_countdown\n    description: Shows idle timeout when present\n    required: false\n    pattern: 'idle: \\d+s'\n```\n\n### ralph-footer (Full Definition)\n\n```yaml\nname: ralph-footer\ndescription: Ralph TUI footer component validation\nrequirements:\n  - name: activity_indicator\n    description: Shows current activity state\n    required: true\n    values: [\"◉ active\", \"◯ idle\", \"■ done\"]\n\n  - name: event_topic\n    description: Shows last event topic\n    required: false\n    examples: [\"task.start\", \"build.done\", \"loop.terminate\"]\n\n  - name: search_display\n    description: Shows search query and match count when searching\n    required: false\n    pattern: 'Search: .+ \\d+\u002F\\d+'\n```\n\n### ralph-full (Full Definition)\n\n```yaml\nname: ralph-full\ndescription: Complete Ralph TUI layout validation\nrequirements:\n  - name: header_section\n    description: Header at top with iteration, time, hat, and mode\n    required: true\n    references: ralph-header\n\n  - name: content_section\n    description: Main terminal content area\n    required: true\n    checks:\n      - Has visible content or is ready for content\n      - Properly bounded between header and footer\n\n  - name: footer_section\n    description: Footer at bottom with activity status\n    required: true\n    references: ralph-footer\n\n  - name: visual_hierarchy\n    description: Clear visual separation between sections\n    required: true\n    checks:\n      - Borders or spacing between sections\n      - Consistent width across sections\n```\n\n## Troubleshooting\n\n### freeze not found\n\n```bash\n# macOS\nbrew install charmbracelet\u002Ftap\u002Ffreeze\n\n# Linux (via Go)\ngo install github.com\u002Fcharmbracelet\u002Ffreeze@latest\n\n# Verify installation\nfreeze --version\n```\n\n### tmux capture fails\n\n- Ensure the tmux session exists: `tmux list-sessions`\n- Verify pane number: `tmux list-panes -t {session}`\n- Try capturing specific pane: `tmux capture-pane -pet {session}:{pane}`\n\n### Rendering artifacts in capture\n\n- Try different terminal emulator settings in freeze\n- Use `--theme` flag for consistent colors\n- Ensure terminal dimensions match TUI expectations\n\n### LLM judge too strict\u002Flenient\n\n- Adjust criteria to be more specific\n- Use `strict` mode for exact matching requirements\n- Use `semantic` mode for layout\u002Fpresence checking\n\n## Integration with Tests\n\nThis skill can be integrated into test suites:\n\n```rust\n\u002F\u002F In tests\u002Ftui_validation.rs\n#[test]\n#[ignore] \u002F\u002F Run with: cargo test -- --ignored\nfn validate_header_rendering() {\n    \u002F\u002F 1. Render header to buffer\n    let output = render_header_to_string(&test_state);\n\n    \u002F\u002F 2. Save to temp file\n    std::fs::write(\"\u002Ftmp\u002Fheader_test.txt\", &output).unwrap();\n\n    \u002F\u002F 3. Run tui-validate skill (via CLI or programmatic)\n    \u002F\u002F \u002Ftui-validate file:\u002Ftmp\u002Fheader_test.txt criteria:ralph-header\n\n    \u002F\u002F 4. Assert validation passed\n}\n```\n\n## Best Practices\n\n1. **Use semantic validation for layout checks** - Don't break on minor formatting\n2. **Use strict validation for content requirements** - Ensure critical info is present\n3. **Save screenshots on failure** - Aids debugging\n4. **Test with various terminal sizes** - TUIs should be responsive\n5. **Combine with unit tests** - Use this for integration\u002Fvisual validation, unit tests for logic\n",{"name":5,"type":24,"version":25,"metadata":26,"description":7},"anthropic-skill","1.0",{"internal":27},true,"main","adaf7f4432d523a43d920c5d2d875271e7ec0873",".claude\u002Fskills\u002Ftui-validate","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev","https:\u002F\u002Fgithub.com\u002Fflaviomartil","2026-09-26 07:24:05",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":27},[36,39,42],{"tool":37,"command":38},"npx","npx skills add flaviomartil\u002Fralph-jev --skill tui-validate",{"tool":40,"command":41},"bunx","bunx skills add flaviomartil\u002Fralph-jev --skill tui-validate",{"tool":43,"command":44},"pnpm","pnpm dlx skills add flaviomartil\u002Fralph-jev --skill tui-validate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftui-validate\u002FSKILL.md",[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DCYHX0EBXRGAKSVTYXS96D","ralph-loop","Run, monitor, resume, merge, and debug Ralph loops. Use this skill whenever the user asks to operate `ralph run` or `ralph loops`, inspect loop state, recover suspended loops, analyze diagnostics, or unblock merge queue issues.","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002Fskills\u002Fralph-loop\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DCYDCFEJFYD4V5JWV7HJFS","ralph-hats","Create, inspect, validate, explain, and improve Ralph hat collections. Use this skill whenever the user asks to make or refine a `.ralph\u002Fhats\u002F*.yml` workflow, debug hat routing, explain event topology, or tune a multi-hat Ralph run.","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002Fskills\u002Fralph-hats\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DCY5Z7EGXE9S116KQ5EFJY","ralph-docs","Introspect, explain, and improve ralph-jev using the documentation shipped in its repository. Use this skill whenever the user asks questions about Ralph's behavior, wants to understand how a Ralph internal works (event loop, completion gate, judge evidence, Jev hooks, parallel loops, configuration), debug an unfamiliar failure mode, or propose a code change to the ralph-jev repo. The skill teaches the agent to answer from the repo's docs and source before guessing, and to scope improvements through the documented architecture rather than the local checkout alone.","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002Fskills\u002Fralph-docs\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DCY37C342859GXBPYTN5EK","complex-test-skill","A directory-style test skill for smoke testing","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002Fcrates\u002Fralph-core\u002Ftests\u002Ffixtures\u002Fskills\u002Fcomplex-test-skill\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DCXSQN75KTR4QG0PF3DNVM","tui-debug-in-pane","Use when you need to reproduce or debug TUI rendering issues (garbled output, broken streaming, layout corruption) by running ralph in a tmux split pane and capturing live output.","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftui-debug-in-pane\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DCXN8GMGHBX6KTNNTE80QV","tmux-terminal","Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.","https:\u002F\u002Fgithub.com\u002Fflaviomartil\u002Fralph-jev\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftmux-terminal\u002FSKILL.md",[],[]]