tui-validate
Skill3.2k starsChanged 9 months agoMITView on GitHub
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.
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about mikeyobrien/ralph-orchestrator
- A Hacker News story“Show HN: Yet another tool to wrap agents in a loop”Hacker News · Dec 17, 2025 · 6 points
- anthropics/claude-code“Feature Request: Add `clearContext` field to Stop hook output”GitHub · Jan 7, 2026 · 3 reactions
- @rusttrending.bsky.social“mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous …”Bluesky · May 3, 2026 · 2 likes
- @rusttrending.bsky.social“mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous …”Bluesky · Mar 26, 2026 · 2 likes
- @rusttrending.bsky.social“mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous …”Bluesky · Feb 2, 2026 · 1 likes
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub, Bluesky and Hacker News (49 times).
On GitHub · 45
- Jan 7, 2026Feature Request: Add `clearContext` field to Stop hook output — anthropics/claude-code3 reactions · 5 comments
- Jan 4, 2026Add Ralph Wiggum Plugin Support — langgenius/dify1 reaction
- Sep 30, 2026agent-skills.github.mikeyobrien.ralph-orchestrator: init at 2.10.1 — sudosubin/agents.nix0 reactions
- Jul 23, 2026Bump the dev-dependencies group across 1 directory with 8 updates — makioshibori/mma-trpg0 reactions
- Jul 16, 2026Bump the dev-dependencies group across 1 directory with 8 updates — makioshibori/mma-trpg0 reactions · 1 comment
40 more on GitHub
- Jul 9, 2026Bump the dev-dependencies group across 1 directory with 5 updates — makioshibori/mma-trpg0 reactions · 1 comment
- Jul 2, 2026Bump the dev-dependencies group with 8 updates — makioshibori/mma-trpg0 reactions · 1 comment
- Jun 23, 2026ralph-orchestrator 2.10.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 22, 2026ralph-orchestrator 2.10.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 18, 2026Bump the dev-dependencies group across 1 directory with 8 updates — makioshibori/mma-trpg0 reactions · 1 comment
- Jun 11, 2026Bump the dev-dependencies group across 1 directory with 9 updates — makioshibori/mma-trpg0 reactions · 1 comment
- Jun 4, 2026Bump the dev-dependencies group across 1 directory with 6 updates — makioshibori/mma-trpg0 reactions · 1 comment
- May 28, 2026Bump the dev-dependencies group across 1 directory with 10 updates — makioshibori/mma-trpg0 reactions · 1 comment
- May 21, 2026Bump the dev-dependencies group across 1 directory with 6 updates — makioshibori/mma-trpg0 reactions · 1 comment
- May 8, 2026ralph-orchestrator 2.9.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Apr 30, 2026Bump the dev-dependencies group with 9 updates — makioshibori/mma-trpg0 reactions · 1 comment
- Apr 18, 2026Audit candidate: mikeyobrien/ralph-orchestrator — xiaolai/nlpm0 reactions · 4 comments
- Apr 10, 2026ralph-orchestrator 2.9.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Apr 4, 2026ralph-orchestrator 2.9.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Mar 16, 2026ralph-orchestrator 2.8.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Mar 10, 2026ralph-orchestrator 2.8.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Mar 6, 2026ralph-orchestrator 2.7.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 28, 20262026-02-28 — marcindulak/learning-api-styles-gen-ai-experiments0 reactions
- Feb 25, 2026Add ralph skill with proper attribution — ZealousEar/claude-skills0 reactions
- Feb 25, 2026ralph-orchestrator 2.6.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 20, 2026Ralph Loop Orchestrator — MateuszNaKodach/SelfImprovement0 reactions
- Feb 14, 2026ralph-orchestrator 2.5.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 8, 2026ralph-orchestrator 2.5.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 5, 2026ralph-orchestrator 2.4.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 2, 2026ralph-orchestrator 2.4.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Feb 2, 2026ralph-orchestrator 2.4.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 30, 2026ralph-orchestrator 2.4.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 29, 2026ralph-orchestrator 2.3.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 29, 2026ralph-orchestrator 2.3.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 26, 2026ralph-orchestrator 2.2.5 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 25, 2026ralph-orchestrator 2.2.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 24, 2026ralph-orchestrator 2.2.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 22, 2026ralph-orchestrator 2.2.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 22, 2026ralph-orchestrator 2.2.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 21, 2026ralph-orchestrator 2.1.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 20, 2026ralph-orchestrator 2.1.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 20, 2026ralph-orchestrator 2.1.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 19, 2026ralph-orchestrator 2.0.10 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 18, 2026ralph-orchestrator 2.0.9 — Homebrew/homebrew-core0 reactions · 1 comment
- Jan 10, 2026Add resource: ralph-orchestrator — hesreallyhim/awesome-claude-code0 reactions
On Bluesky · 3
- May 3, 2026mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2797… — @rusttrending.bsky.social2 likes and reposts
- Mar 26, 2026mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★2371… — @rusttrending.bsky.social2 likes and reposts · 1 reply
- Feb 2, 2026mikeyobrien / ralph-orchestrator: An improved implementation of the Ralph Wiggum technique for autonomous AI agent orchestration ★1590… — @rusttrending.bsky.social1 likes and repost
On Hacker News · 1
- Dec 17, 2025Show HN: Yet another tool to wrap agents in a loop6 points
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-assistSkill
- code-task-generatorSkill
- evaluate-presetsSkill
- find-code-tasksSkill
- pddSkill
- playwriterSkill
- pr-demoSkill
- ralph-toolsSkill
- release-bumpSkill
- review-prSkill
- test-driven-developmentSkill
- tmux-terminalSkill
- tui-debug-in-paneSkill
- ralph-docsSkill
- ralph-hatsSkill
- ralph-loopSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 9 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
If true, saves to {target_name}.{format} in current directory
- Distinctive: line 81
Search mode display when active
- Distinctive: line 93
No rendering artifacts or broken characters
- Very specific: line 134
If format is text, use the captured text directly
- Very specific: line 135
If format is svg or png, also capture text version for content analysis
- Very specific: line 240
Read test_output.txt containing ANSI output
- Distinctive: line 269
Use vision model to analyze PNG
- Distinctive: line 270
Check for bordered box and centered text
- Distinctive: line 282
Check for iteration format, elapsed time, hat, and mode indicator
- Very specific: line 394
Ensure the tmux session exists: tmux list-sessions
- Very specific: line 395
Verify pane number: tmux list-panes -t {session}
- Very specific: line 401
Use --theme flag for consistent colors
- Distinctive: line 402
Ensure terminal dimensions match TUI expectations
- Very specific: line 407
Use strict mode for exact matching requirements
- Very specific: line 408
Use semantic mode for layout/presence checking
- Distinctive: line 434
Use semantic validation for layout checks: - Don't break on minor formatting
- Distinctive: line 435
Use strict validation for content requirements: - Ensure critical info is present
- Distinctive: line 438
Combine with unit tests: - Use this for integration/visual validation, unit tests for logic
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TUI Validate
Overview
This skill validates Terminal User Interface (TUI) applications by capturing their output and using LLM-as-judge for semantic validation. It leverages 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.
When to Use
- Validating TUI rendering after changes
- Checking that UI components display correctly
- Visual regression testing for terminal applications
- Verifying TUI state after specific interactions
- Creating documentation screenshots with validation
Prerequisites
Required:
freezeCLI tool installed (brew install charmbracelet/tap/freeze)tmuxfor interactive TUI capture (optional, for live applications)
Verification:
# Check freeze is installed
freeze --version
# Check tmux is installed (for interactive capture)
tmux -VParameters
- target (required): What to validate. One of:
file:<path>- ANSI output file to validatecommand:<cmd>- Command to execute and capturetmux:<session>- Live tmux session to capturebuffer:<text>- Raw text/ANSI to validate
- criteria (required): Validation criteria. Can be:
- A predefined criteria name (see Built-in Criteria)
- A custom criteria string describing what to check
- output_format (optional, default: "svg"): Screenshot format
svg- Vector format, best for documentationpng- Raster format, best for visual difftext- Text-only extraction, fastest
- save_screenshot (optional, default: false): Whether to save the screenshot
- If true, saves to
{target_name}.{format}in current directory
- If true, saves to
- judge_mode (optional, default: "semantic"): Validation approach
semantic- LLM judges based on meaning and layoutstrict- Also checks exact content presencevisual- Requires PNG, checks visual appearance
Built-in Criteria
ralph-header
Validates Ralph TUI header component:
- Iteration counter in
[iter N]or[iter N/M]format - Elapsed time in
MM:SSformat - Hat indicator with emoji and name
- Mode indicator (
▶ autoor⏸ paused) - Optional scroll mode indicator
[SCROLL] - Optional idle countdown
idle: Ns
ralph-footer
Validates Ralph TUI footer component:
- Activity indicator (
◉ active,◯ idle, or■ done) - Last event topic display
- Search mode display when active
ralph-full
Validates complete Ralph TUI layout:
- Header section at top (3 lines)
- Terminal content area (variable height)
- Footer section at bottom (3 lines)
- Proper visual hierarchy and borders
tui-basic
Generic TUI validation:
- Has visible content (not blank)
- No rendering artifacts or broken characters
- Proper terminal dimensions
Execution Flow
1. Capture Phase
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:
- You MUST verify freeze is installed before attempting capture
- You MUST handle capture failures gracefully and report the error
- You MUST use appropriate freeze flags for the output format
- You SHOULD use
--theme base16for consistent rendering - You SHOULD set reasonable dimensions with
--widthand--height
2. Extraction Phase
Extract content for LLM analysis:
For text/semantic validation:
- If format is
text, use the captured text directly - If format is
svgorpng, also capture text version for content analysis
For visual validation:
- Requires PNG format
- Will analyze the image directly using vision capabilities
Constraints:
- You MUST extract both visual and text representations when judge_mode is
visual - You MUST preserve ANSI escape sequences for color validation when relevant
3. Validation Phase
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 artifactsVisual 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 explanationConstraints:
- You MUST return a clear PASS or FAIL verdict
- You MUST provide specific feedback on failures
- You MUST be lenient on whitespace/formatting differences
- You MUST be strict on content presence and semantic correctness
- You SHOULD note any warnings even on PASS results
4. Reporting Phase
Report validation results:
On PASS:
✅ TUI Validation PASSED
Criteria: {criteria_name}
Target: {target}
Mode: {judge_mode}
All requirements satisfied.
{optional_notes}On FAIL:
❌ TUI Validation FAILED
Criteria: {criteria_name}
Target: {target}
Mode: {judge_mode}
Issues found:
- {issue_1}
- {issue_2}
Screenshot saved: {path_if_saved}Constraints:
- You MUST always provide a clear verdict
- You MUST list specific issues on failure
- You MUST offer the screenshot path if saved
- You SHOULD suggest fixes for common issues
Examples
Example 1: Validate Ralph Header from File
Input:
/tui-validate file:test_output.txt criteria:ralph-headerProcess:
- Read
test_output.txtcontaining ANSI output - Capture with freeze:
freeze test_output.txt -o /tmp/capture.svg - Extract text content
- Apply
ralph-headercriteria via LLM judge - Report PASS/FAIL with details
Example 2: Validate Live TUI in tmux
Input:
/tui-validate tmux:ralph-session criteria:ralph-full save_screenshot:trueProcess:
- Capture tmux pane:
tmux capture-pane -pet ralph-session | freeze -o ralph-session.svg - Also capture text:
tmux capture-pane -pet ralph-session > /tmp/text.txt - Apply
ralph-fullcriteria checking header, content, and footer - Save screenshot to
ralph-session.svg - Report validation result
Example 3: Custom Criteria Validation
Input:
/tui-validate command:"cargo run --example tui_demo" criteria:"Shows a bordered box with 'Hello World' text centered inside" output_format:png judge_mode:visualProcess:
- Execute command and capture:
freeze --execute "cargo run --example tui_demo" -o /tmp/capture.png - Use vision model to analyze PNG
- Check for bordered box and centered text
- Report visual validation result
Example 4: Quick Text Validation
Input:
/tui-validate buffer:"[iter 3/10] 04:32 | 🔨 Builder | ▶ auto" criteria:ralph-header output_format:textProcess:
- Analyze text directly (no freeze needed for text mode with buffer)
- Check for iteration format, elapsed time, hat, and mode indicator
- Report validation result
Criteria Definitions
ralph-header (Full Definition)
name: ralph-header
description: Ralph TUI header component validation
requirements:
- name: iteration_counter
description: Shows iteration in [iter N] or [iter N/M] format
required: true
pattern: '\[iter \d+(/\d+)?\]'
- name: elapsed_time
description: Shows elapsed time in MM:SS format
required: true
pattern: '\d{2}:\d{2}'
- name: hat_indicator
description: Shows current hat with emoji prefix
required: true
examples: ["🔨 Builder", "📋 Planner", "🎯 Executor"]
- name: mode_indicator
description: Shows loop mode status
required: true
values: ["▶ auto", "⏸ paused"]
- name: scroll_indicator
description: Shows [SCROLL] when in scroll mode
required: false
pattern: '\[SCROLL\]'
- name: idle_countdown
description: Shows idle timeout when present
required: false
pattern: 'idle: \d+s'ralph-footer (Full Definition)
name: ralph-footer
description: Ralph TUI footer component validation
requirements:
- name: activity_indicator
description: Shows current activity state
required: true
values: ["◉ active", "◯ idle", "■ done"]
- name: event_topic
description: Shows last event topic
required: false
examples: ["task.start", "build.done", "loop.terminate"]
- name: search_display
description: Shows search query and match count when searching
required: false
pattern: 'Search: .+ \d+/\d+'ralph-full (Full Definition)
name: ralph-full
description: Complete Ralph TUI layout validation
requirements:
- name: header_section
description: Header at top with iteration, time, hat, and mode
required: true
references: ralph-header
- name: content_section
description: Main terminal content area
required: true
checks:
- Has visible content or is ready for content
- Properly bounded between header and footer
- name: footer_section
description: Footer at bottom with activity status
required: true
references: ralph-footer
- name: visual_hierarchy
description: Clear visual separation between sections
required: true
checks:
- Borders or spacing between sections
- Consistent width across sectionsTroubleshooting
freeze not found
# macOS
brew install charmbracelet/tap/freeze
# Linux (via Go)
go install github.com/charmbracelet/freeze@latest
# Verify installation
freeze --versiontmux capture fails
- Ensure the tmux session exists:
tmux list-sessions - Verify pane number:
tmux list-panes -t {session} - Try capturing specific pane:
tmux capture-pane -pet {session}:{pane}
Rendering artifacts in capture
- Try different terminal emulator settings in freeze
- Use
--themeflag for consistent colors - Ensure terminal dimensions match TUI expectations
LLM judge too strict/lenient
- Adjust criteria to be more specific
- Use
strictmode for exact matching requirements - Use
semanticmode for layout/presence checking
Integration with Tests
This skill can be integrated into test suites:
// In tests/tui_validation.rs
#[test]
#[ignore] // Run with: cargo test -- --ignored
fn validate_header_rendering() {
// 1. Render header to buffer
let output = render_header_to_string(&test_state);
// 2. Save to temp file
std::fs::write("/tmp/header_test.txt", &output).unwrap();
// 3. Run tui-validate skill (via CLI or programmatic)
// /tui-validate file:/tmp/header_test.txt criteria:ralph-header
// 4. Assert validation passed
}Best Practices
- Use semantic validation for layout checks - Don't break on minor formatting
- Use strict validation for content requirements - Ensure critical info is present
- Save screenshots on failure - Aids debugging
- Test with various terminal sizes - TUIs should be responsive
- Combine with unit tests - Use this for integration/visual validation, unit tests for logic
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

