gwm: Skill for Claude Code

.claude/skills/tui-automation/SKILL.md

tui-automation is a skill for Claude Code from shutootaki/gwm. It costs 136 tokens per session (2,325 once invoked), scanned A, original, MIT.

A set of scripts for controlling and checking a terminal user interface through tmux, a tool that keeps terminal sessions running and accessible.

In plain words
What is it for?
Use it to automate a built gwm-rust terminal interface with scripts that send keys, enter text, capture screens, inspect JSON state, and end sessions.
Why use it?
It replaces manual key pressing with repeatable commands for starting the interface, reading its state, typing, navigating, and closing it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

This is shutootaki/gwm's own configuration. It tells Claude Code how to work on gwm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gwm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shutootaki/gwm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shutootaki/gwm/main/.claude/skills/tui-automation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shutootaki/gwm

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tui-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/shutootaki/gwm/tui-automation/github.svg)](https://agentmods.dev/skills/shutootaki/gwm/tui-automation)
Your own site
<a href="https://agentmods.dev/skills/shutootaki/gwm/tui-automation"><img src="https://agentmods.dev/badge/skills/shutootaki/gwm/tui-automation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tui-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/shutootaki/gwm/tui-automation"><img src="https://agentmods.dev/badge/skills/shutootaki/gwm/tui-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,325 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.02325
Opus 5 $0.00068 $0.01162
Sonnet 5 $0.00027 $0.00465
Haiku 4.5 $0.00014 $0.00232

Measured 12d ago against content hash d8139280320b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tui-automation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (tui-capture.sh, tui-close.sh, tui-send.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/tui-automation/SKILL.md · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gwm-rust TUI自動操作スキル

tmux経由でgwm-rustのTUIを自動操作し、動作確認を行う。

前提条件

  • tmuxがインストールされていること
  • Python3がインストールされていること
  • gwm-rustがビルド済みであること(./target/debug/gwm

スクリプト一覧

すべてのスクリプトは .claude/skills/tui-automation/ ディレクトリにあります。

スクリプト 説明 使用例
tui-start.sh <cmd> TUIセッション開始 ./tui-start.sh "./target/debug/gwm add"
tui-state.sh 画面状態取得(JSON) ./tui-state.sh
tui-capture.sh 画面キャプチャ(生テキスト) ./tui-capture.sh
tui-send.sh <keys> キー送信 ./tui-send.sh j Enter
tui-type.sh <text> 文字列入力 ./tui-type.sh "feature/test"
tui-close.sh セッション終了 ./tui-close.sh

操作フロー

  1. tui-start.shでTUIを起動
  2. tui-state.shで状態を確認(トークン効率重視)
  3. 状態に応じてtui-send.shまたはtui-type.shで操作
  4. 2-3を繰り返し
  5. tui-close.shで終了

キーマッピング

操作 キー tmux表記
下移動 j / ↓ j / Down
上移動 k / ↑ k / Up
選択確定 Enter Enter
キャンセル Esc / q Escape / q
複数選択トグル Space Space
全選択 Ctrl+A C-a
全削除 Ctrl+U C-u
単語削除 Ctrl+W C-w
Ctrl+C Ctrl+C C-c
Backspace Backspace BSpace
Tab Tab Tab

画面状態タイプ(tui-state.sh出力)

text_input(テキスト入力)

addコマンドでの新規ブランチ名入力画面。

{
  "type": "text_input",
  "title": "Create new worktree",
  "value": "feature/",
  "error": null,
  "preview": "~/worktrees/gwm/feature-"
}

操作: tui-type.shで文字入力、Enterで確定、Escapeでキャンセル

select_list(選択リスト)

リモートブランチ選択やworktree選択画面。

{
  "type": "select_list",
  "title": "Select remote branch",
  "items": ["feature/auth", "main", "develop"],
  "selected": 0,
  "total": 15,
  "filtered": 3
}

操作: j/kで移動、Enterで選択、Escapeでキャンセル

confirm(確認ダイアログ)

フック実行確認画面。

{
  "type": "confirm",
  "title": "Run post-create hooks?",
  "selected": "once",
  "commands": ["npm install"]
}

操作: Tabまたは矢印キーで選択肢移動、Enterで確定

選択肢:

  • trust: 信頼キャッシュに保存して実行
  • once: 一度だけ実行
  • cancel: キャンセル

multi_select(複数選択)

Read the full file on GitHub · 268 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 268 lines · 136 tokens per session scan A d8139280320b

Subscribe to this mod's changes

tui-automation is a skill published in the GitHub repository shutootaki/gwm (18 stars, last pushed 7mo ago), licensed MIT. It adds 136 tokens to every session and 2,325 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

microsoft-typescript

TypeScript is a language for application scale JavaScript development. ALWAYS use when editing or working with .ts, .tsx, .mts, .cts files or code importing "typescript". Consult for debugging, best practices, or modifying typescript, TypeScript.

skilld-dev/skilld · 57 tokens

session-recall

Recall past AI coding sessions as long-term memory. Use at the START of any non-trivial task, and whenever the user references earlier work ("like we did before", "the X we set up", "last time", "that bug fix"), asks who/when a file was changed, or you need context that predates this conversation. Runs the local…

youdie006/sessionwiki · 103 tokens

browser-use

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.

twaldin/flt · 47 tokens

pi-autoresearch-loop

Skill "pi-autoresearch-loop" from twaldin/flt, covering pi-autoresearch — autonomous experiment loop, installation, quick start, core concepts and two-file persistence model.

twaldin/flt · 0 tokens

grill

Rigorous requirements gathering through Socratic questioning. Use when the user says "/grill", "grill me", "ask me questions until we understand", or wants to be interrogated about implementation details before writing code. Forces deep thinking about edge cases, behavior, and design decisions before any code is…

twaldin/flt · 66 tokens

grill-with-docs

Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

twaldin/flt · 57 tokens