write-tui
Use when writing or modifying the kimi-code terminal UI in apps/nori-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
Perfil del activo
Investigación y trabajo de conocimiento
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Escenario
Agents de investigación
I need my agent to research a topic, compare sources, and produce a concise report.
Afinidad con Agent
Claude Code + Browser agents + CLI
Funciona con Codex, Claude Code, Cursor, CLI o Agents personalizados.
Instalar
Listo
npx skills add wangyuahn/nori-code --skill write-tui
Mantenimiento
Actual
Actualizado hoy
Riesgo
Requiere revisión
Dependency or permission surface needs review
Calidad de GitHub
13
58/100 Calidad · 59/100 Confianza
Etiquetas de cobertura
Notas de revisión
Dependency or permission surface needs review · Permission surface may require sandboxing
Tarjeta de adopción del Agent
Confianza, auditoría y preparación de instalación de un vistazo
Estas puntuaciones combinan metadatos públicos del repositorio, señales de revisión de OpenAgentSkill, actualidad de mantenimiento y preparación de instalación. Sirven para preseleccionar; no sustituyen la revisión humana.
Calidad
PrometedorUseful candidate, but compare it with alternatives before adopting.
Confianza
Do not auto-installTrust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Auditoría
Requiere revisiónRevisión legible por máquina de la preparación de instalación, los metadatos de seguridad, el mantenimiento y el riesgo de adopción.
Trust Score de OpenAgentSkill v5
Revisión humana antes de instalar
Choose a stronger alternative or inspect the source manually before any install attempt.
Estrellas
13 estrellas de GitHub
Actividad del repositorio
13 estrellas y 0 forks
Mantenimiento
Actualizado hoy
Licencia
MIT
Instalar
npx skills add wangyuahn/nori-code --skill write-tui
Seguridad de instalación
Ruta estándar de paquete o instalación en tiempo de ejecución
Superficie de permisos
secrets or environment access, shell or command execution
Resultados del Agent
Aún no hay datos de resultados del Agent
Documentación
Usable metadata, review docs
Resumen de riesgo
Revisar antes de producción
- The skill is highly project-specific, which limits its applicability outside the nori-code repository, but this is acceptable for a targeted skill.
- Financial research output is not financial advice; require human review before any live investment decision.
- Low GitHub adoption signal
- Quality score needs review
Preparación de instalación
Ruta de instalación disponible
- La ruta de instalación está disponible
- La evidencia del repositorio está disponible
- La licencia está declarada
- Aún no hay evidencia de resultados Agent-Proven
Metadatos legibles por Agent
Datos de decisión legibles por máquina para este skill.
Usa este bloque o el JSON integrado para decidir si un Agent debe instalar este skill, elegir una alternativa o pedir revisión humana primero.
Tareas adecuadas
- flujos de Browser automation
- Equipos de Claude Code
- builders willing to evaluate younger projects
- Navigate pages
Agents adecuados
Decisión de instalación
- Comando
- npx skills add wangyuahn/nori-code --skill write-tui
- Política
- Bloquear
- Revisión humana
- Sí
Confianza y riesgo
- Confianza
- 51/100
- Auditoría
- 70/100
- Nivel de riesgo
- Requiere revisión
Ciclo de resultados
- Endpoint
- /api/agent/outcome
- ID del evento
- resolve
- Resultados
- 5
Comando de instalación
npx skills add wangyuahn/nori-code --skill write-tuiNo usar cuando
- Equipos que necesitan un SLA con soporte del proveedor
- production agents without a repository review
- Low GitHub adoption signal
- The skill is highly project-specific, which limits its applicability outside the nori-code repository, but this is acceptable for a targeted skill.
- No OpenAgentSkill engagement data yet
Skill alternativo
Last30days Skill
53.5K Estrellas
npx skills add mvanhorn/last30days-skill -g
Skill alternativo
Academic Research Skills
38.4K Estrellas
npx skills add Imbad0202/academic-research-skills
Skill alternativo
GPT Researcher
28.0K Estrellas
npx skills add assafelovic/gpt-researcher
Skill alternativo
DeepResearch
19.8K Estrellas
npx skills add Alibaba-NLP/DeepResearch
Seguridad de Agent v2
22/100 · Evitar instalación automática
This skill should not be selected by an agent without explicit human security review.
Do not auto-install. Inspect the source, dependencies, and permission surface first.
Alto
Ejecución de shell o comandos
Los metadatos del skill hacen referencia a terminal, CLI, shell, subprocesos o flujos de ejecución de comandos.
Medio
Browser automation
Skill may drive a browser or interact with web pages.
Medio
Acceso a red
El skill probablemente consulta páginas remotas, API, repositorios o servicios externos.
Medio
Acceso al sistema de archivos
El skill puede leer o escribir archivos de proyecto, documentos, artefactos generados o estado local.
- Indicios de permisos de alto riesgo: Shell or command execution, Secrets or environment access
- Dependency or permission surface needs review
Destinos de instalación
Instala este skill en tu flujo de Agent
Usa el endpoint público para obtener el comando, la lista de seguridad, prompts y enlaces canónicos.
OpenAgentSkill CLI
Resolve policy, run the source installer safely, and report a verified install receipt.
$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install wangyuahn-write-tuiPlan de resolución de Agent
Deja que un Agent valide el ajuste antes de instalar.
La API Resolve devuelve la skill elegida, alternativas, política de seguridad, notas de auditoría, destino de instalación y un prompt listo para usar.
Abrir JSON
/api/agent/resolve?task=Use%20write-tui%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Texto de Resolve
/api/agent/resolve?task=Use%20write-tui%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Traspaso de instalación
/api/skills/wangyuahn-write-tui/install
Agent debe revisar
- Task fit and alternatives from Resolve API.
- Audit score, trust score, and safety policy warnings.
- Install target compatibility for Codex, Claude Code, Cursor, or CLI.
Copiar prompt
Task: Use write-tui in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20write-tui%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/wangyuahn-write-tui/install
Install command: npx skills add wangyuahn/nori-code --skill write-tui
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Traspaso de Agent
Da al Agent la ruta de instalación, no otro directorio.
Usa el endpoint público para obtener el comando, la lista de seguridad, prompts y enlaces canónicos.
Traspaso de instalación
/api/skills/wangyuahn-write-tui/install
Formato de texto LLM
/api/skills/wangyuahn-write-tui/install?format=text
Buscar alternativas
/api/skills/search?q=write-tui&limit=3
Prompt de Agent
Use write-tui for this task. Review https://www.openagentskill.com/api/skills/wangyuahn-write-tui/install, then install with: npx skills add wangyuahn/nori-code --skill write-tuiMetadatos del Registry
Perfil legible por Agent para seleccionar skills automáticamente.
La API Registry expone señales de decisión, confianza, auditoría, casos de uso e instalación sin raspar la interfaz.
Manifest
/api/registry/manifest/wangyuahn-write-tui
Texto LLM
/api/registry/manifest/wangyuahn-write-tui?format=text
Alias de instalación
/api/registry/install/wangyuahn-write-tui
Recomendar
/api/registry/recommend?task=Use%20write-tui%20in%20an%20agent%20workflow&limit=3
Afinidad con Agent
Browser automation
Etiquetas de uso
Plataformas
Claude Code, Browser agents
Informe de auditoría
Requiere revisión · 70/100
Revisión legible por máquina de la preparación de instalación, los metadatos de seguridad, el mantenimiento y el riesgo de adopción.
Panel de decisión de Agent
Needs validation for Browser automation
Do a manual repository review before adding this to an agent workflow.
Rol en la pila
Requiere validación
Ajuste principal
Browser automation
Etiqueta de confianza
Requiere revisión manual
Ruta de instalación
Comando listo
Úsalo cuando
- flujos de Browser automation
- Equipos de Claude Code
- builders willing to evaluate younger projects
Evidencia
- recent repository activity
- install command or GitHub repo available
- perfil de calidad 58/100
revisar primero
- Low GitHub adoption signal
- The skill is highly project-specific, which limits its applicability outside the nori-code repository, but this is acceptable for a targeted skill.
- No OpenAgentSkill engagement data yet
Ruta de implementación
- 1Instálalo en un Agent de sandbox y ejecuta una tarea de Browser automation de principio a fin.
- 2Compare output quality, latency, and failure behavior against at least one alternative.
- 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.
Perfil de confianza
Do not auto-install
Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.
Adopción en GitHub
Corregir13 estrellas de GitHub
Actividad de stars/forks
Corregir13 estrellas y 0 forks; la actividad de issues no está disponible en los metadatos actuales
Mantenimiento reciente
AprobadoActualizado hoy
Claridad de licencia
AprobadoMIT
Señales positivas
- Revisión de IA aprobada
- La ruta de instalación está disponible
- La evidencia del repositorio está disponible
- Repositorio mantenido recientemente
- El comando de instalación no muestra un patrón de alto riesgo evidente
- El ciclo de resultados está listo, pero necesita la primera ejecución real de Agent
Revisar antes de instalar
- The skill is highly project-specific, which limits its applicability outside the nori-code repository, but this is acceptable for a targeted skill.
- Financial research output is not financial advice; require human review before any live investment decision.
- Low GitHub adoption signal
- Quality score needs review
- Permission surface needs review: secrets or environment access, shell or command execution
- GitHub adoption: 13 GitHub stars
- Stars/forks activity: 13 stars, 0 forks; issue activity unavailable in current metadata
- Dependency/runtime risk: command execution surface, credential or environment access
- Permission surface: secrets or environment access, shell or command execution
- Aún no hay informes reales de resultados del Agent
- Se requiere revisión humana antes de una instalación desatendida
Acción recomendada
Choose a stronger alternative or inspect the source manually before any install attempt.
Perfil de calidad
Prometedor candidato para flujos de Agent
Useful candidate, but compare it with alternatives before adopting.
Ajuste de flujo
Usa esta skill en estos escenarios
Operate web apps
Browser automation
I need my agent to control a browser, fill forms, and verify web app workflows.
Operate local tools
Local desktop
I need my agent to operate local files and desktop apps in a repeatable workflow.
Investigate faster
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Ajuste de flujo
Añadir a un flujo completo
Operate and verify web apps
Browser QA agent
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
Frontend and UI
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Find, compare, and synthesize
Research report agent
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Lista de alternativas
Compara antes de instalar
Similar skills that may fit this task.
Last30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
Academic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
GPT Researcher
Run autonomous deep research over web and local sources
DeepResearch
Tongyi Deep Research, the Leading Open-source Deep Research Agent
Resumen
--- name: write-tui description: Use when writing or modifying the kimi-code terminal UI in apps/nori-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/nori-code)
The terminal UI lives in `apps/nori-code/src/tui`. Before writing TUI code, read `apps/nori-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](./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.
- `src/tui/kimi-tui.ts` — the `KimiTUI` coordinator. Holds `state`, owns startup/shutdown order, layout/editor wiring, user-input entry, sending/queueing, session lifecycle, and the slash-command handler dispatch. It should **not** accumulate event-routing or rendering logic — those live in controllers. - `src/tui/tui-state.ts` — `TUIState`, `createTUIState`, `createInitialAppState`. The single global UI state shape. Before adding a new global field, decide whether it truly belongs here vs. local component state. - `src/tui/controllers/` — the independently-testable responsibilities. Each controller owns one slice: - `session-event-handler.ts` — routes SDK session events (`handleEvent` dispatch + the per-event `handleXxx`). Concrete event handling goes here, not in `KimiTUI`. - `streaming-ui.ts` — streaming render: assistant delta, thinking, tool call / result, compaction, subagent, background agent, transcript aggregation. - `session-replay.ts` — resume/replay orchestration; drives replay records through the same live render hooks. Stateless replay parsing/limiting/projection helpers belong in `src/tui/utils/message-replay.ts`. - `tasks-browser.ts` — the tasks browser controller. - `editor-keyboard.ts` — editor keyboard handling, exit shortcuts, external editor, clipboard image. - `auth-flow.ts` — login/auth orchestration (`refreshConfigAfterLogin`, etc.). - `src/tui/commands/` — slash-command declaration, parsing, ordering, and dynamic skill-command generation. Parsing and types only; execution is dispatched from `KimiTUI`'s slash-command handler section, and complex execution sinks into `utils` or focused components. - `src/tui/components/` — pi-tui components by UI type: `chrome/` (footer, todo, welcome, loader, device code), `dialogs/` (selectors, approval/question panels, settings popups that replace the editor), `editor/` (input box + mention provider), `media/` (image, diff, code highlight), `messages/` (transcript blocks + tool-renderers), `panes/` (activity, queue). - `src/tui/reverse-rpc/` — adapts SDK approval/question callbacks into UI panel data and the user's choice back into an SDK response. - `src/tui/theme/` — themes, color tokens, style helpers, pi-tui markdown theme, terminal-background detection. The single source of truth for color. - `src/tui/utils/` — TUI-only utilities (need `TUIState` or a component). App-wide, UI-independent helpers go in `src/utils/`.
When a controller or `KimiTUI` section keeps growing, split pure functions, state projections, and presentation components into the matching directory rather than expanding the file.
## Where new features go
The feature type decides the landing spot:
- **CLI arguments** → `src/cli/commands.ts` / `src/cli/options.ts`, passed into the TUI via `src/cli/run-shell.ts`. The CLI never operates on the session directly. - **CLI subcommands** → `src/cli/sub/`, non-interactive only; reach core via `@moonshot-ai/kimi-code-sdk`. - **Slash commands** → declare/parse/type under `src/tui/commands/`; add the execution entry in `KimiTUI`'s slash-command handler section; sink complex logic into `utils` or a focused component. - **Skill-derived commands** → hook into `buildSkillSlashCommands` / the skill command map; do not hard-code a single skill. - **Transcript message types** → define the shape in `src/tui/types.ts`, add/extend a `components/messages/` component, register the renderer in the transcript builder. - **Tool-result display** → extend `components/messages/tool-renderers/registry.ts` and the renderer; do not stack branches inside `ToolCallComponent`. - **Popup / selector** → `components/dialogs/`, mounted via `mountEditorReplacement`; follow [DESIGN.md](./DESIGN.md). If triggered by an SDK callback, check whether `reverse-rpc/` needs an adapter/controller/handler. - **SDK event handling** → add the dispatch in `session-event-handler.ts`'s `handleEvent`, then the matching `handleXxx`. - **Streaming render** → `controllers/streaming-ui.ts`. - **Session start / resume behavior** → the session-management section of `KimiTUI`; replay behavior → `controllers/session-replay.ts`, reusing live render paths. - **Status bar / activity / queue** → `chrome/footer`, `panes/activity`, `panes/queue`, and the matching `updateXxx`. - **Configuration option** → read/write + schema in `src/tui/config.ts`, then the settings UI; persist through `saveTuiConfig` (a component never writes the config file itself). - **Constants** → shared CLI/TUI non-copy constants in `src/constant/`; TUI-only non-copy constants in `src/tui/constant/`. Component-local copy, option labels, help text, dialog titles/footers stay next to their component — do not centralize copy into a global module. - **General capability** → no TUI-state dependency → `src/utils/`; depends on TUI state or a component → `src/tui/utils/`.
## Test placement
- Component behavior tests sit next to the component's existing tests (`test/tui/components/...`). - Command parsing tests → `test/tui/commands/`. - reverse-rpc tests → `test/tui/reverse-rpc/`. - Pure utility tests → next to the corresponding utils tests. - Do not create a generic `some-feature.test.ts` just to land a small feature; extend the nearest existing test file.
## Theme system mechanics
Themes are managed centrally under `src/tui/theme/`:
- `colors.ts` — semantic tokens: `ColorPalette`, `darkColors`, `lightColors`. - `styles.ts` — common chalk helpers built on top of `ColorPalette`. - `pi-tui-theme.ts` — the markdown/pi-tui theme config. - `terminal-background.ts` — terminal background detection used by auto resolution. - `bundle.ts` — packs `colors`, `styles`, `markdownTheme` into a `KimiTUIThemeBundle`. - `index.ts` / `detect.ts` — theme type and auto/dark/light resolution.
> **Keep the color-token set in sync.** `ColorPalette` in `colors.ts` is the source of truth for color tokens. When you add, rename, or remove one, update its mirrors in the same change: the custom-theme JSON schema (`apps/nori-code/src/tui/theme/theme-schema.json`), the token tables in the custom-theme docs (`docs/en/customization/themes.md` and `docs/zh/customization/themes.md`), and the token table in the `custom-theme` built-in skill (`packages/agent-core/src/skill/builtin/custom-theme.md`).
Apply / switch flow:
- UI entry: `ThemeSelectorComponent` → `handleThemeCommand` → `applyThemeChoice`. - The real apply step is `KimiTUI.applyTheme`: it updates `state.theme`, `state.appState.theme`, and notifies components to refresh their palette. - Persist the choice through `saveTuiConfig` — a component must not write the config file itself.
> The **hard color rules** (no chalk named colors, contrast ratios, no module-top-level cached styled functions, add a `ColorPalette` token before inventing a color) are normative and guard-enforced — they live in `apps/nori-code/AGENTS.md`. This skill only covers the mechanics.
## Before you submit
- Run lint / format / test on the files you changed. - For any dialog/selector/input/toggle list, walk the self-check list at the end of [DESIGN.md](./DESIGN.md). - Keep `printableChar()` for printable-key comparisons (CI guard) and `chalk.hex(colors.<token>)` for color (CI guard).
Detalles técnicos
- Versión
- 1.0.0
- Licencia
- MIT
- Última actualización
- 23 ago 2026
- Publicado
- 22 ago 2026
Resumen de decisión
Requiere validación
recent repository activity
Auditoría
Revisión de instalación
Revisión de instalación y adopción
- Seguridad
- 69/100
- Mantenimiento
- 100/100
- Instalar
- 92/100
Evidencia probada por Agent
Evidencia probada por Agent
Informes de resultados tras resolver, revisar, instalar y una ejecución limitada.
- Tasa de éxito
- —
- Fallo reciente
- —
- Resultados
- 0
- Calidad de salida
- —
- Fallidos
- 0
- No relevante
- 0
- Instalaciones
- 0
- Bloqueado por riesgo
- 0
- Configuración necesaria
- 0
- Producción
- 0
Aún no hay datos de resultados de Agent. La primera ejecución puede informar éxito, configuración necesaria, bloqueos de riesgo, fallo o irrelevancia mediante /api/agent/outcome.
Instalar
Añadir al flujo de Agent
Gratis y de código abierto. Revisa el informe antes de instalar en Agents de producción.
Bucle de crecimiento
Kit para compartir
Borrador basado en un caso para write-tui, listo para publicar manualmente en X.
A practical pick for design or creative work: write-tui: Use when writing or modifying the kimi-code terminal UI in apps/nori-code/src/tui — components, dialogs/selectors, slash co... 13 stars https://www.openagentskill.com/skills/wangyuahn-write-tui?ref=x
Respuesta opcional con comando de instalación
Listing + install path for write-tui: https://www.openagentskill.com/skills/wangyuahn-write-tui?ref=x Install: npx skills add wangyuahn/nori-code --skill write-tui
Fuente de la ficha
Indexado por Registry
Esta ficha se indexó desde fuentes públicas y no está marcada como oficial hasta que se apruebe una reclamación de mantenedor.
- Creador
- wangyuahn
- Fuente
- wangyuahn/nori-code
- Indexado por
- Índice comunitario de OpenAgentSkill
La atribución enlaza al repositorio público o al perfil del creador. Los creadores pueden reclamar la ficha para actualizar las señales de propiedad.
Reclamar este skillReclamación del propietario
Reclamar esta ficha de skill
Esta ficha Indexado por Registry se atribuye a wangyuahn, pero aún no está marcada como oficial. Reclámala para añadir una señal de propietario verificado y hacer más fiables futuras actualizaciones de lanzamiento, instalación y auditoría.
Kit de enlaces para creadores
Añade las insignias de evidencia a tu README
Muestra la ficha canónica, las señales actuales de confianza y auditoría, y evidencia real de Agent-Proven donde los desarrolladores evalúan el repositorio.
[](https://www.openagentskill.com/skills/wangyuahn-write-tui)
[](https://www.openagentskill.com/skills/wangyuahn-write-tui)
[](https://www.openagentskill.com/skills/wangyuahn-write-tui/audit)
[](https://www.openagentskill.com/skills/wangyuahn-write-tui)Autor
wangyuahn
@wangyuahn
Etiquetas
Afinidad con plataforma
Señales de salud
- Estrellas de GitHub
- 13
- Puntuación de calidad
- 32/100
- Último push de GitHub
- 23 ago 2026
- Pistas del framework
- Desconocido
- Vistas de OpenAgentSkill
- 0
- Copias de instalación
- 0
- Clics externos
- 0
Señal de comunidad
Comparte si este skill resulta útil para tu flujo de Agent. Los comentarios agregados mejoran la clasificación con el tiempo.
Confianza y seguridad
Do not auto-install
- Adopción en GitHub13 estrellas de GitHubCorregir
- Actividad de stars/forks13 estrellas y 0 forks; la actividad de issues no está disponible en los metadatos actualesCorregir
- Mantenimiento recienteActualizado hoyAprobado
- Claridad de licenciaMITAprobado
- Completitud de README/SKILL.mdLos metadatos públicos necesitan más contexto de README/SKILL.mdInfo
- Riesgo de dependencias/runtimecommand execution surface, credential or environment accessRevisar
Skills relacionados
Last30days Skill
Research the last 30 days across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web, then synthesize a grounded brief for an AI agent.
53.5K EstrellasAcademic Research Skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
38.4K EstrellasGPT Researcher
Run autonomous deep research over web and local sources
28.0K EstrellasDeepResearch
Tongyi Deep Research, the Leading Open-source Deep Research Agent
19.8K Estrellas