Build a terminal interface with AI
Define a terminal screen with forms, lists and status indicators, and connect its controls to state and actions in a local application.
Build a terminal interface with AI around a task someone repeats. An operator preparing a daily export might need to select files, choose an output name and see how far the job has progressed. The ink skill shows how to describe that screen as JSON and render it using the project's component catalogue.
A text field can update the same state read by another part of the display. A row can be repeated for each selected file, and a progress bar can reflect the value your application supplies. The operation that actually writes the export belongs in the application's action handler.
What it does
- Lay out related controls and status messages together.
- Bind a form field to the value it edits.
- Repeat rows from an array of items.
- Show a component only when its condition holds.
- Register a custom component for something the standard catalogue does not cover.
Install and use
- Install the skill in your agent and prepare a Node/React project with Ink and the relevant json-render packages. A fixed JSON interface needs no external account.
- Ask, “Build a three-file export screen with an output field and a preview of the selected files.”
- Try the local example, verify state changes, then connect the application handler that performs the export.
FAQ
Source
Made by Vercel Labs. Original skill: ink, published on GitHub under the Apache-2.0 licence.
View on GitHub