inktui
Build beautiful CLI apps with Ink (React for terminals), ink-ui components, and create-ink-app scaffolding.
Skill by delexw
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/delexw-inktui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/inktui
What's inside
- Skill name
inktui- Description
- Build beautiful CLI apps with Ink (React for terminals), ink-ui components, and create-ink-app scaffolding. Use this skill whenever the user wants to build a terminal/CLI user interface with React, create interactive command-line tools, use Ink components like Box/Text, work with ink-ui widgets (Select, TextInput, Spinner, etc.), scaffold a new CLI app with create-ink-app, or write any JSX that renders to the terminal. Also triggers when the user mentions 'ink', 'ink-ui', '@inkjs/ui', 'CLI app with React', 'terminal UI', 'create-ink-app', or imports from the 'ink' package. If the user wants to build an interactive CLI and isn't already using blessed, prompts, or enquirer, this skill applies.
- License
- MIT
- Instructions
- 146 lines in SKILL.md · view on GitHub
Files (5)
- SKILL.md
- components.md · references/
- hooks.md · references/
- ink-ui.md · references/
- patterns.md · references/
SKILL.md (first lines)
# Ink — React for CLIs
Ink is a React renderer for terminal applications. It uses Yoga (flexbox) for layout and renders to stdout. Every element is a flex container — think `<div style="display: flex">` for the terminal.
## Quick Start
```bash
# Scaffold a new project
npx create-ink-app my-cli # JavaScript
npx create-ink-app --typescript my-cli # TypeScript
```
Or add to an existing project:
```bash
npm install ink react
npm install @inkjs/ui # Optional: pre-built UI components
```
## Core Architecture
Ink apps are React component trees rendered via `render()`. The process stays alive while there's work in the event loop. Exit via Ctrl+C, `useApp().exit()`, or `instance.unmount()`.
```tsx
import React, {useState} from 'react';
import {render, Text, Box} from 'ink';
function App() {
const [count, setCount] = useState(0);
return (
<Box flexDirection="column">
<Text>Count: {count}</Text>
<Text color="green">Press q to quit</Text>
</Box>
);
}
render(<App />);
```
## Reference Files
Read these for detailed API documentation and examples:
- [references/components.md](references/components.md) — All Ink core components (`Box`, `Text`, `Newline`, `Spacer`, `Static`, `Transform`) with full props
- [references/hooks.md](references/hooks.md) — All hooks (`useInput`, `useApp`, `useFocus`, `useFocusManager`, `useStdin`, `useStdout`, `useStderr`, `useWindowSize`, `useBoxMetrics`, `useCursor`, `usePaste`)
- [references/ink-ui.md](references/ink-ui.md) — All `@inkjs/ui` components (`TextInput`, `Select`, `MultiSelect`, `Spinner`, `ProgressBar`, `Alert`, `Badge`, `StatusMessage`, `ConfirmInput`, `EmailInput`, `PasswordInput`, `OrderedList`, `UnorderedList`) with props and theming
- [references/patterns.md](references/patterns.md) — Common patterns: multi-step wizards, loading states, tables, command routing, testing, fullscreen apps, and real-world examples
## Key Concepts
### Layout is Flexbox
Every element is a flex container. Use `<Box>` for layout with standard flex props: `flexDirection`, `justifyContent`, `alignItems`, `gap`, `padding`, `margin`, etc. Percentage widths/heights are supported.
### Text Must Be in `<Text>`
All string content must be wrapped in `<Text>`. Direct string children of `<Box>` will error. Nest `<Text>` inside `<Text>` for inline styling:
```tsx
<Text>
Hello <Text bold color="green">World</Text>
</Text>
```
### `<Static>` for Permanent Output
Use `<Static>` for output that should persist above the interactive area (like log lines). Content rendered in `<Static>` is written once and never re-rendered:
```tsx
<Static items={logs}>
{(log, i) => <Text key={i}>{log}</Text>}
</Static>
```
### Input Handling
Use `useInput` hook — not DOM events:
```tsx
import {useInput, useApp} from 'ink';
function App() {
const {exit} = useApp();
useInput((input, key) => {
if (input === 'q') exit();
if (key.return) handleSubmit();
});
return <Text>Press q to quit</Text>;
}
```
### Borders
`<Box>` supports border styles: `"single"`, `"double"`, `"round"`, `"bold"`, `"singleDouble"`, `"doubleSingle"`, `"classic"`.
```tsx
<Box borderStyle="round" borderColor="green" padding={1}>
<Text>Bordered content</Text>
</Box>
```
### Testing
Use `ink-testing-library`:
```tsx
import {render} from 'ink-testing-library';
const {lastFrame, stdin} = render(<App />);
expect(lastFrame()).toContain('Hello');
stdin.write('q'); // simulate input
```
### render() Options
```tsx
const instance = render(<App />, {
stdout: process.stdout, // custom writable stream
stdin: process.stdin, // custom readable stream
stderr: process.stderr, // custom writable stream
exitOnCtrlC: true, // default
patchConsole: true, // intercept console.log
debug: false,
maxFps: 30,
incrementalRendering: false, // only re-render changed linesFrom delexw/claude-code-misc, MIT.
More from delexw/claude-code-misc
- 0.448score
adr-author
delexw
Guide writing clear, enforceable Architectural Decision Records (ADRs) that work with AI-powered review systems and human teams alike.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
telegram-bot
delexw
Interact with Telegram — read messages from your channel and send messages back.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
animejs
delexw
Write correct anime.js v4 animations with the right imports, API patterns, easing, timelines, and advanced features.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
ladybugdb
delexw
Expert guide for LadybugDB — an embedded, in-process property graph database using openCypher.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
tauri-v2
delexw
Use this skill whenever "tauri" appears in the user's message, or they reference tauri.conf.json, src-tauri, or @tauri-apps packages.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
oxfmt
delexw
Run and configure oxfmt — the high-performance JavaScript/TypeScript formatter built on the Oxc compiler stack, ~30x faster than Prettier.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
oxlint
delexw
Run and configure oxlint — the high-performance JavaScript/TypeScript linter built on the Oxc compiler stack.
SkillDFreshness: D★ 2Claude Code +9 - 0.439score
a2a-js-dev
delexw
Build A2A (Agent-to-Agent) protocol applications using the @a2a-js/sdk TypeScript/JavaScript SDK.
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 28, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/delexw/claude-code-misc
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from delexw
- 0.448score
adr-author
delexw
Guide writing clear, enforceable Architectural Decision Records (ADRs) that work with AI-powered review systems and human teams alike.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
telegram-bot
delexw
Interact with Telegram — read messages from your channel and send messages back.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
animejs
delexw
Write correct anime.js v4 animations with the right imports, API patterns, easing, timelines, and advanced features.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
ladybugdb
delexw
Expert guide for LadybugDB — an embedded, in-process property graph database using openCypher.
SkillDFreshness: D★ 2Claude Code +9 - 0.448score
tauri-v2
delexw
Use this skill whenever "tauri" appears in the user's message, or they reference tauri.conf.json, src-tauri, or @tauri-apps packages.
SkillDFreshness: D★ 2Claude Code +9 - 0.443score
oxfmt
delexw
Run and configure oxfmt — the high-performance JavaScript/TypeScript formatter built on the Oxc compiler stack, ~30x faster than Prettier.
SkillDFreshness: D★ 2Claude Code +9
Cite this page
inktui skill. Agent Mart. https://agentmart.dev/skills/delexw-inktui (last updated 2026-10-24)