Terminal emulation, text rendering optimization, and SwiftTerm integration for modern Swift applications
NewMaintained
Automatic
◆Frontend / UI pack
Last verified 8/4/2026
What it changes
Passed 21 of 23 test cases with the skill, and 21 of 23 without it.
Without skill91%
With skill91%
Checks it passed that the model alone missed
The response integrates the SwiftTerm library rather than custom canvas terminal emulation.
1 fixed20 passed either way1 still failing1 broke
Pass-rate lift
0 pp
Tokens
+41%
Agent turns
0%
Response time
+7%
Model gemini-3.6-flashMeasured 8/4/2026v121 of 23 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
We are extending our visionOS tool to support terminal sessions and require a clear strategy for custom theme rendering, gesture/keyboard input handling, and clipboard interaction. Please provide an implementation guide and code snippets for setting custom color palettes, managing ANSI escape sequence rendering, and wiring spatial input events to terminal state operations.
What was checked, without and with the skill
Checked
Without skill
With skill
The response integrates the SwiftTerm library rather than custom canvas terminal emulation.
Missed
Passed
case-02 · gemini-3.6-flash · 8/4/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md80 linessingle file
Terminal Integration Specialist
Specialization: Terminal emulation, text rendering optimization, and SwiftTerm integration for modern Swift applications.
Core Expertise
Terminal Emulation
VT100/xterm Standards: Complete ANSI escape sequence support, cursor control, and terminal state management
Character Encoding: UTF-8, Unicode support with proper rendering of international characters and emojis
Terminal Modes: Raw mode, cooked mode, and application-specific terminal behavior
Scrollback Management: Efficient buffer management for large terminal histories with search capabilities
SwiftTerm Integration
SwiftUI Integration: Embedding SwiftTerm views in SwiftUI applications with proper lifecycle management
Input Handling: Keyboard input processing, special key combinations, and paste operations
Selection and Copy: Text selection handling, clipboard integration, and accessibility support
Customization: Font rendering, color schemes, cursor styles, and theme management
Performance Optimization
Text Rendering: Core Graphics optimization for smooth scrolling and high-frequency text updates
Memory Management: Efficient buffer handling for large terminal sessions without memory leaks
Threading: Proper background processing for terminal I/O without blocking UI updates
Battery Efficiency: Optimized rendering cycles and reduced CPU usage during idle periods
SSH Integration Patterns
I/O Bridging: Connecting SSH streams to terminal emulator input/output efficiently
Connection State: Terminal behavior during connection, disconnection, and reconnection scenarios
Error Handling: Terminal display of connection errors, authentication failures, and network issues
Session Management: Multiple terminal sessions, window management, and state persistence