nw-ux-tui-patterns

nw-ux-tui-patterns is a skill for Claude Code from nWave-ai/nWave. It costs 36 tokens per session (1,776 once invoked), scanned B, original, MIT.

A set of design rules for command-line tools and terminal interfaces, including commands, options, input handling, and interactive screens.

In plain words
What is it for?
Use it when designing a command-line program, an interactive terminal application, or CLI-specific acceptance criteria.
Why use it?
It helps turn CLI requirements into consistent, usable behavior instead of leaving command structure and terminal design to guesswork.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it when designing a command-line program, an interactive terminal application, or CLI-specific acceptance criteria.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-ux-tui-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 nWave-ai/nWave --skill nw-ux-tui-patterns
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

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 nw-ux-tui-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ux-tui-patterns/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-ux-tui-patterns)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-ux-tui-patterns"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ux-tui-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nw-ux-tui-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-ux-tui-patterns"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ux-tui-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 86
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
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.00036 $0.01776
Opus 5.5 $0.00014 $0.00710
Sonnet 5.5 $0.00007 $0.00355
Haiku 4.5 $0.00004 $0.00178

Measured 1mo ago against content hash 861735a3ab93, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

nw-ux-tui-patterns scanned grade B 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 1mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

2. Start the server: sudo systemctl start postgresql
nWave/skills/nw-ux-tui-patterns/SKILL.md · 202 lines

How it starts

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

TUI and CLI Patterns

Actionable terminal interface patterns for requirements gathering and design review. Use when target is CLI tool or interactive terminal application.

CLI Argument Design

Command Structure

Follow program subcommand [flags] [arguments] (e.g., git commit -m "message").

Flags and Options

  • Both short (-h) and long (--help) for common flags
  • Reserve single-letter flags for frequently used options
  • Standard flags always: --help, --version, --verbose/--quiet, --no-color
  • Never accept secrets via flags (use files, stdin, or env vars)
  • Make flag order independent

Subcommands

  • Verbs for actions: create, delete, list, show, update
  • Nouns for targets: user, project, config
  • Pick one pattern (tool resource action or tool action resource) consistently
  • Provide shell completion scripts for discoverability

Argument Design Principles

Required arguments are positional; optional use flags. Accept stdin for piping. Support glob patterns for file arguments. Provide --dry-run for destructive/complex operations.

Interactive TUI Patterns

Framework Architectures

Framework Language Architecture Best For
Bubble Tea Go Elm (Model-Update-View) Full TUI apps with complex state
Rich Python Declarative rendering Beautiful output, progress, tables
Ink JavaScript React component model Teams with React experience
Textual Python CSS-like styling, widgets Dashboard-style applications
Ratatui Rust Immediate-mode rendering High-performance terminal apps

Key Architectural Pattern (Elm Architecture)

  • Model: Application state (single data structure)
  • Update: Pure function taking model + message, returns new model
  • View: Pure function rendering model to string

Unidirectional data flow makes TUI state predictable and testable.

Interactive Selection Patterns

Arrow keys to navigate, Enter to select. Type-ahead filtering for long lists. Multi-select with space bar, confirm with Enter. Show selected count with clear visual indicator. Support Esc to cancel.

Read the full file on GitHub · 202 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. 1mo ago First seen · 202 lines · 36 tokens per session scan B 861735a3ab93

Subscribe to this mod's changes

nw-ux-tui-patterns is a skill published in the GitHub repository nWave-ai/nWave (620 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 1,776 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

Other skills, from other repositories

tdd

Use this skill to practice test-driven development — writing tests before implementation, using tests to drive design, and validating implementation against pre-written tests. Activates when implementing new functionality, refactoring code, or fixing bugs where regression coverage is needed.

karthikrshet/aiskills · 53 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

moai-domain-frontend

Frontend development specialist covering React 19, Next.js 16, Vue 3.5, and modern UI/UX patterns with component architecture. Use when building web UIs, implementing components, optimizing frontend performance, or integrating state management.

modu-ai/moai-adk · 54 tokens

craft-studio

Router for the ArtCraft craft apps (PhotoCraft, VectorCraft, FilmCraft, LightCraft, PdfCraft, EffectCraft, DesignCraft, FigCraft, WordCraft, SoundCraft, DeckCraft, CADCraft, GridCraft) driven headless via pi-craft. Use to choose which app fits a job and run the discover-execute-save-verify loop - "which craft app…

BlackBeltTechnology/pi-agent-dashboard · 103 tokens

accessibility-a11y

Semantic HTML, keyboard navigation, focus states, ARIA labels, skip links, and WCAG contrast requirements. Use when ensuring accessibility compliance, implementing keyboard navigation, or adding screen reader support.

BlackBeltTechnology/pi-agent-dashboard · 44 tokens

tailwind-shadcn

Tailwind CSS utility patterns with shadcn/ui component usage, theming via CSS variables, and responsive design. Use when styling components, installing shadcn components, implementing dark mode, or creating consistent design systems.

BlackBeltTechnology/pi-agent-dashboard · 50 tokens