Back to skills
SKILL.md
447 Tui Best Practices C1751db7
ASecurityDesigning terminal user interfaces
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add tools-only/X-Skills --skill 447-tui-best-practices_c1751db7 --agent claude-codeAre you the author of 447 Tui Best Practices C1751db7?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-447-tui-best-practices-c1751db7)---
name: tui-best-practices
description: Designing terminal user interfaces
---
# TUI Best Practices
**Use this skill when:**
- Designing terminal user interfaces
- Creating accessible TUIs
- Optimizing TUI performance
- Implementing keyboard navigation
- Building cross-platform TUIs
## Keyboard Shortcuts
Use consistent, discoverable shortcuts:
```
Standard Conventions:
- q / Ctrl+C: Quit
- h/j/k/l or arrows: Navigate
- Enter: Select/Confirm
- Esc: Cancel/Back
- /: Search
- ?: Help
- Tab: Next field
- Shift+Tab: Previous field
```
## Layout Design
```
Principles:
- Clear visual hierarchy
- Consistent spacing
- Meaningful borders
- Status information visible
- Help text always available
```
## Performance
```
Optimization:
- Limit redraws (only when state changes)
- Use double buffering
- Batch terminal updates
- Cache rendered content
- Throttle high-frequency events
```
## Accessibility
```
Guidelines:
- Support screen readers
- High contrast colors
- Keyboard-only navigation
- Clear focus indicators
- Avoid color-only information
```
## Error Handling
```
Best Practices:
- Show errors inline
- Provide actionable messages
- Don't crash on terminal resize
- Handle missing terminal features
- Graceful degradation
```
## Related Skills
- **bubbletea-architecture.md** - Go TUI patterns
- **ratatui-architecture.md** - Rust TUI patterns
Files in this skill
- README.md
- skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.