arindam200/termui/cli-creator
Claude Code and agent skill by arindam200/termui
- community
Checking that the SKILL.md file is still in the repository.
Build a complete, working CLI tool using TermUI components. Use this skill whenever someone describes a CLI or TUI app they want to create — a dashboard, a setup wizard, a data browser, a deployment tool, a monitoring app, or any interactive terminal interface. Trigger on phrases like "build me a CLI", "create a terminal app", "make a TUI for", "I want a command-line tool that", "build a CLI that shows", or any request to generate a Node.js CLI from scratch. Even vague requests like "I need a C…
Install
npx vskill@latest install arindam200/termui/cli-creatorSKILL.md
The same SKILL.md was published earlier as arindam200/termui/cli-creator.
TermUI CLI Creator
Your job is to build a complete, working CLI project for the user using TermUI. The output is real code — a runnable TypeScript app.
TermUI is a React/Ink-based terminal UI framework. 101 components. Shadcn-style: npx termui add <component> copies source files into the user's project. No runtime registry dependency.
Step 1 — Interview the user
Before writing a single line of code, understand what they're building. Ask these questions (you can batch them):
- What does the CLI do? What problem does it solve? (e.g., "manage my deployment configs", "browse GitHub PRs", "monitor server metrics")
- What are the main screens or commands? Does it have subcommands (like
mytool deploy,mytool logs) or is it one interactive TUI session? - What data does it work with? Lists of things? Forms to fill in? Real-time metrics? File browsing?
- Any interactions? Search? Filters? Edit/create/delete? Confirm dialogs?
- Visual style? Any theme preference? (Dracula, Nord, Catppuccin, Monokai, Solarized, Tokyo Night, One Dark, or default purple) — default to Dracula if they don't care
- Tech context? Do they already have a Node project, or are we starting from zero?
If the request is clear enough (e.g., "build me a Docker container manager with a table view and a detail panel"), skip questions you can infer and just clarify the ones that would change the component selection.
Step 2 — Choose a CLI pattern
Map what they described to one of these patterns. Patterns can be combined.
| Pattern | When to use | Core components | |
|---|---|---|---|
| Data Browser | Browse/search/filter a list of items | AppShell + Table or VirtualList + SearchInput | |
| Dashboard | Real-time metrics, logs, charts | AppShell + Tabs + BarChart/Gauge/Sparkline + useInterval | |
| Setup Wizard | Onboarding, init, configuration | SetupFlow + TextInput/Select/MultiSelect + Spinner | |
| CRUD Manager | Create / read / update / delete resources | AppShell + Table + Form/FormField + Modal/Confirm | |
| Auth Flow | Login, token entry, account setup | LoginFlow + TextInput/PasswordInput + SetupFlow | |
| Log Viewer | Streaming logs, event feeds | AppShell + Log + StatusMessage + useAsync | |
| File Browser | Navigate filesystem, pick files | AppShell + DirectoryTree or FilePicker |
Full working code for each pattern is in references/patterns.md. Read it before writing code.
Step 3 — Scaffold the project
File structure to generate
For single-screen apps (e.g., a simple wizard) you can skip screens/ and put everything in app.tsx.
package.json template
tsconfig.json template
Setup commands to give the user
Generate the npx termui add command using the kebab-case component names from the registry (e.g., app-shell, table, select, spinner, setup-flow). List only the components the project actually uses.
Step 4 — Write the code
Entry point pattern (src/index.tsx)
Root app with screen routing (src/app.tsx)
Always wrap in ThemeProvider — never render components without it.
Keyboard conventions
q/Ctrl+C→ quitEscape→ go back / cancel↑↓→ navigate listsEnter→ select / confirmTab/Shift+Tab→ switch tabs or focus?→ show help
Implement quit handling in every screen:
Step 5 — Component reference quick-pick
Read references/component-picker.md to match user needs to specific components with their exact props.
Read references/patterns.md for complete, copy-paste-ready implementations of each pattern.
Code quality rules
- Every component that accepts a color prop falls back to
useTheme().colors.primary— never hardcode hex - Use
useStatefor local UI state, pass callbacks up for cross-screen navigation - Keep screens focused — one file per screen, props define the screen's contract
- For async work (fetching data, running commands), use
useAsyncfromtermui/coreand showSkeletonorSpinnerwhile loading - For data that should persist between sessions, use the
confadapter (termui/conf) which wraps theconfnpm package - Add
ErrorBoundaryat the app root so crashes don't leave the terminal in a broken state
Deliver to the user
When done, give them:
- Every file with its full content (no placeholders like
// TODO) - The exact
npx termui addcommand to run npm install && npm run devto try it immediately- A one-line description of the keyboard shortcuts
If the app is complex (3+ screens), walk through what each screen does before showing the code.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cli-creator/SKILL.md
Popularity
- Repository stars
- 142
- Repository forks
- 11
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arindam200/termui/cli-creator)