tui-navigation-patterns

tui-navigation-patterns is a skill for Claude Code from MadAppGang/magus. It costs 55 tokens per session (6,403 once invoked), scanned A, original, MIT.

A reference for the keyboard commands used by terminal interfaces such as Vim, Nano, htop, psql, lazygit, and k9s. It explains how to send typed text and special keys to these programs.

In plain words
What is it for?
It helps edit files, inspect processes, use database shells, manage Git interactively, and navigate terminal dashboards.
Why use it?
It reduces mistakes when an interactive terminal program needs navigation or keyboard input rather than a normal shell command.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

Part of the terminal plugin — 5 skills, 7 commands, 1 agent shipped together

Good fit It helps edit files, inspect processes, use database shells, manage Git interactively, and navigate terminal dashboards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/madappgang/magus/tui-navigation-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MadAppGang/magus --skill tui-navigation-patterns
Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code.

Or install terminal, the plugin that ships this one along with the rest of its 5 skills, 7 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tui-navigation-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/tui-navigation-patterns.svg)](https://agentmods.dev/skills/madappgang/magus/tui-navigation-patterns)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/tui-navigation-patterns"><img src="https://agentmods.dev/badge/skills/madappgang/magus/tui-navigation-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,403 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.06403
Opus 5 $0.00028 $0.03202
Sonnet 5 $0.00011 $0.01281
Haiku 4.5 $0.00006 $0.00640

Measured 3d ago against content hash 78818277f48d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

tui-navigation-patterns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

mcp__tmux__create-headless({ name: "man-curl" }) → { paneId: "headless:%0" }
plugins/terminal/skills/tui-navigation-patterns/SKILL.md · 643 lines

How it starts

The opening of the file, as written. The whole thing — 643 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TUI Navigation Patterns

Key sequences and navigation patterns for common TUI applications. Use with mcp__tmux__send-keys.


send-keys Parameter Guide

mcp__tmux__send-keys takes a single keys string (not an array). The literal flag controls interpretation:

mcp__tmux__send-keys({ paneId, keys, literal })

  literal: true  (default) — text sent byte-for-byte; special chars NOT interpreted
           Use for: typing commands, text to insert, query strings

  literal: false — text interpreted as tmux key names
           Use for: control sequences, navigation keys, any non-printable key

Examples:
  mcp__tmux__send-keys({ paneId: "headless:%0", keys: "Escape", literal: false })
  mcp__tmux__send-keys({ paneId: "headless:%0", keys: ":wq", literal: true })
  mcp__tmux__send-keys({ paneId: "headless:%0", keys: "Enter", literal: false })
  mcp__tmux__send-keys({ paneId: "headless:%0", keys: "C-c", literal: false })

To type text then press Enter (two options):

// Option A: two calls
mcp__tmux__send-keys({ paneId, keys: "ls -la", literal: true })
mcp__tmux__send-keys({ paneId, keys: "Enter", literal: false })

// Option B: one call with \n (literal: false allows newline interpretation)
mcp__tmux__send-keys({ paneId, keys: "ls -la\n", literal: false })

Key name notation: Go tmux-mcp uses tmux key names (not caret notation):

What you want Keys string literal
Enter / Return "Enter" false
Escape "Escape" false
Space "Space" false
Tab "Tab" false
Arrow Up "Up" false
Arrow Down "Down" false
Arrow Left "Left" false
Arrow Right "Right" false
Page Up "PageUp" false
Page Down "PageDown" false
Home "Home" false
End "End" false
F1–F12 "F1", "F2", ..., "F12" false
Ctrl+C (interrupt) "C-c" false
Ctrl+D (EOF / exit) "C-d" false
Ctrl+L (clear screen) "C-l" false
Ctrl+Z (suspend) "C-z" false
Ctrl+X "C-x" false
Ctrl+O "C-o" false
Ctrl+W "C-w" false
Ctrl+K "C-k" false
Ctrl+U "C-u" false
Ctrl+R "C-r" false
Shift+F6 "S-F6" false
Alt+x "M-x" false
Type plain text "my text here" true (default)

Read the full file on GitHub · 643 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 643 lines · 55 tokens per session scan A 78818277f48d

Subscribe to this mod's changes

tui-navigation-patterns is a skill published in the GitHub repository MadAppGang/magus (9 stars, last pushed 3d ago), licensed MIT. It adds 55 tokens to every session and 6,403 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.