test-mac-app

test-mac-app is a skill for Claude Code, Codex from daveebbelaar/bama. It costs 82 tokens per session (2,120 once invoked), scanned A, original, MIT.

A testing workflow for a macOS app at several levels, from fast unit tests to checks of the running app and real clicks. Unit tests check small pieces of logic in isolation; end-to-end checks follow a complete user flow.

In plain words
What is it for?
Use it to test rules, parsing, stored data, keyboard actions, menus, permissions, panels, and other app behaviour before release.
Why use it?
It matches each requirement with a suitable check and starts with the cheapest useful test. It also provides a failing test as a starting point for bug fixes.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md.

Part of the bama plugin — 21 skills shipped together

Good fit Use it to test rules, parsing, stored data, keyboard actions, menus, permissions, panels, and other app behaviour before release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daveebbelaar/bama/test-mac-app
About the project

BAMA is a set of agent skills for researching, copying, designing, building, optimizing, and testing native macOS applications with Swift and SwiftUI. It helps developers turn an existing app or an idea into a Mac app while using local data and avoiding the Xcode graphical interface. The catalogue entries are BAMA’s skills, instruction, and plugin for guiding that workflow.

daveebbelaar/bama · 2,007 stars · on GitHub

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 daveebbelaar/bama --skill test-mac-app
Clone the repo
git clone --depth 1 https://github.com/daveebbelaar/bama

Made for: Claude Code, Codex.

Or install bama, the plugin that ships this one along with the rest of its 21 skills.

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 test-mac-app

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/daveebbelaar/bama/test-mac-app"><img src="https://agentmods.dev/badge/skills/daveebbelaar/bama/test-mac-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,120 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. Third-party audits
  • Socket pass 7 Nov 2026
  • Snyk pass 6 Nov 2026
How audits are shown
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.00082 $0.02120
Opus 5.5 $0.00033 $0.00848
Sonnet 5.5 $0.00016 $0.00424
Haiku 4.5 $0.00008 $0.00212

Measured 15d ago against content hash 8124c46c4c10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-mac-app 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 15d 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/ship/test-mac-app/SKILL.md · 199 lines

How it starts

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

Test a Mac app

Three levels, cheapest first. Each new story gets the cheapest level that can prove its acceptance criteria. A bug fix starts with a test that fails.

Level Proves Speed
Unit tests (Swift Testing) Rules, parsing, data Seconds
Self-test (--selftest) The app's real functions on a test store Seconds
Key events and menu audit (inside the self-test) Keyboard flows and every shortcut, without the screen Seconds
Debug bridge + computer use Global shortcuts, panels, permissions, other apps Minutes

Snapshots (build-and-verify skill) prove how it looks. This skill proves how it behaves.

1. Unit tests

Logic lives in a library target (<App>Kit) with no SwiftUI, so tests run without the app.

import Testing
@testable import AppKitCore

@Test("Natural dates", arguments: [("tomorrow 9am", 1, 9), ("next fri", 5, nil)])
func parses(_ phrase: String, dayOffset: Int, hour: Int?) throws {
    let result = try #require(DateParser.parse(phrase, now: .fixed))
    #expect(result.dayOffset == dayOffset)
    #expect(result.hour == hour)
}
swift test --scratch-path ~/Library/Developer/<App>/test-build
  • Fix the clock (now: parameter) and the store path in every test.
  • A parser that removes text from what the user typed needs at least 20 negative rows: real titles that contain date or time words ("Watch Friday Night Lights"). Add consistency rows for related phrases ("next week" and "next friday"), and a tested way to undo a parsed part.
  • Table tests for anything with many cases. Keep the table in docs/research/<topic>.md too, and add a row there before changing behavior. A date parser easily needs 100 rows.

2. Self-test

A launch flag that runs the same functions the UI calls, prints PASS or FAIL per step, and exits 0 or 1:

APP_STORE=/tmp/<App>-self.store ~/Applications/<App>.app/Contents/MacOS/<App> --selftest
# PASS add task
# PASS complete task
# PASS undo

Read the full file on GitHub · 199 lines

Files

What ships with it

1 file 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. 15d ago First seen · 199 lines · 82 tokens per session scan A 8124c46c4c10

Subscribe to this mod's changes

test-mac-app is a skill published in the GitHub repository daveebbelaar/bama (2,007 stars, last pushed 25d ago), licensed MIT. It adds 82 tokens to every session and 2,120 once invoked, about $0.0003 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-11-15.

Related

test-mac-app compared with skills from other repositories

test-mac-app next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-mac-appdaveebbelaar/bamaSkill2.0k25d agoMITA82Claude Code, Codex
mobile-app-testingsecondsky/claude-skillsSkill2578d agoMITA47Claude Code
verifysd0xdev/sd0x-harnessSkill1965d agoMITA17Claude Code
check-coveragesd0xdev/sd0x-harnessSkill1965d agoMITA27Claude Code
proof-strategytonone-ai/tononeSkill842d agoMITA53Claude Code
ios-testing-patternsconorluddy/xclaude-pluginSkill1881mo agoMITA18Claude Code
proof-recontonone-ai/tononeSkill842d agoMITA50Claude Code