Skip to main content
prompt GP ChatGPT

06-ink-react-terminal-ui — Claude Code prompt: Ink terminal UI

06-ink-react-terminal-ui — a Claude prompt that follows the React + Ink render path in the claude-code repo, checks the components and theme, and ends with a working terminal render test.

no license ★ 3,444 updated 2026-10-14

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/06-ink-react-terminal-ui.md
Open on GitHub

What 06-ink-react-terminal-ui does

The prompt walks the agent through the Ink fork that lives in src/ink/ of the claude-code repo. It reads the chain in order: src/ink.ts, root.ts, reconciler.ts, renderer.ts, dom.ts, then writes down how the virtual DOM turns into terminal strings. The write-up lands as a short architecture note.

Then come the checks. Every component under src/ink/components/ is scanned for missing imports, ThemeProvider is inspected for outside dependencies, and 3-5 components in src/components/ get their imports traced. After that the agent writes scripts/test-ink.tsx, which mounts a tiny component and unmounts it after 500 ms.

Failures usually come from the same few spots, and the prompt names them: a missing yoga-wasm-web or yoga-layout (Ink uses Yoga for flexbox layout), a reconciler that does not fit React 19, stdout without a TTY, no chalk for colors. Paths like /workspaces/claude-code and the file names come from one specific repo, so check them against your own tree before running the command.

What it helps with

  • trace how React components reach the terminal output
  • spot an Ink component with a broken import
  • confirm the theme layer pulls no outside resources
  • build a minimal render test for the terminal
  • diagnose an Ink crash caused by a missing TTY or Yoga

Example prompts for the agent

  • Run /06-ink-react-terminal-ui and find out why the Ink components never print to the terminal.
  • Use /06-ink-react-terminal-ui to check imports in src/ink/components/ and in the main components under src/components/.
  • Run /06-ink-react-terminal-ui, write scripts/test-ink.tsx and prove the render works.

How to install 06-ink-react-terminal-ui

Manually: put the files in place

.claude/commands/06-ink-react-terminal-ui.md

Questions about 06-ink-react-terminal-ui

How do I install 06-ink-react-terminal-ui in Claude Code?

Drop the file at .claude/commands/06-ink-react-terminal-ui.md inside your project. Claude then exposes it as the slash command /06-ink-react-terminal-ui.

What does 06-ink-react-terminal-ui do?

It traces the React + Ink render pipeline in the claude-code repo, checks the components and the theme provider, then builds a small render test and fixes what breaks.

What can stop the render test from working?

The prompt names the usual suspects: missing yoga-wasm-web or yoga-layout, a reconciler that does not fit React 19, stdout without a TTY, and no chalk. The agent checks each and patches what it finds.

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set17

The whole set →
11-mcp-integration The 11-mcp-integration prompt guides an investigation of Claude Code’s MCP client and server mode. Use it to inspect configuration and outline a client-to-server test. GP ChatGPT ★ 3,444repo stars 10-context-and-prompts 10-context-and-prompts takes the agent through the CLI prompt layer: reads the builder, repairs context collection on Linux, connects memory from CLAUDE.md. The last step is a script that prints the finished prompt. GP ChatGPT ★ 3,444repo stars 05-env-and-auth 05-env-and-auth sets up environment variables and tests API connectivity in claude-code workspaces. Creates a documented .env.example and builds a test script for Bun. GP ChatGPT ★ 3,444repo stars 07-tool-system 07-tool-system is a Claude Code prompt for auditing the CLI tool interface, registry, and imports. It also asks for a smoke test that loads the available tools. GP ChatGPT ★ 3,444repo stars 14-dev-runner The 14-dev-runner prompt configures a development runner for Claude Code to execute TypeScript directly with Bun. It eliminates the need for full production builds during iterative work. GP ChatGPT ★ 3,444repo stars 09-query-engine The 09-query-engine prompt guides an architecture review of QueryEngine and a basic conversation test against the Anthropic API. Use it to trace requests, streaming events, and tool calls. GP ChatGPT ★ 3,444repo stars 12-services-layer 12-services-layer — a prompt that configures Claude Code CLI background services: analytics, policy limits, remote settings, session memory, and bootstrap data. GP ChatGPT ★ 3,444repo stars 02-runtime-shims 02-runtime-shims is a Claude Code prompt that creates runtime shims for bun:bundle flags and MACRO globals to run CLI source without Bun. GP ChatGPT ★ 3,444repo stars

Project sponsors

Companies that keep this analytics open