Skip to main content

codemod-cli-tui

Use when changing Codemod CLI commands, terminal UI, workflow command behavior, auth/login, publish/search/unpublish, init templates, report server, npm CLI wrapper, quiet-mode output, terminal dependencies, or command tests.

来源信息

仓库
tomevault-io/tomes
最近来源活动
2026年7月23日 21:48
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
codemod-cli-tui
description
Use when changing Codemod CLI commands, terminal UI, workflow command behavior, auth/login, publish/search/unpublish, init templates, report server, npm CLI wrapper, quiet-mode output, terminal dependencies, or command tests.
metadata
{"author":"codemod"}
# Codemod CLI And TUI ## Key Areas - Commands: `crates/cli/src/commands` - TUI: `crates/cli/src/tui` - Templates: `crates/cli/src/templates` - CLI helpers: `crates/cli/src/utils` - npm wrapper: `crates/cli/npm` - Report UI: `crates/cli/report-ui` ## Rules - The CLI owns all user-facing terminal output for the repo. Other crates and packages must expose structured data, errors, events, reports, or logs for CLI routing. - Preserve non-interactive behavior; CI-facing commands must not prompt unexpectedly. - Keep command-specific logic in command modules and shared behavior in `utils` only when reused. - TUI/quiet mode must not write workflow logs, prompts, agent output, spinners, or progress directly to stdout/stderr while `WorkflowOutputSettings.quiet` is true. - Direct writes outside CLI-owned output paths can leak to stdout while the TUI is shown or bypass JSONL formatting. - Route quiet-mode interaction through workflow/TUI events and task logs. - Template changes should update generated package files and user-facing template docs together. - npm wrapper changes need wrapper tests because users install through the package, not only the Rust binary. ## Validation - Rust CLI: `cargo test -p codemod` - npm wrapper: `pnpm --filter codemod test` - Terminal dependency graph: `bash ./scripts/check-single-crossterm.sh` - Report UI build: `pnpm --filter codemod-report-ui build` --- > Source: [codemod/codemod](https://github.com/codemod/codemod) — distributed by [TomeVault](https://tomevault.io). <!-- tomevault:4.0:skill_md:2026-07-20 -->
在 GitHub 查看