testing

A testing guide for a terminal user interface, meaning an application that runs inside a text-based terminal. It explains how to run the application in test mode, simulate user input, inspect the screen, and check expected results.

In plain words
What is it for?
Use it after changing main.go or main.md, especially when changing the interface or behavior. It supports testing commands such as pull and mcp, using a separate GitHub test organization.
Why use it?
It provides a repeatable way to verify that code changes do not break menus, displays, or application behavior. It also runs Go's built-in checks before building.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wham/github-brain/testing
Any agent
npx skills add wham/github-brain --skill testing
Clone the repo
git clone --depth 1 https://github.com/wham/github-brain

Made for: Claude Code, Codex.

Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00328
Opus 5 $0.00017 $0.00164
Sonnet 5 $0.00007 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 2d ago against content hash 18f69ca77871, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing 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 2d ago.

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.

.github/skills/testing/SKILL.md · 30 lines

What it actually says

Testing

This skill helps you create and run tests for terminal user interface (TUI) applications.

When to use this skill

Use this skill:

  • After making ANY code changes to verify they work correctly
  • When modifying UI elements, menus, or display logic
  • When changing application behavior or adding features
  • To ensure existing functionality as specified in main.md and README.md is not broken

Starting the application

  • Run scripts/run --test where the user would normally run github-brain
    • scripts/run --test pull equivalently runs github-brain pull
    • scripts/run --test mcp equivalently runs github-brain mcp
    • The --test flag runs go vet before building to catch issues early
  • Ensure .env files is configured to use the github-brain-test organization
  • Use GitHub MCP to add new issue/PRs/discussions as needed for testing
  • Simulate user input: Send key presses, control combinations, or specific commands to the running application.
  • Capture and analyze screen output: The testing tool captures the terminal display (or buffer) at specific moments in time.
  • Make assertions: Verify that the screen content matches the expected output (e.g., checking if specific text is present at certain coordinates or if the cursor position is correct).
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. 2d ago First seen · 30 lines · 35 tokens per session scan A 18f69ca77871

Subscribe to this mod's changes

testing is a skill published in the GitHub repository wham/github-brain (78 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 328 once invoked, about $0.0002 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

github-multi-repo-manager

Multi-repo GitHub management. Cross-repo issues, Projects v2 boards, team workload analytics, milestone tracking, PR pipelines, and release coordination.

XSpoonAi/spoon-awesome-skill · 38 tokens

issue-triage

Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.

rtk-ai/rtk · 70 tokens

e2e-write-visual-test

Use when writing a Playwright visual regression (screenshot comparison) test, tagging a test @visual, generating or updating baseline screenshots, running visual tests locally, or debugging a failing screenshot comparison in CI.

payloadcms/payload · 50 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

format-specific-extraction

Format-specific document extraction workflows.

xberg-io/xberg · 10 tokens