Skip to main content
Trending skills
7-day visitors to each skill page
Help us improve Share bugs, ideas, or general feedback. Help us improve Share bugs, ideas, or general feedback. Independent directory for discovering and installing Claude Code plugins.
Directory Resources Claude Code docs Company Component types Categories © 2026 ClaudePluginHub · Community maintained · Not affiliated with Anthropic
pi-tui | pi-skill
Home / Skills / pi-skill / pi-tui
pi-tui /pi-skill: pi-tui · from pi-skill
Builds and debugs terminal UI components using the pi-tui framework with differential rendering, CSI 2026 synchronized output, and Focusable IME support.
Trending skills
7-day visitors to each skill page
When invoked ~508 tokens
Repo stars 20
Forks 4
Maintenance Unmaintained 1.0/10
Last commit Apr 13, 2026
Language JavaScript How it loads What the skill costs in Claude's context, stage by stage
Every session ~91 tokens
Name and description: Claude knows it exists.
When invoked ~508 tokens
SKILL.md joins the conversation and stays.
Only if needed 1 file
Read when SKILL.md points to them.
SKILL.md 30 lines · ~508 tokensPi TUI library (@mariozechner/pi-tui)
Grounding
pi-mono/packages/tui/README.md — core TUI concepts, Overlays, Component interface, Focusable IME, Built-in Components, and Differential Rendering.
pi-mono/packages/coding-agent/docs/tui.md — agent-specific TUI component usage (if applicable).
pi-mono/packages/tui/src/ — read specific component implementations when needing deeper context.
Invariants
Synchronized Output : Uses CSI 2026 for atomic screen updates. Do not attempt to bypass differential rendering with raw console.log when the TUI is active.
Component Interface : Each line returned by render(width) MUST NOT exceed the width parameter; use truncateToWidth or wrapTextWithAnsi.
IME Support : Components needing text input (cursors) must implement the Focusable interface to position the hardware cursor correctly.
Workflows
Custom Component : Implement Component interface (render, handleInput, invalidate). Check width constraints explicitly.
Overlays : Use tui.showOverlay(component, options) for floating UI elements like dialogs, menus, or alerts.
Key Detection : Use matchesKey(data, Key.xxx) for keyboard input detection instead of manual string matching.
Anti-patterns
Do not use generic string length for text formatting; always use visibleWidth and truncateToWidth to account for ANSI escape codes properly.
Do not clear the screen manually; let the differential rendering strategies handle updates.
Configuration What SKILL.md sets; muted values are Claude Code's defaults
Pre-approved toolsNone: Claude asks before using a tool, as usual Runs inThe main conversation Help us improve Share bugs, ideas, or general feedback. Trending skills 7-day visitors to each skill page
└─
references/
1
Help us improve Share bugs, ideas, or general feedback. Similar skills Other plugins' skills for the same job
More from pi-skill 11 skills in this plugin
/pi-agent-embedding @mariozechner/pi-agent-core Agent runtime — message flow, tool execution modes, event sequence for prompt() and continue(), embedding in apps. Use when building on Agent class, wiring subscribers, or debugging tool loops beside pi-ai. Use for "pi agent events", "beforeToolCall", "agent.subscribe", even if coding-agent CLI is not involved. /pi-ai-library @mariozechner/pi-ai — unified LLM streaming API, tools, providers, thinking events, and cross-provider handoffs as implemented in pi-mono. Use when integrating or debugging pi-ai, adding providers, using stream/complete, TypeBox tools, or token usage. Use for "pi-ai stream", "getModel", "new provider in pi", even if the user only says OpenRouter or Anthropic APIs. /pi-cli-workspace Pi terminal agent workspace — install, /commands, sessions, compaction, settings.json, AGENTS.md, skill discovery, precedence, session JSONL, /tree, providers/auth, models.json, credential resolution, platform setup, editor (@file, Tab, images, !bash), message queue (steering, follow-up), built-in tools (read/bash/edit/write/grep/find/ls, --tools, --no-tools), print mode (-p, piped stdin), SYSTEM.md/APPEND_SYSTEM.md, CLI flags (-c, -r, --session, --fork, --no-session), @files args, resource flags (--no-extensions, --no-skills), model shorthand (provider/id, name:thinking), all slash commands, env vars, philosophy (no MCP/sub-agents/plan-mode by design). Use for pi config, skills, sessions, compaction, providers, models, tmux, Termux, Windows, tools, modes, system prompt, message queue, or "does pi support X".
/pi-customization Pi coding agent customization — Themes, Keybindings, Prompt Templates, System Prompt overrides, and Settings. Use when configuring or modifying the visual appearance, UI colors, keyboard shortcuts, prompt templates, or the default system prompt behavior of the pi terminal agent. Use for "custom theme pi", "change keybindings", "modify system prompt", "SYSTEM.md", "APPEND_SYSTEM.md", "settings.json", "keybindings.json", "prompt template", even if pi-cli-workspace is already active. /pi-extension-authoring Authoring Pi TypeScript extensions — ExtensionAPI, custom tools, commands, UI hooks, resources_discover, `registerProvider()`, and how extendResources merges skill paths after base reload. Use when the user builds or debugs pi extensions, registers tools, adds /commands, hooks events, integrates TUI components, or ships extension examples. Use for "how do I extend pi", "extension API", "registerTool", "registerProvider", even if pi-mono is not mentioned. /pi-mom @mariozechner/pi-mom — Slack bot Master Of Mischief (Mom), self-managing agent, Docker sandbox, and events system. Use when setting up Mom in Slack, debugging data/ workspace issues, managing context.jsonl/log.jsonl memory, or creating periodic/immediate events. Use for "mom slack bot", "docker sandbox", "mom events", "artifacts server", "cloudflare tunnel", "custom tools", "MomCustomTool", "multi-platform", "v86 sandbox", even if pi-coding-agent is not mentioned. Quick install Manual This component
ClaudePluginHub fallback
Generated from the plugin's indexed repository (romiluz13/pi-agent-skills) — no native marketplace selected
$ npx claudepluginhub p/romiluz13-pi-skill Copy