new-mac-app

new-mac-app is a skill for Claude Code, Codex from daveebbelaar/bama. It costs 59 tokens per session (1,267 once invoked), scanned A, original, MIT.

A scaffold for starting a native macOS app with SwiftUI, Apple’s framework for building app interfaces. It provides a working Swift package, app bundle build script, data models, settings, icons, and snapshot support without requiring the Xcode graphical interface.

In plain words
What is it for?
Use it to create a new Mac app, build and sign it from scripts, store app data with SwiftData, and capture interface images for review.
Why use it?
It avoids assembling the basic project structure and build steps by hand, and checks that the toolchain works before feature development begins.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Part of the bama plugin — 21 skills shipped together

Good fit Use it to create a new Mac app, build and sign it from scripts, store app data with SwiftData, and capture interface images for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daveebbelaar/bama/new-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 new-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 new-mac-app

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/daveebbelaar/bama/new-mac-app"><img src="https://agentmods.dev/badge/skills/daveebbelaar/bama/new-mac-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,267 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.00059 $0.01267
Opus 5.5 $0.00024 $0.00507
Sonnet 5.5 $0.00012 $0.00253
Haiku 4.5 $0.00006 $0.00127

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

Security

Grade A, and why

new-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.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/new-app.sh, template/build.sh, template/tools/grid-lint.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.

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/start/new-mac-app/SKILL.md · 121 lines

How it starts

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

New Mac app

The template builds and runs as is. The first build proves the toolchain works before you write feature code.

What the template is

A Swift package with one executable target, plus a script that wraps the binary in a real .app bundle. An agent can read and edit every file.

<AppName>/
  Package.swift          macOS 26, Swift 6.2 tools, main-actor default isolation
  Info.plist.in          bundle id, name, icon, minimum macOS
  Icon/AppIcon.icon      the app icon: Icon Composer file, JSON plus SVG layers
  build.sh               swift build -> .app bundle -> codesign -> ~/Applications
  CLAUDE.md              build, check, and design rules for agents
  Sources/<AppName>/
    App.swift            window, menus, Settings, database location
    Models.swift         SwiftData models, sidebar pages, AppModel
    ContentView.swift    NavigationSplitView: sidebar, list, detail
    Snapshot.swift       APP_SNAPSHOT mode: PNG and layout file per page and Settings tab, light and dark
    UI/Theme.swift       accent colors, saved choice, accent tokens
    SettingsView.swift   Settings window: one tab per topic, sized to content
    UI/AppearanceSettings.swift  Settings: accent picker (mode follows the Mac)
    UI/WindowBehavior.swift  no focus ring on open, fit to content
    UI/Grid.swift        the 4 pt spacing scale, layout probes, grid overlay
  tools/
    grid-lint.sh         flags spacing numbers off the 4 pt grid
    check-layout.swift   checks the layout files from snapshot mode
    make_icon.sh         Icon/AppIcon.icon -> Resources/Assets.car + AppIcon.icns (actool)
    icon_review.sh       renders every icon look into one PNG (ictool)
    icon_sheet.swift     joins the renders for icon_review.sh

Steps

  1. Check the toolchain:

    swift --version            # Swift 6.2 or later
    sw_vers -productVersion    # 26.0 or later
    

    On macOS 15, set .macOS(.v15) in Package.swift and LSMinimumSystemVersion to 15 in Info.plist.in, and skip Liquid Glass APIs.

Read the full file on GitHub · 121 lines

Files

What ships with it

30 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. 15d ago First seen · 121 lines · 59 tokens per session scan A f2c76bf9f484

Subscribe to this mod's changes

new-mac-app is a skill published in the GitHub repository daveebbelaar/bama (2,007 stars, last pushed 25d ago), licensed MIT. It adds 59 tokens to every session and 1,267 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-11-15.

Related

new-mac-app compared with skills from other repositories

new-mac-app next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
new-mac-appdaveebbelaar/bamaSkill2.0k25d agoMITA59Claude Code, Codex
build-android-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITA150Claude Code
build-ios-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITC200Claude Code
swiftui-expertjohnkozaris/jko-claude-pluginsSkill1124d agoMITA133Claude Code
swifthmj1026/dhpkSkill2todayMITA71Claude Code, Codex
bootstrap-xcode-workspacegaelic-ghost/socketSkill113mo agoApache-2.0A36Claude Code, Codex
build-kotlin-androidgaelic-ghost/socketSkill113mo agoApache-2.0A66Claude Code