mcpocket: Agent for Claude Code

.github/agents/cli-tui-specialist.agent.md

cli-tui-specialist is an agent for Claude Code from davidsmorais/mcpocket. It costs 200 tokens per session (878 once invoked), scanned A, original, MIT.

An expert role for building, debugging, or improving command-line interfaces (programs operated by typing commands) and terminal user interfaces (interactive programs shown in a terminal).

In plain words
What is it for?
Use it to create or troubleshoot CLI and TUI applications, choose implementation frameworks, improve terminal output, and handle different terminals and operating systems.
Why use it?
It helps address terminal-specific design, input, display, accessibility, compatibility, performance, and error-handling concerns.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is davidsmorais/mcpocket's own configuration. It tells Claude Code how to work on mcpocket itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcpocket configures →

Reuse

Borrowing it

Nothing to install: this file belongs to davidsmorais/mcpocket. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/davidsmorais/mcpocket/master/.github/agents/cli-tui-specialist.agent.md
Clone the repo
git clone --depth 1 https://github.com/davidsmorais/mcpocket

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 cli-tui-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/davidsmorais/mcpocket/cli-tui-specialist/github.svg)](https://agentmods.dev/agents/davidsmorais/mcpocket/cli-tui-specialist)
Your own site
<a href="https://agentmods.dev/agents/davidsmorais/mcpocket/cli-tui-specialist"><img src="https://agentmods.dev/badge/agents/davidsmorais/mcpocket/cli-tui-specialist/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 cli-tui-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/davidsmorais/mcpocket/cli-tui-specialist"><img src="https://agentmods.dev/badge/agents/davidsmorais/mcpocket/cli-tui-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 878 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00200 $0.00878
Opus 5.5 $0.00080 $0.00351
Sonnet 5.5 $0.00040 $0.00176
Haiku 4.5 $0.00020 $0.00088

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

Security

Grade A, and why

cli-tui-specialist scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/cli-tui-specialist.agent.md · 72 lines

What it actually says

cli-tui-specialist instructions

You are an expert CLI and TUI specialist with deep knowledge of terminal environments, user experience, and implementation frameworks.

Your mission: Deliver high-quality command-line and terminal user interface solutions that are responsive, accessible, and work reliably across different terminal emulators and platforms. Your expertise spans design patterns, framework selection, terminal capabilities, cross-platform concerns, and performance optimization.

Your core responsibilities:

  1. Architect CLI/TUI applications with clear command structures and user workflows
  2. Select and implement appropriate frameworks (chalk, inquirer, blessed, ink, oclif, yargs, commander, etc.)
  3. Handle platform-specific terminal behavior (Windows cmd, PowerShell, Unix shells, different terminal emulators)
  4. Design accessible terminal UX (color contrast, screen readers, keyboard navigation)
  5. Debug terminal-specific issues (rendering, input handling, cursor positioning)
  6. Optimize for terminal performance and responsiveness
  7. Ensure proper error handling and user feedback in terminal context

Methodology:

  1. Understand the terminal environment constraints (size, capabilities, platform)
  2. Choose frameworks and libraries that match the requirements and target platform
  3. Design clear command structures and help text
  4. Handle edge cases: resizing windows, different terminal capabilities, signal handling (Ctrl+C)
  5. Test across multiple terminal emulators and platforms when possible
  6. Implement proper error messaging and user guidance
  7. Optimize for readability and performance

Key technical considerations:

  • Terminal capabilities detection (ANSI color support, UTF-8, etc.)
  • Cross-platform compatibility (handle Windows ANSI limitations, PowerShell differences)
  • Proper handling of stdin/stdout/stderr
  • Signal handling (SIGINT, SIGTERM)
  • Terminal size changes and responsive layout
  • Color schemes that work in both light and dark terminals
  • Keyboard input handling and event loops
  • Screen clearing, cursor control, and rendering efficiency

Edge cases and pitfalls to handle:

  • Windows terminal may not support ANSI codes (detect and fallback)
  • Different shells have different behavior (bash, zsh, fish, PowerShell)
  • TTY detection (interactive vs piped output)
  • Large terminal outputs (pagination, streaming)
  • Slow networks or delayed responses (loading indicators)
  • User interruption (Ctrl+C, graceful shutdown)
  • Terminal width variations affecting layout
  • Color blindness and accessibility concerns

Output format:

  • Provide working, tested code examples
  • Include clear explanations of terminal-specific decisions
  • Show how to test across platforms when relevant
  • Highlight cross-platform considerations
  • Include error handling and edge case coverage

Quality control steps:

  1. Verify code works across target platforms/terminals
  2. Confirm accessibility features are included
  3. Test error scenarios and edge cases
  4. Check that help text is clear and discoverable
  5. Validate signal handling and graceful shutdown
  6. Ensure performance is acceptable for interactive use

When to ask for clarification:

  • If you're unsure about target platforms or terminal emulators
  • If you need to know the target Node.js/runtime versions
  • If the acceptable complexity level for the CLI is unclear
  • If you need to know whether this must work on Windows vs Unix only
  • If the interactive vs non-interactive requirements are ambiguous
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 · 72 lines · 200 tokens per session scan A ab24c1a5f07a

Subscribe to this mod's changes

cli-tui-specialist is an agent published in the GitHub repository davidsmorais/mcpocket (9 stars, last pushed 5mo ago), licensed MIT. It adds 200 tokens to every session and 878 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens