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.
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.
npx skills add daveebbelaar/bama --skill test-mac-appgit clone --depth 1 https://github.com/daveebbelaar/bamaWrote 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.
[](https://agentmods.dev/skills/daveebbelaar/bama/test-mac-app)<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.
<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>- Socket pass
- Snyk pass
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.
| Model | Per session | Once 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 |
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.
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>.mdtoo, 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
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.
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.
- 15d ago First seen · 199 lines · 82 tokens per session scan A 8124c46c4c10
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.
test-mac-app compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-mac-appdaveebbelaar/bama | Skill | 2.0k | 25d ago | MIT | A | 82 | Claude Code, Codex |
| mobile-app-testingsecondsky/claude-skills | Skill | 257 | 8d ago | MIT | A | 47 | Claude Code |
| verifysd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 17 | Claude Code |
| check-coveragesd0xdev/sd0x-harness | Skill | 196 | 5d ago | MIT | A | 27 | Claude Code |
| proof-strategytonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 53 | Claude Code |
| ios-testing-patternsconorluddy/xclaude-plugin | Skill | 188 | 1mo ago | MIT | A | 18 | Claude Code |
| proof-recontonone-ai/tonone | Skill | 84 | 2d ago | MIT | A | 50 | Claude Code |