Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

agent-nativeAgent 本机

Agent Skill

agent-native 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

2

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-native(Agent 本机)
来源仓库:https://github.com/ericclemmons/agent-native
仓库路径:skills/agent-native
安装命令:
npx skills add https://github.com/ericclemmons/agent-native --skill agent-native
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ericclemmons/agent-native --skill agent-native

简介

agent-native 专用于 macOS 原生应用自动化,基于辅助功能树进行操作。

  • 支持 Safari、Arc 等已知浏览器及其他桌面程序的元素级交互。
  • 优先复用已打开应用实例以减少启动开销并提升操作效率。
  • 需提前授予终端辅助功能权限方可正常使用相关 API 能力。
  • 适用于 macOS 13+ 环境,二进制文件需预先编译并放置于 PATH 路径下。

SKILL.md

agent-native

macOS native app automation via the Accessibility tree. Like agent-browser, but for desktop apps.

Prerequisites

  • macOS 13+ with Accessibility permissions granted to your terminal
  • Binary at agent-native (install via swift build -c release && cp.build/release/agent-native /usr/local/bin/)

Core Workflow

apps -> pick/open target -> snapshot -> interact by ref -> re-snapshot

  1. Always start with agent-native apps to see what's already running. Prefer reusing an already-open app (e.g. if a browser is already open, use it instead of opening a different one).

- Known browsers: Safari, Arc, Chrome, Firefox, Helium. Any of these can be used for web tasks.

  1. Only call agent-native open <app> if the target app isn't already running.
  2. Snapshot, interact, and re-snapshot as needed.
agent-native apps                            # Check what's already running
agent-native snapshot Safari -i              # Use the already-open browser
agent-native click @n5                       # Interact using refs
agent-native snapshot Safari -i              # Re-snapshot after UI changes

Always re-snapshot after actions that change the UI. Refs are invalidated when UI structure changes.

Commands

Navigation

agent-native open <app>                          # Open/activate by name or bundle ID
agent-native open "System Settings"
agent-native open com.apple.Safari               # Already-running apps just activate

Screenshot

agent-native screenshot <app> [path]             # Capture app's frontmost window
agent-native screenshot Slack                    # Saves to /tmp/agent-native-screenshot.png
agent-native screenshot Slack /tmp/slack.png     # Custom path
agent-native screenshot Slack --json             # {"path": "...", "width": ..., "height": ...}

Keystroke Sending

agent-native key <app> <keys...>                 # Send keystrokes to an app
agent-native key Slack "Hello world"             # Type text
agent-native key Slack cmd+k                     # Send Cmd+K
agent-native key Slack escape                    # Special keys: escape, return, tab, delete, up, down, left, right, space
agent-native key Slack cmd+a delete              # Chain multiple keys
agent-native key Calculator 5 + 3 return         # Multiple keystrokes

Modifiers: cmd/command, ctrl/control, alt/option/opt, shift

Paste File

agent-native paste <app> <path>                  # Copy file to clipboard and Cmd+V into app
agent-native paste Slack /tmp/screenshot.png     # Paste image into Slack
agent-native paste Slack ./report.pdf            # Paste any file

Snapshot (recommended for agents)

agent-native snapshot <app>                      # Full AX tree with refs
agent-native snapshot <app> -i                   # Interactive elements only (recommended)
agent-native snapshot <app> -i -c                # Interactive + compact
agent-native snapshot <app> -d 3                 # Limit depth
agent-native snapshot <app> -i --json            # JSON for parsing
FlagDescription
-iInteractive elements only
-cCompact -- remove empty structural elements
-d <n>Limit tree depth
--jsonJSON output

Interaction (use @refs from snapshot)

agent-native click @n2                           # Click / press
agent-native fill @n3 "text"                     # Clear field and type
agent-native type @n3 "text"                     # Type without clearing
agent-native select @n5 "Option A"               # Select from dropdown
agent-native check @n4                           # Check checkbox (idempotent)
agent-native uncheck @n4                         # Uncheck checkbox (idempotent)
agent-native focus @n3                           # Focus element
agent-native hover @n2                           # Move cursor to element
agent-native action @n7 AXIncrement              # Any AX action

Read State

agent-native get text @n1                        # Get text / title / label
agent-native get value @n3                       # Get input value
agent-native get attr @n2 AXEnabled              # Get any AX attribute
agent-native get title Safari                    # Frontmost window title
agent-native is enabled @n5                      # true / false
agent-native is focused @n3                      # true / false

Discovery

agent-native apps                                # List running GUI apps
agent-native apps --format json                  # JSON output
agent-native find <app> --role AXButton          # Find elements by filter
agent-native find <app> --title "Submit"         # Find by title
agent-native inspect @n3                         # All attributes and actions
agent-native tree <app> --depth 3                # Raw AX tree (no refs)

Wait

agent-native wait <app> --title "Apply" --timeout 5
agent-native wait <app> --role AXSheet --timeout 10

Browser & Electron Enhanced Access

Chromium browsers (Arc, Chrome, Edge, Brave, Vivaldi) and Electron apps don't expose web DOM content in the macOS AX tree by default. snapshot now auto-detects these apps and enhances access automatically.

Priority chain: CDP read → AX-enhanced interact → keyboard fallback → screenshot

Automatic Detection in snapshot

agent-native snapshot Arc -i                      # Auto-detects Chromium, enables AX enhancement
agent-native snapshot "VS Code" -i                # Auto-detects Electron, enables AX enhancement

When snapshot detects a Chromium/Electron app:

  1. CDP mode (richest): If browser was launched with --remote-debugging-port, snapshot reads the full web accessibility tree via Chrome DevTools Protocol
  2. AX-enhanced mode (fallback): Sets AXEnhancedUserInterface to force the app to build its accessibility tree, then walks it normally

CDP Mode (richest web content)

Launch your browser with CDP enabled for the best results:

# Launch Chrome with CDP
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

# Snapshot auto-detects CDP on ports 9222/9229
agent-native snapshot Chrome -i

# Or specify a port explicitly
agent-native snapshot Chrome -i --port 9222

Manual Persistent Control

agent-native ax-enable Arc                        # Persistently enable AXEnhancedUserInterface
agent-native snapshot Arc -i                      # Now shows web page elements
agent-native ax-disable Arc                       # Restore when done

Fallback: Keyboard Shortcuts + Screenshots

When AX tree is still sparse (some Electron apps), fall back to keyboard-driven interaction:

agent-native key Slack cmd+k                     # Open quick switcher
agent-native key Slack "channel name" return     # Type and confirm
agent-native screenshot Slack /tmp/slack.png     # Visual confirmation
agent-native get title Slack                     # Check navigation state

Pasting files into apps

agent-native paste Slack /path/to/image.png      # Copies to clipboard and pastes in one step

Tips

  • Always use -i with snapshot -- full trees are noisy.
  • Re-snapshot after navigation -- old refs may not resolve after UI changes.
  • check/uncheck are idempotent -- they read current state first.
  • fill clears first, type appends.
  • AX tree peers into browsers -- Safari/Chrome expose web content as AX nodes.
  • Electron apps need keyboard shortcuts -- use System Events keystrokes when AX is sparse.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.22%
按下载量换算27

Claude

31.59%
按下载量换算23

Cursor

19.19%
按下载量换算14

Gemini CLI

9.8%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills