widget-creator
Installation
SKILL.md
Widget Creator Skill
This skill provides a comprehensive step-by-step guide for AI coding agents to create new widgets in the Hex1b TUI library. Widgets are the building blocks of Hex1b applications, following a declarative pattern inspired by React.
Overview
Creating a widget in Hex1b involves several coordinated files:
| File | Purpose |
|---|---|
src/Hex1b/Widgets/{Name}Widget.cs |
Immutable widget record (describes what to render) |
src/Hex1b/Nodes/{Name}Node.cs |
Mutable node class (manages state, renders) |
src/Hex1b/{Name}Extensions.cs |
Fluent API extension methods |
src/Hex1b/Theming/{Name}Theme.cs |
Theme elements (colors, characters) |
tests/Hex1b.Tests/{Name}NodeTests.cs |
Unit tests |