Drive a native Mac app (AppKit, SwiftUI, react-native-macos, Catalyst) with Argent. Use when targeting platform "macos" or a native macOS app, never iOS or Electron/Chromium.
Capabilities
Profiling
Use argent-native-profiler for native profiling or…
E2E tests
Read references/e2e.md before recording or writing a test for a Mac…
React Native
For React Native Debug builds on macOS, including Mac Catalyst, start…
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.3
argent-device-interact still applies for everything not listed here (run-sequence, await-ui-element, secrets).
Contract
- Needs the
macos-appsflag, which is on by default. When a tool says it is off, tell the user to run the command it names. Do not change the flag yourself. - One app is one device.
list-devicesshows only apps argent started that still run, also those of other sessions: never pick one unless the user named that app or this session started it. - Start an app with
boot-device {macosAppPath: "<abs path>.app"}, never withopenor Xcode. Uselaunch-apponly for an app argent already started: with no recorded path it takes whichever copy Spotlight finds. - Build the
.appwithout starting it:xcodebuild ... build, then take the bundle fromBUILT_PRODUCTS_DIR(xcodebuild -showBuildSettings). Xcode Run andreact-native run-macosstart a copy without the argent library:boot-devicethen fails withalready running ... without the argent library. Retry withforce: true, but ask the user first when they may have work open in that copy. - Never pass
forcewhen the error names another build path; report it. - After a code change: rebuild, then
restart-app. - A start result with a
notethat the app showed no window: taps and screenshots need one. Tell the user, and read the log file it names. - On a hardened-runtime refusal, report it to the user. Do not sign files or change code signing.
- Never activate the app or drive it with
osascript,openor other system tools. - At the end:
stop-all-simulator-servers {devices: ["macos-app-<bundle id>"]}closes argent's connection; the app keeps running.
Per-tool notes
- Swipe or drag:
gesture-drag. Long press:gesture-dragwith the same start and end point. Scroll:gesture-scroll. - Zoom or rotate:
gesture-pinchandgesture-rotatefail; use the app's own controls or shortcuts. - After a right-click (
gesture-tapwithbutton: "right"), the returned tree lists the menu items; a plaingesture-tapon one chooses it (the menu can stay in the tree for a moment while it closes).keyboardescapecloses the menu;enterchooses nothing after a right-click, so tap the item. - For a Command-click or Shift-click, pass
modifiersin thegesture-tapcall. Check the returned tree for the expected selection. - Find the row or region that reveals a hover-only control in the latest element tree. Run
gesture-hoverthere and check the returned tree or screenshot. Useawait-ui-elementfor a delayed control. Usegesture-tapdirectly for visible controls. - Verify hover effects before moving the pointer again. To clear a hover, call
gesture-hover {leave: true}. If the tree reports that the user took back the pointer, wait until they finish, then hover again. open-url: the URL goes to the running app. A custom scheme must be one the app declares;httpandhttpsgo to the app, not the browser; afile:URL opens that document in the app.- A SwiftUI
DisclosureGroupopens only at its chevron, near the left end of its frame: a tap at the centre passes and does nothing. Tap along the left end in steps of about 0.008 until itsvaluechanges. menu-barfor any menu command. An item listed[disabled]cannot be chosen right now: an edit command (Copy, Select All) needs the text field clicked first; while an alert is open only its own commands work, so answer the alert first. When a menu of the app is open,choosefails: sendkeyboard {key: "escape"}, then choose again.- Open and save panels: never click in the file list, which
describecannot read. Usefile-panel, also for the Delete or Don't Save prompt of an edited new document.
Tree
- Identifiers: AppKit and UIKit
accessibilityIdentifier, SwiftUI.accessibilityIdentifier(), webdata-testid(elseid), React NativetestID(also on a plainVieworTextin react-native-macos). - Hint
The Mac is lockedorfallback walk: clicks and typing still work, elements can be missing (an open context menu among them), and ahiddencheck cannot pass. Ask the user to unlock when a target is missing. - An action that fails or has no effect: a minimized window takes no input. Restore it by choosing it in the Window menu with
menu-bar; without such an item, ask the user.
Mac Catalyst (kind catalyst)
- Build with
xcodebuild -scheme <scheme> -destination 'platform=macOS,variant=Mac Catalyst' build. Add-workspace <name>.xcworkspacefor a workspace (React Native, CocoaPods), or-project <name>.xcodeprojto select a project. Without-scheme, xcodebuild ignores the destination and builds for iOS. A Debug build is in DerivedData underBuild/Products/Debug-maccatalyst/, notDebug-iphonesimulator/. Pass that.apptoboot-device. If it reports "Designed for iPad", ask for the Mac Catalyst build or suggest testing on an iOS simulator. - Use
describeto find UIKit controls and their frames. AppKit view-tree tools are unavailable. - Switch to the intended window with
menu-barand the Window menu. Tap the target field before typing, since keyboard focus can be in another window and SwiftUI Tab order can differ from the visible order. - Tap alert buttons directly. Return depends on a default action, and Escape can leave a UIKit text-field alert open.
- Find toolbar menu buttons by label if Optimize Interface for Mac leaves them without identifiers.
- If typing, paste, or scrolling reports success without changing the app, check whether the installed native library supports Mac Catalyst input.
Profiling
Use argent-native-profiler for native profiling or argent-react-native-profiler to capture React performance on a react-native-macos or Mac Catalyst React Native app. Instruments can pause the app during leak checks, delaying actions and inspection. After MACOS_APP_RPC_TIMEOUT, use describe before retrying because the action may already have taken effect.
E2E tests
Read references/e2e.md before recording or writing a test for a Mac app.
React Native
For React Native Debug builds on macOS, including Mac Catalyst, start Metro before boot-device (see argent-react-native-app-workflow). Use describe for UI targets. For JavaScript debugging and network capture, load argent-metro-debugger and follow React Native Mac apps and Inspect network requests.
Explore more skills
Browse all- Argent QA E2EWrite repeatable QA regression e2e tests from test cases, tickets, or acceptance criteria (iOS, Android, Chromium, Mac…
- Argent Test UI FlowAutonomously verify one-off mobile UI flows (iOS/Android) with interact-screenshot-verify loops. Use when testing…
- Argent Settings PermissionsGrant, deny, or reset app runtime permissions out-of-band on an iOS simulator or Android device via…
- Argent Device InteractDrive iOS, Android, or Chromium apps with Argent MCP tools. Use when tapping, swiping, typing, launching apps, waiting…
- Argent Screen RecordingRecord a screen video with Argent on iOS, Android, or Mac apps. Use when asked to capture a video clip of a flow,…
- Argent React Native OptimizationEntry-point for React Native performance optimization; profiles first via `argent-react-native-profiler`. Use when the…
Security
Reviews (0)
More from argent
View source →Frequently asked questions about argent-macos-app-interact
What does the argent-macos-app-interact skill do?
Drive a native Mac app (AppKit, SwiftUI, react-native-macos, Catalyst) with Argent. Use when targeting platform "macos" or a native macOS app, never iOS or Electron/Chromium. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the argent-macos-app-interact skill?
Run `npx @skills-hub-ai/cli install argent-macos-app-interact` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/argent-macos-app-interact/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does argent-macos-app-interact work with?
argent-macos-app-interact runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the argent-macos-app-interact skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use argent-macos-app-interact after installing it?
In Claude Code, type `/argent-macos-app-interact` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the argent-macos-app-interact skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/argent-macos-app-interact)<a href="https://skills-hub.ai/skills/argent-macos-app-interact"><img src="https://skills-hub.ai/api/badges/skill/argent-macos-app-interact" alt="Install on Skills Hub"></a>More options in the badge docs.