ink
Skill by shadcn-labs
Guides an AI assistant through building command-line apps with Ink, React for CLIs. Covers components, hooks, Flexbox layout, testing and accessibility. Aimed at developers who build terminal interfaces with React.
Install ink
Built from the published package, never by AI.
git clone --depth 1 https://github.com/shadcn-labs/termcn /tmp/termcn && mkdir -p ~/.claude/skills && cp -r /tmp/termcn/.agents/skills/ink ~/.claude/skills/inkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/shadcn-labs/termcn /tmp/termcn && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/termcn/.agents/skills/ink ~/.gemini/antigravity-cli/skills/inkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The Ink skill is a consolidated guide for building command-line applications with Ink, which the source describes as React for CLIs. It opens with critical rules, such as wrapping all text in Text, not nesting Box inside Text, and using useApp().exit() instead of process.exit(). It then points the assistant to decision trees and reference files for components, hooks, layout, testing, accessibility and best practices.
The skill works by routing a task to the right file. Decision trees cover displaying content, user input, layout, app lifecycle, testing, accessibility and troubleshooting. Reference files are linked by path, and the source shown is the entry file, so the detailed docs are not included in this listing. It is aimed at developers who build interactive terminal tools with React.
Written from the project's SKILL.md and checked against it.
What it can do
- Critical rulesCore rules for Text, Box, exiting the app and installing ink and react.
- Components guidePoints to references for Text, Box, Static, Transform, Newline and Spacer.
- Hooks guideCovers useInput, useApp, useStdin, useFocus, useFocusManager and useCursor.
- Layout guidanceFlexbox layout recipes covering flexDirection, gap, flexGrow and flexWrap.
- Testing guidancePoints to ink-testing-library for rendering output and simulating input.
- Accessibility guidanceCovers screen reader support, ARIA roles and states, aria-label and aria-hidden.
- Troubleshooting indexMaps text, layout, input, focus, CI and flickering problems to reference files.
- Best practices filesRule files for performance, components, hooks and core render behavior.
What you need
- Node.js and npm
- The ink and react packages
Try asking
- Use the Ink skill to build a two-column Flexbox layout in my terminal app.
- Help me handle arrow key input with useInput in my Ink CLI.
- Write tests for my Ink app using ink-testing-library.
Good to know
- The reference files it links to are not included in this source.
- Static only renders new items, so changes to previously rendered items are ignored.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ink/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/accessibility/REFERENCE.md5 KB -
references/components/REFERENCE.md2 KB -
references/components/box.md5 KB -
references/components/text.md2 KB
Show all 24 files
-
references/components/utilities.md3 KB -
references/core/REFERENCE.md3 KB -
references/core/api.md3 KB -
references/core/configuration.md4 KB -
references/core/gotchas.md5 KB -
references/core/patterns.md7 KB -
references/hooks/REFERENCE.md2 KB -
references/hooks/app-lifecycle.md2 KB -
references/hooks/focus.md5 KB -
references/hooks/input.md4 KB -
references/hooks/stdio.md3 KB -
references/layout/REFERENCE.md4 KB -
references/layout/patterns.md4 KB -
references/testing/REFERENCE.md5 KB -
rules/RULES.md1 KB -
rules/components.md8 KB -
rules/core.md9 KB -
rules/hooks.md10 KB -
rules/performance.md7 KB
Alternatives to ink
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ink: common questions
Does the Ink skill require installing Ink and React?
Yes. The source says ink and react are peer dependencies and should both be installed with npm.
How can Ink apps be tested?
The skill points to ink-testing-library, which covers rendering output, simulating stdin input, snapshots and checking the last frame.
What should I avoid in Ink code?
The rules say raw strings must be inside Text, Box cannot be nested in Text, and process.exit() should not be called from components.
How do I install ink?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ink free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ink safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ink?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
