Design a terminal interface with AI
Build a keyboard-friendly list, form or split view in Go, and check what happens when the terminal window narrows.
To design a terminal interface with AI, give it a real task. A small book catalogue needs to show a list of titles and the details of the selected book. The zeichenwerk skill helps an agent use the Go library's layout and widget APIs to build that screen. Moving the selection can update the details without opening another window.
Arrange a first pass around a narrow terminal. If a long title pushes the search field off screen, there is little point polishing the colours yet. Once the controls fit, a shared theme and a visible focus state can make the page easier to scan.
What it does
- Place a list and its detail view side by side.
- Use a labelled form for several related fields.
- Update a panel when the selection changes.
- Make the focused control easy to pick out from surrounding boxes.
- Check the layout at two window sizes with long sample values.
Install and use
- Give your agent a Go project using the Zeichenwerk module and a terminal in which to preview it. Supply sample records you may share.
- Try asking for a catalogue with a book list, search box and details pane. Specify where keyboard focus should go after a selection.
- Run the finished project in your own environment and try the same operation with a narrow window and the mouse put aside.
FAQ
Source
Made by Thomas Rustemeyer. Original skill: zeichenwerk, published on GitHub under the MIT licence.
View on GitHub