kon: Skill for Claude Code

.agents/skills/kon-tmux-test/SKILL.md

kon-tmux-test is a skill for Claude Code, Codex from 0xku/kon. It costs 32 tokens per session (2,958 once invoked), scanned C, original, MIT.

A guide for end-to-end testing of Kon, a terminal user-interface application, by controlling it through tmux terminal sessions.

In plain words
What is it for?
Use it only when asked to run Kon's end-to-end tests, such as checking triggers, runtime selectors, key bindings, or tool execution.
Why use it?
It provides a repeatable way to test keyboard interactions and verify visible output and filesystem effects in an isolated environment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is 0xku/kon's own configuration. It tells Claude Code and Codex how to work on kon 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 kon configures →

View source ↗ 0xku/kon
Reuse

Borrowing it

Nothing to install: this file belongs to 0xku/kon. 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/0xku/kon/main/.agents/skills/kon-tmux-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/0xku/kon

Made for: Claude Code, Codex.

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 kon-tmux-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xku/kon/kon-tmux-test/github.svg)](https://agentmods.dev/skills/0xku/kon/kon-tmux-test)
Your own site
<a href="https://agentmods.dev/skills/0xku/kon/kon-tmux-test"><img src="https://agentmods.dev/badge/skills/0xku/kon/kon-tmux-test/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 kon-tmux-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xku/kon/kon-tmux-test"><img src="https://agentmods.dev/badge/skills/0xku/kon/kon-tmux-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00032 $0.02958
Opus 5 $0.00016 $0.01479
Sonnet 5 $0.00006 $0.00592
Haiku 4.5 $0.00003 $0.00296

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

Security

Grade C, and why

kon-tmux-test scanned grade C with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (run-e2e-tests.sh, setup-test-project.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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/kon-test-project /tmp/kon-e2e-home
.agents/skills/kon-tmux-test/SKILL.md · 251 lines

How it starts

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

Kon Tmux E2E Testing

End-to-end testing of kon using tmux sessions to programmatically control the TUI application.

Why Tmux?

Kon is a TUI (Textual-based) app. Running tests programmatically is hard. Tmux provides:

  • tmux new-session - isolate test environment
  • tmux send-keys - send keyboard input
  • tmux capture-pane - capture output
  • tmux has-session - check if kon is running

Test Design Philosophy

  • Deterministic: Shell scripts create reproducible test environments
  • Isolated config: Tests run with HOME=/tmp/kon-e2e-home so runtime settings do not mutate the real user config; auth JSON files are copied into the temp HOME when present so provider startup still works
  • Separation of concerns: Shell script runs steps and captures output; kon/the reviewer evaluates results
  • Output-based evaluation: Test success/failure determined by reading output files, not shell script heuristics
  • UI-focused: Test triggers (@, /, runtime pickers, keybindings) by checking UI elements appear
  • Filesystem verification: Tool execution is verified through files under /tmp/kon-test-project

Quick Start

# Run all e2e tests from the repo root
bash .agents/skills/kon-tmux-test/run-e2e-tests.sh

# Optional: keep the temporary HOME for debugging
KEEP_E2E_HOME=1 bash .agents/skills/kon-tmux-test/run-e2e-tests.sh

# Optional: override launch command/provider/model
KON_CMD='uv run kon --model gpt-5.5' \
  bash .agents/skills/kon-tmux-test/run-e2e-tests.sh

After running, read /tmp/kon-test-*.txt and evaluate the captured pane/config/filesystem outputs.

Test Scripts

Setup Script: setup-test-project.sh

Creates a deterministic test project structure at /tmp/kon-test-project/.

bash .agents/skills/kon-tmux-test/setup-test-project.sh

Main Test Script: run-e2e-tests.sh

Runs comprehensive e2e tests including UI triggers, runtime controls, tab completion, and tool execution.

bash .agents/skills/kon-tmux-test/run-e2e-tests.sh

Read the full file on GitHub · 251 lines

Files

What ships with it

2 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. 11d ago First seen · 251 lines · 32 tokens per session scan C 2175f776386b

Subscribe to this mod's changes

kon-tmux-test is a skill published in the GitHub repository 0xku/kon (353 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 2,958 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). 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

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 tokens

test-loop

Plan, generate, and heal an executable E2E test suite from approved acceptance criteria (web and mobile).

HoangNguyen0403/agent-skills-standard · 25 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens