swing-ui-testing

swing-ui-testing is a skill for Claude Code, Codex from TinusJ/swing-mcp. It costs 51 tokens per session (1,194 once invoked), scanned A, original, MIT.

A testing guide for Java Swing desktop applications. Swing is Java's toolkit for building windows, forms, tables, menus, and other graphical interfaces.

In plain words
What is it for?
Testing forms, tables, trees, menus, dialogs, keyboard navigation, application startup and cleanup, and selected visual results.
Why use it?
It helps tests wait for real interface conditions and check the application's data and controls instead of relying on fragile timing delays or screenshots alone.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Testing forms, tables, trees, menus, dialogs, keyboard navigation, application startup and cleanup, and selected visual results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tinusj/swing-mcp/swing-ui-testing
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.

Any agent
npx skills add TinusJ/swing-mcp --skill swing-ui-testing
Clone the repo
git clone --depth 1 https://github.com/TinusJ/swing-mcp

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 swing-ui-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/tinusj/swing-mcp/swing-ui-testing/github.svg)](https://agentmods.dev/skills/tinusj/swing-mcp/swing-ui-testing)
Your own site
<a href="https://agentmods.dev/skills/tinusj/swing-mcp/swing-ui-testing"><img src="https://agentmods.dev/badge/skills/tinusj/swing-mcp/swing-ui-testing/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 swing-ui-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/tinusj/swing-mcp/swing-ui-testing"><img src="https://agentmods.dev/badge/skills/tinusj/swing-mcp/swing-ui-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,194 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.00051 $0.01194
Opus 5.5 $0.00020 $0.00478
Sonnet 5.5 $0.00010 $0.00239
Haiku 4.5 $0.00005 $0.00119

Measured 2mo ago against content hash 1bedc72f1c2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swing-ui-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 2mo 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.

skills/swing-ui-testing/SKILL.md · 74 lines

How it starts

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

Core Concepts

Deterministic synchronisation: Never rely on sleeps. Use wait_for with an explicit condition (COMPONENT_TEXT, COMPONENT_VISIBLE, COMPONENT_ENABLED, COMPONENT_EXISTS, COMPONENT_GONE, WINDOW_TITLE, WINDOW_COUNT, EDT_IDLE) and a timeoutMs to make test steps deterministic.

Fresh snapshots: Component UIDs come from take_snapshot and can go stale after any action that changes the UI. Re-snapshot before asserting on state, and whenever an interaction fails to find a component.

Assert via the model, not pixels: Prefer get_component_details, get_table_data, and get_list_items for assertions — they read the actual Swing model state. Use take_screenshot only for visual verification.

Workflow Patterns

1. Test session setup and teardown

  1. launch_app with the application's full java command (use attach_to_app only when the app must keep running after the test).
  2. wait_for with WINDOW_TITLE (or WINDOW_COUNT) to ensure the main window is up before interacting.
  3. Run the scenario steps.
  4. stop_app to end the session, even on failure, so the launched JVM is cleaned up.

2. Form filling and validation

  1. take_snapshot (optionally filter: "ENABLED_ONLY") to find input fields and buttons.
  2. fill each text field, spinner, or editable combo box; use type_text when the form relies on key listeners or per-keystroke validation.
  3. select_option for combo boxes and click for checkboxes/radio buttons.
  4. Submit with click on the confirm button, or press_key with ENTER.
  5. Verify: wait_for a success condition, then check resulting state with get_component_details (e.g. an error label's text, or a button becoming enabled/disabled).

3. Tables, lists, and trees

  • Verify data: get_table_data with startRow/endRow to assert column names and cell values; get_list_items for JList items or visible JTree rows.
  • Select: select_table_cell (row/col), select_option (index or visible text), select_tree_node with a Root > Folder > Leaf path.
  • Row actions: after selecting, use click with clickType: "DOUBLE" to open, or select_context_menu_item for the row's context menu.
  • Long content: scroll inside the JScrollPane to reach off-screen rows before interacting via mouse emulation.

Read the full file on GitHub · 74 lines

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. 2mo ago First seen · 74 lines · 51 tokens per session scan A 1bedc72f1c2b

Subscribe to this mod's changes

swing-ui-testing is a skill published in the GitHub repository TinusJ/swing-mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 1,194 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other skills, from other repositories

verify-omnigent

Drive Omnigent the way a user does and prove a behavior with recorded evidence, using an isolated server, runner, and mock model plus a feature map of every user entry point. Load before reproducing a user-facing bug, before claiming a fix works, or when reviewing whether a change covered every surface (session vs.…

omnigent-ai/omnigent · 100 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

eval-dataset-design

A guide to creating reliable test sets for AI agents. Each evaluation task includes the request, the simulated user's behaviour, a reset starting state, and a success check that can be independently verified.

bojieli/ai-agent-book · 138 tokens

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

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 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