Recipes

BAMA: agent skills that clone an app's screens and build it as a native Mac app

From README links · today

Content & CreativeSoftware & DevOps

Agent skills take a macOS app from screenshots to user stories to Swift commits.

What they did

They installed the BAMA skill pack into their coding agent (Claude Code or Codex) with a single npx command, then pointed it at an app they liked. The agent used the clone skill to open the target app, screenshot every screen, and write a screen index. From that index it generated a backlog of user stories with checkable acceptance criteria, grouped into milestones. It scaffolded a new Swift package from the template — SwiftData for local storage, a build script, snapshot mode, and git — then built one story per commit. Before each commit it captured every page in light and dark mode and ran the test suite, so regressions surfaced immediately. Later skills covered Swift 6 concurrency and SwiftData pitfalls, OS integrations like global hotkeys and menu bar items, performance work measured with Instruments from the command line, and incremental architecture refactors that prove behavior unchanged.

How it went

The workflow produces a real native Mac app that lands in the Dock, built without ever opening the Xcode GUI. Because each story is one commit with light/dark snapshots and tests attached, the history stays reviewable and regressions are caught early. The router skill means you can start from any point — idea, existing app, or half-built project — and it picks the next step.

Worth knowing

Requires macOS 26+ and Swift 6.2, so older Macs are out. The clone step depends on computer-use or browser screenshotting, which can miss transient states, sheets, and permission dialogs. Screenshot-driven cloning reproduces layout and flow, not the original's private logic or data. Windows users are pointed at the separate BAWA project.

Wiring

Install the skill pack into the agent with npx skills@latest add daveebbelaar/bama, or add it as a Claude Code or Codex plugin. The bama router skill inspects the repo and dispatches to the right stage. Order: app-brief or new-mac-app to scaffold the Swift package, SwiftData store, build script, snapshot mode, and git; research and clone to gather screens and a screen index; user-stories to produce the milestone backlog; then the code skills (swift-swiftui, os-integrations, performance, improve-architecture) drive implementation. Each commit is gated on the test run plus light and dark snapshots of every page. Optional agent-cli adds a command line and MCP server so external agents and scripts can drive the app.

Try it yourself

Install the BAMA skills with `npx skills@latest add daveebbelaar/bama`. Then: open my existing to-do web app in the browser, screenshot every screen including empty, populated, and error states, and write a screen index. Turn that index into user stories with checkable acceptance criteria in milestones. Scaffold a new native macOS app from the BAMA template using SwiftUI and SwiftData, then build milestone 1 one story per commit, running the tests and capturing light and dark snapshots of every page before each commit.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-bama-and-rea
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-bama-and-rea/manifest
System prompt
You are an agent that takes a macOS app from screenshots to user stories to Swift commits, using the BAMA skill pack. Start from whatever state the project is in, let the bama router pick the next stage, and gate every commit on the test run plus light and dark snapshots of every page.

This system prompt was generated from this stack's copy and tools. A person has not reviewed it.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-bama-and-rea/manifest.