agent-cli
Optional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search,…
Autonomous loop that works through docs/STORIES.md one story at a time for a macOS app, building, snapshotting, comparing against reference screenshots, fixing, and committing, until a milestone is done. Use when the user says "keep going", "work through the backlog", "make it
Claude Code
$ npx -y skills add daveebbelaar/bama --skill improve-loop --agent claude-code
Codex
$ npx skills add daveebbelaar/bama --skill improve-loop -a codex -y
Cursor
$ npx skills add daveebbelaar/bama --skill improve-loop -a cursor -y
Gemini CLI
$ npx skills add daveebbelaar/bama --skill improve-loop -a gemini-cli -y
GitHub Copilot
$ npx skills add daveebbelaar/bama --skill improve-loop -a github-copilot -y
OpenCode
$ npx skills add daveebbelaar/bama --skill improve-loop -a opencode -y
Windsurf
$ npx skills add daveebbelaar/bama --skill improve-loop -a windsurf -y
name: improve-loop description: Autonomous loop that works through docs/STORIES.md one story at a time for a macOS app, building, snapshotting, comparing against reference screenshots, fixing, and committing, until a milestone is done. Use when the user says "keep going", "work through the backlog", "make it match the reference", or wants an unattended improvement loop. argument-hint: "[milestone, e.g. M1]"
One pass through the loop takes one story from `todo` to `done`:
pick story -> plan -> code -> ./build.sh -> snapshot -> compare -> fix -> commit -> update STORIES.md
Stop after the milestone the user named, or after the current milestone if they named none. Then report.
Open `docs/STORIES.md`. Take the first `todo` story in the current milestone whose dependencies are `done`. Set it to `doing`.
If the story adds a screen, an action, or words and has no `UX:` block yet, call the Skill tool with `ux-design` first.
Write two to five lines in your head or in the commit body: which files change, which model fields are new, which menu command and shortcut it adds, which snapshot page shows it. If the story needs a new SwiftData field, give it a default value so existing databases keep loading.
Follow the `swift-swiftui` and `mac-design` skills, the story's `UX:` block, and `design/DESIGN-SYSTEM.md` if the app has one. System hooks follow `os-integrations`. Keep each view file under about 300 lines. Put new pages in the `SidebarItem` enum so snapshot mode visits them.
Follow the `build-and-verify` skill. If the story has logic, add a test or a self-test step (`test-mac-app` skill). Use seed data (`APP_SEED=1`) so pages show real content.
Open your snapshot and the story's reference screenshot side by side with the Read tool. Write down the differences that matter, in this order:
1. Missing or wrong behavior from the acceptance criteria. 2. Words and flow: names, surface, and states that differ from the `UX:` block or `docs/GLOSSARY.md`. 3. Layout: wrong column, wrong order, missing element, and every FAIL from the grid checks. 4. Hierarchy: what is biggest, boldest, first. 5. Spacing and alignment. 6. Color and details.
The goal is the same structure and behavior, built from Apple's own controls. It is not a pixel copy. When the reference uses a web-style custom control and macOS has a native one (a toolbar, a sidebar, a context menu, a date picker), use the native one.
No reference screenshot (no app was cloned)? Compare against the story's acceptance lines and the `mac-design` rules instead.
Snapshot only the pages a story touches (`APP_SNAPSHOT_PAGES`), and the full set at the end of each milestone.
Fix, rebuild, and compare again. Three rounds per story at most. If it still does not match, set the story to `todo` again with a note that says what is blocking, and move on.
git add -A git commit -m "Complete tasks with Command-Return"
Set the story to `done` in `docs/STORIES.md` and commit that with the code. One story per commit, so any story can be reverted on its own. M1 may land as one commit when its stories share one skeleton (model, pages, list, persistence); from M2 on, one story per commit.
At the end of the loop, report to the user:
Then `./build.sh --open` so the user can try the new build.
When the last story of a milestone is `done`, call the Skill tool with `improve-architecture` before you start the next milestone. Unattended, do its top recommendation only if it is `Strong`, and leave the rest in the review file for the user.
When a story fixes a bug, add an entry to `docs/FIXLOG.md`: symptom, cause, fix, and a last line `Rule: <what to always or never do>`. The fix log outlives squashed history, and the check-in reads it.
The loop works with no one watching, because every step checks itself: the build, the snapshots, the acceptance criteria. To let it run longer, start it with a clear limit ("finish M2, then stop"), make sure the tree is committed before you start, and never let it touch the user's real database. Each story is a separate commit, so the user can review the history in the morning and revert anything they do not like.
Done when every story in the milestone is `done` or named in the report as blocked with a reason, each done story has its own commit, and the user has the report.
BAMA: Build Any Mac App. Agent skills to research, clone, design, build, optimize, and test native macOS apps with Swift and SwiftUI.
Optional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search,…
Architecture check-in for a growing macOS Swift codebase. Finds hot spots, proposes deeper modules, and refactors one step per…
Deep macOS integrations for a native app, such as global hotkeys, menu bar items, floating panels, window control with…
Make a macOS app fast by measuring hangs, stutter, CPU, memory, and energy, then moving work off the main thread and onto the…
Swift 6 and SwiftUI code rules for macOS apps, including concurrency, state, SwiftData, AppKit bridges, and fixes for common…
Liquid Glass macOS app icon made as an Icon Composer file (Icon/AppIcon.icon, JSON plus SVG layers), compiled with actool, and…
Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP…