Agent Skillskenn-io/kata › verify

verify

GitHub

指导使用kata CLI/TUI工具,通过tmux模拟真实终端环境验证代码变更。涵盖构建、CLI管道输出检查及TUI交互流程(如按键响应、布局调整),确保界面行为正确且无残留屏幕垃圾。

.claude/skills/verify/SKILL.md kenn-io/kata

Trigger Scenarios

需要验证kata CLI或TUI的交互功能 检查终端界面在不同窗口大小下的表现 验证ANSI颜色输出和快捷键响应

Install

npx skills add kenn-io/kata --skill verify -g -y
More Options

Non-standard path

npx skills add https://github.com/kenn-io/kata/tree/main/.claude/skills/verify -g -y

Use without installing

npx skills use kenn-io/kata@verify

指定 Agent (Claude Code)

npx skills add kenn-io/kata --skill verify -a claude-code -g -y

安装 repo 全部 skill

npx skills add kenn-io/kata --all -g -y

预览 repo 内 skill

npx skills add kenn-io/kata --list

SKILL.md

Frontmatter
{
    "name": "verify",
    "description": "Build and drive the kata CLI\/TUI to verify changes at the real terminal surface"
}

Verifying kata changes

Build

go build -tags kit_posthog_disabled -o /tmp/kata-verify ./cmd/kata

CLI surface (cmd/kata)

  • Piped (must be ANSI-free): /tmp/kata-verify list --limit 3 | cat -v
  • TTY-colored: run inside the tmux session below and capture with -e.

TUI surface (internal/tui)

The TUI requires a real pty; use an isolated tmux socket. A local daemon must be reachable (any workspace-bound directory works; the repo itself is bound to the kata project).

tmux -L kataverify new-session -d -s v -x 120 -y 32
tmux -L kataverify send-keys -t v "cd <repo> && /tmp/kata-verify tui" Enter
sleep 3
tmux -L kataverify capture-pane -t v -p        # plain frame
tmux -L kataverify capture-pane -t v -e -p     # with ANSI, for color checks

Flows worth driving: Enter (detail), Esc (back), L at ≥140 cols (split layout), resize below 80 cols (too-narrow hint), / + text (search bar), q (quit modal) then n, ctrl+c (fast quit — pane must return to shell with no leftover alt-screen garbage).

Teardown: tmux -L kataverify kill-server

Gotchas

  • tmux resize-window -t v -x <cols> -y <rows> exercises WindowSizeMsg handling live.
  • Golden snapshots (testdata/golden/) are plain text; the test harness strips ANSI, so style-only changes don't churn them.

Version History

  • fd22029 Current 2026-08-16 07:07

    增加编译标签 kit_posthog_disabled 以禁用开发构建中的遥测数据发送,防止污染生产环境数据。

  • 61a3d8c 2026-07-24 16:11

Same Skill Collection

.claude/skills/testing-without-tautologies/SKILL.md

Metadata

Files
0
Version
2366002
Hash
4558b9fd
Indexed
2026-07-24 16:11

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 20:29
浙ICP备14020137号-1 $Map of visitor$