/bama:os-integrationsfrom bama
Provides deep macOS integrations for native apps: global hotkeys, menu bar items, floating panels, window control, screen capture, clipboard, Shortcuts, URL schemes, login items, and CLI. Use when an app must reach outside its own window or control other apps.
Ships in bama. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A Mac app is a set of entry points around the system, not one window. This skill picks the API for each entry point and the permission it costs. Code for every row is in recipes.md.
| Want | API | Permission |
|---|---|---|
| Global shortcut (key combo) | Carbon RegisterEventHotKey | None |
| Hold-to-show (hold Option, press Tab) or key remapping | CGEvent.tapCreate event tap | Accessibility |
| Watch keys without changing them (keystroke overlay) | Listen-only event tap | Input Monitoring (CGRequestListenEventAccess) |
| List other apps' windows | CGWindowListCopyWindowInfo | None (titles need Screen Recording) |
| Menu bar item | MenuBarExtra (SwiftUI) or NSStatusItem | None |
| Live status in the menu bar (a timer, a sync) | MenuBarExtra with a changing label. Live Activities on a Mac only mirror a paired iPhone | None |
| Desktop and Notification Center widgets | WidgetKit extension target (Xcode build, like App Intents) | None |
| Find the app's content in Spotlight | Core Spotlight CSSearchableIndex | None |
| Preview the app's own file type in Finder (Space) | Quick Look preview extension | None |
| Menu-bar-only app, no Dock icon | LSUIElement = YES in Info.plist | None |
| Spotlight-style panel that keeps the other app in front | NSPanel with .nonactivatingPanel | None |
| Move and resize other apps' windows | AXUIElement (kAXPositionAttribute, kAXSizeAttribute) | Accessibility |
| Paste into the front app | Write NSPasteboard, then post Command-V with CGEvent | Accessibility |
| Screenshot | ScreenCaptureKit SCScreenshotManager | Screen Recording |
| Window thumbnails | SCScreenshotManager with an SCContentFilter per window | Screen Recording |
| Screen recording to MP4 | SCStream + SCRecordingOutput (AVAssetWriter when you edit frames) | Screen Recording, Microphone |
| Clipboard history | Poll NSPasteboard.general.changeCount | None |
| Text in images | Vision RecognizeTextRequest | None |
| Launch at login | SMAppService.mainApp.register() | User approves once |
| Links from scripts, Stream Deck, Raycast | CFBundleURLTypes + .onOpenURL | None |
| Shortcuts app and Spotlight actions | AppIntent (App Shortcuts are not supported on macOS). A result or confirmation view is a snippet | None |
| Agent or script reads and changes data | The app binary as a CLI, talking to the running app (agent-cli skill) | None |
| A CLI that writes plain files or its own SQLite tells the app to reload | Darwin notification (notify_post) | None |
| Keep the Mac awake | IOPMAssertionCreateWithName | None |
| System stats | host_statistics64, proc_pid_rusage, IOPSCopyPowerSourcesInfo | None |
| Audio devices | CoreAudio AudioObjectGetPropertyData | None |
| Toggle dark mode and other system settings | Apple Events to System Events | Automation |
| Notifications | UNUserNotificationCenter | User approves once |
| Dock menu | applicationDockMenu(_:) in the app delegate | None |
| Services and Share menu | NSServices in Info.plist, ShareLink | None |
Prefer the row with no permission when two rows solve the same job.
x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility
(or Privacy_ScreenCapture, Privacy_AllFiles).NS...UsageDescription key (camera, microphone, Apple Events)
must be in Info.plist before the first request, or the app crashes.MenuBarExtra already works
with keyboard navigation; an NSStatusItem that opens a custom window
must too (WWDC26-289).macOS stores Accessibility and Screen Recording grants per code signature and path. To keep them across rebuilds:
/Applications/<App>.app or
~/Applications/<App>.app).lsregister -f -R -trusted /Applications/<App>.app (the tool lives in
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/).If a grant looks on but the API fails, the signature changed. Remove the app from the list in System Settings, add it again, restart the app.
Each feature gets: a menu item with a shortcut, a URL
(<app>://action/<name>), and an App Intent. The same action enum backs all
three, so a new action shows up everywhere at once. App Intent enum titles
must be literals, so they can drift from menu titles: add a self-test check
that they match. The URL also lets
test-mac-app drive the feature from a script.
Done when every entry point in the brief's "System hooks" works from a clean install, and Settings shows the state of every permission it needs.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub daveebbelaar/bama --plugin bama21 skills in this plugin
/agent-cliOptional command line and MCP server for a macOS app, so Claude Code, Codex, and scripts can drive it (list, add, change, search, act) through the running app. Use when the user wants agents to work with their app or its data, asks for a CLI, an MCP server, or automation for the app, or says "Claude should be able to use my app"./app-briefOne-page brief (docs/BRIEF.md) for a new macOS app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done./app-iconLiquid Glass macOS app icon made as an Icon Composer file (Icon/AppIcon.icon, JSON plus SVG layers), compiled with actool, and reviewed in every look with ictool. Use when the user wants an app icon, a better icon, or a Dock icon.Other plugins' skills for the same job