create-tui

create-tui is a skill for Claude Code, Codex from jasonkneen/lazar. It costs 97 tokens per session (1,796 once invoked), scanned A, original, MIT.

A scaffold for building a terminal user interface (TUI), a text-based interactive program that runs in a command window and talks to the lazar agent.

In plain words
What is it for?
It helps create a small client project that starts lazar as a separate process, receives its streamed JSON events, and displays them. It can use TypeScript with readline, Go with Bubble Tea, Python with Textual, or another chosen stack.
Why use it?
It provides a richer way to use lazar than a simple chat script, with features such as streaming output, formatted text, scrollback, keyboard shortcuts, or split panes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create a small client project that starts lazar as a separate process, receives its streamed JSON events, and displays them. It can use TypeScript with readline, Go with Bubble Tea, Python with Textual, or another chosen stack.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jasonkneen/lazar/create-tui
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 jasonkneen/lazar --skill create-tui
Clone the repo
git clone --depth 1 https://github.com/jasonkneen/lazar

Made for: Claude Code, Codex.

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 create-tui

README.md
[![agentmods](https://agentmods.dev/badge/skills/jasonkneen/lazar/create-tui/github.svg)](https://agentmods.dev/skills/jasonkneen/lazar/create-tui)
Your own site
<a href="https://agentmods.dev/skills/jasonkneen/lazar/create-tui"><img src="https://agentmods.dev/badge/skills/jasonkneen/lazar/create-tui/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 create-tui

Your own site · 80×15
<a href="https://agentmods.dev/skills/jasonkneen/lazar/create-tui"><img src="https://agentmods.dev/badge/skills/jasonkneen/lazar/create-tui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,796 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, 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 Rogue Agent · line 82
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 116
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00097 $0.01796
Opus 5 $0.00048 $0.00898
Sonnet 5 $0.00019 $0.00359
Haiku 4.5 $0.00010 $0.00180

Measured 9d ago against content hash aaebe44b2a5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

create-tui 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 9d 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.

src/seed-skills/_meta/create-tui/SKILL.md · 120 lines

How it starts

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

create-tui

Scaffold a terminal interface (TUI) that talks to lazar. The output is a small project under $LAZAR_HOME/workspace/<name>/. The TUI is a client — it spawns lazar -p --output-format stream-json as a subprocess and renders the JSONL events. Lazar itself is the agent; the TUI is just the mouth and ears.

This skill is for richer experiences than scripts/lazar-chat.sh (a 30-line shell loop with glow piping). If the user just wants to chat with markdown rendering, point them there first and skip this skill.

When to use

  • The user asks for a "TUI", "chat interface", "interactive UI" for lazar.
  • They want streaming, markdown, scrollback, keyboard shortcuts, or split panes.
  • They mention bubble tea, textual, ink, blessed, ratatui, or any TUI framework.

Always ask first

Before generating anything, ask the user three things:

  1. Stack — see Stack Choice table below. Default is TypeScript + readline.
  2. Customization — input style, tool display, loader, banner.
  3. Project name — for the directory and any banner art.

Don't pre-commit to a stack. Different users have very different terminal preferences.

Stack choice

Stack When to pick Notes
TypeScript + readline (default) Cross-platform, no compile step, easiest to extend Single src/cli.ts file, adapts to terminal theme. See references/typescript-readline.md.
Go + Bubble Tea + Glamour User wants a polished split-pane TUI with markdown, viewport, textarea, image rendering Heavier setup. Set GOMODCACHE=workspace/<name>/.gocache/mod (see _meta/log-rotation cousin). The user may already have one at workspace/lazartui/ — read it first.
Python + Textual Python users, widget-based design Use a venv at workspace/<name>/.venv/. Textual handles streaming widgets cleanly.
Other User has a specific stack Read references/stream-json-protocol.md and adapt.

Lazar protocol — read this first

Read the full file on GitHub · 120 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 120 lines · 0 tokens per session scan A aaebe44b2a5b

Subscribe to this mod's changes

create-tui is a skill published in the GitHub repository jasonkneen/lazar (31 stars, last pushed 27d ago), licensed MIT. It adds 97 tokens to every session and 1,796 once invoked, about $0.0005 per session on Opus 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-30.

Related

Other skills, from other repositories

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

menu-transitions-rtl

Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens