Skills

Write Tui

Use when writing or modifying the kimi-code terminal UI in apps/kimi-code/src/tui, ...

Install

npx skills add MoonshotAI/kimi-code --skill write-tui -g -a claude-code -y
Repository
MoonshotAI/kimi-code8.1k
Category
Design
Updated
3d ago
License
MIT
Context cost
Mediumabout 2,009 tokens
Runs scripts
No, instructions only

What it does

Use when writing or modifying the kimi-code terminal UI in apps/kimi-code/src/tui, components, dialogs/selectors, slash commands, themes, streaming render, or the KimiTUI controllers. Covers the architecture, where new features go, test placement, the theme system mechanics, and the dialog interaction/visual spec (DESIGN.md).

Write TUI (apps/kimi-code)

The terminal UI lives in apps/kimi-code/src/tui. Before writing TUI code, read apps/kimi-code/AGENTS.md for the always-on map, module boundaries, and hard constraints (printable-key decoding, no chalk named colors, etc.). This skill is the how-to: architecture orientation, feature routing, test placement, theme mechanics, and the dialog spec.

For any list dialog, selector, input box, or status/toggle list, the interaction and visual rules are normative, see DESIGN.md in this folder and follow its self-check list before submitting.

Architecture

KimiTUI is a coordinator that wires state, layout, session, and dialogs together and delegates heavy logic to controllers.

Read the whole SKILL.md on GitHub

More in Design