code-assist
Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Acts as a Technical Implementation Partner and…
Validates Terminal User Interface (TUI) output using freeze for screenshot capture and LLM-as-judge for semantic validation. Supports both visual (PNG/SVG) and text-based validation modes.
$ npx -y skills add mikeyobrien/ralph-orchestrator --skill tui-validate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tui-validateContext preview
The summary Claude sees to decide when to auto-load this skill.
Validates Terminal User Interface (TUI) output using freeze for screenshot capture and LLM-as-judge for semantic validation. Supports both visual (PNG/SVG) and text-based validation modes.
name: tui-validate description: Validates Terminal User Interface (TUI) output using freeze for screenshot capture and LLM-as-judge for semantic validation. Supports both visual (PNG/SVG) and text-based validation modes. type: anthropic-skill version: "1.0" metadata: internal: true
This skill validates Terminal User Interface (TUI) applications by capturing their output and using LLM-as-judge for semantic validation. It leverages [freeze](https://github.com/charmbracelet/freeze) from Charmbracelet for high-fidelity terminal screenshots and provides structured validation criteria.
**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.
**Required:**
**Verification:**
# Check freeze is installed freeze --version # Check tmux is installed (for interactive capture) tmux -V
Validates Ralph TUI header component:
Validates Ralph TUI footer component:
Validates complete Ralph TUI layout:
Generic TUI validation:
Capture TUI output based on target type:
**For file targets:**
freeze {file_path} -o /tmp/tui-capture.{format}**For command targets:**
freeze --execute "{command}" -o /tmp/tui-capture.{format}**For tmux targets:**
tmux capture-pane -pet {session} | freeze -o /tmp/tui-capture.{format}**For buffer targets:**
echo "{buffer}" | freeze -o /tmp/tui-capture.{format}**Constraints:**
Extract content for LLM analysis:
**For text/semantic validation:**
**For visual validation:**
**Constraints:**
Apply LLM-as-judge with the appropriate criteria:
**Semantic Validation Prompt Template:**
Analyze this terminal UI output and determine if it meets the following criteria:
CRITERIA:
{criteria_description}
TERMINAL OUTPUT:
{captured_text}
Evaluate each criterion and provide:
1. PASS or FAIL for each requirement
2. Brief explanation for any failures
3. Overall verdict: PASS or FAIL
Be lenient on exact formatting but strict on:
- Required content presence
- Logical layout and hierarchy
- No rendering errors or artifacts**Visual Validation Prompt Template (with image):**
Examine this terminal screenshot and validate:
CRITERIA:
{criteria_description}
Check for:
1. Visual hierarchy and layout
2. Color coding correctness
3. No rendering artifacts or broken characters
4. Proper alignment and spacing
Verdict: PASS or FAIL with explanation**Constraints:**
Report validation results:
**On PASS:**
✅ TUI Validation PASSED
Criteria: {criteria_name}
Target: {target}
Mode: {judge_mode}
All requirementA hat-based orchestration framework that keeps AI agents in a loop until the task is done. "Me fail English? That's unpossible!" - Ralph Wiggum
Repo: mikeyobrien/ralph-orchestrator
Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Acts as a Technical Implementation Partner and…
Generates structured .code-task.md files from descriptions or PDD implementation plans. Auto-detects input type, creates properly formatted tasks with…
Use when testing Ralph's hat collection presets, validating preset configurations, or auditing the preset library for bugs and UX issues.
Lists all code tasks in the repository with their status, dates, and metadata. Useful for getting an overview of pending work or finding specific tasks.
Transforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification,…
Browser automation via Playwriter (remorses) using persistent Chrome sessions and the full Playwright Page API.