ink
Installation
SKILL.md
Ink Platform Skill
Consolidated skill for building CLI applications with Ink (React for CLIs). Use decision trees below to find the right components and patterns, then load detailed references.
Critical Rules
Follow these rules in all Ink code:
- All text must be wrapped in
<Text>. Raw strings outside<Text>will throw an error. <Text>only allows text nodes and nested<Text>. You cannot nest<Box>inside<Text>.<Box>is alwaysdisplay: flex. Think of every<Box>as<div style="display: flex">.- Use
useApp().exit()to exit. Never callprocess.exit()directly from within components. - Install both
inkandreact. They are peer dependencies:npm install ink react. <Static>only renders new items. Changes to previously rendered items are ignored.