use-peek

use-peek is a skill for Claude Code from alexmx/peek. It costs 51 tokens per session (3,154 once invoked), scanned A, original, MIT.

A command-line tool for inspecting and controlling native macOS app windows through the system's accessibility features. It can inspect interface elements, take screenshots, press controls, and manage app windows.

In plain words
What is it for?
Use it to inspect a native app's accessibility tree, find buttons or other elements, launch apps, send keyboard shortcuts, click controls, and verify UI changes.
Why use it?
It helps diagnose and automate macOS apps when you need to see what controls exist, interact with them, and confirm that an action changed the interface.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to inspect a native app's accessibility tree, find buttons or other elements, launch apps, send keyboard shortcuts, click controls, and verify UI changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexmx/peek/use-peek
View source ↗ alexmx/peek
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alexmx/peek --skill use-peek
Clone the repo
git clone --depth 1 https://github.com/alexmx/peek

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for use-peek

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmx/peek/use-peek/github.svg)](https://agentmods.dev/skills/alexmx/peek/use-peek)
Your own site
<a href="https://agentmods.dev/skills/alexmx/peek/use-peek"><img src="https://agentmods.dev/badge/skills/alexmx/peek/use-peek/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for use-peek

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexmx/peek/use-peek"><img src="https://agentmods.dev/badge/skills/alexmx/peek/use-peek.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.03154
Opus 5.5 $0.00020 $0.01262
Sonnet 5.5 $0.00010 $0.00631
Haiku 4.5 $0.00005 $0.00315

Measured 7d ago against content hash 7d8f6557a050, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

use-peek scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/use-peek/SKILL.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

peek — macOS Window Inspector CLI

peek inspects and drives native macOS app windows via Accessibility: tree inspection, element search, UI automation, screenshots, app lifecycle, menu bar.

Requirements: macOS 15+, Accessibility permission (and Screen Recording for peek capture). Run peek doctor --prompt to grant.

Always pass --format toon for LLM workflows (30-50% fewer tokens than JSON).

Workflow

Discover → act → verify in as few calls as possible.

peek launch --name Calculator --wait-for-window        # → returns pid + windowID + windowTitle
peek find --app Calculator --role Button --title 5 --limit 1
peek action --app Calculator --do Press --role Button --title 5 --verify diff
  • Discover with peek launch --wait-for-window (returns windowID) or peek apps --app X. Skip peek apps after launch — it's already in the result.
  • Inspect structure with peek tree (unfamiliar UI) or peek find (known labels, much cheaper — --limit 1 for existence checks).
  • Act+verify in one call: peek action --verify diff returns just the delta — usually 10x smaller than --verify tree.
  • Shortcuts (⌘S, Esc, arrows, F-keys): use peek key, not menu navigation.
  • Menu items: peek menu --click "Save" for menu BAR; peek action --do Press only works for items in an already-open menu.

Window targeting

All UI commands accept one of: --app NAME (case-insensitive substring), --pid PID, or a positional <window-id>. --app is simplest. Doesn't apply to launch / quit (use --bundle-id / --name).

For coordinate ops (click/drag/scroll) with a target set, peek verifies the point lands on that app/window — it raises an occluded target window, or errors (x, y) is over '<OtherApp>' if the coordinates are stale or over another window. On that error, re-read frames with peek find (windows move/resize) or pass a specific <window-id> for multi-window apps.

Window-less apps (Dock, Control Center, status-menu helpers): --app NAME or --pid scopes find/tree/action to the AXApplication root. Not in plain peek apps — go straight to peek find --app Dock --role AXDockItem (peek apps --include-panels does list the ones owning panels/status items).

Read the full file on GitHub · 160 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed 7d8f6557a050
  2. 1mo ago Changed · +5 lines 0bdfcd50c72c
  3. 1mo ago First seen · 155 lines · 51 tokens per session scan A 7c950419ab52

Subscribe to this mod's changes

use-peek is a skill published in the GitHub repository alexmx/peek (5 stars, last pushed 8d ago), licensed MIT. It adds 51 tokens to every session and 3,154 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/OpenCLI · 61 tokens

surf

Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.

nicobailon/surf-cli · 60 tokens

tauri-mcp-cli

Use the Tauri MCP CLI to start and recover driver sessions, automate Tauri webviews, capture UI state, debug IPC, and work with mobile or remote devices. Use whenever an agent needs to operate a Tauri v2 app from terminal commands.

hypothesi/mcp-server-tauri · 57 tokens

acrawl-mcp

Drive the acrawl MCP server for browser automation, web scraping, and live DevTools inspection — navigating pages, clicking, filling forms, extracting structured data, and auditing network traffic, console errors, cookies, storage, performance, accessibility, and code coverage. Use this whenever a task touches acrawl…

Mingye-Lu/AgenticCrawler · 200 tokens

agent-computer-use

REQUIRED for any task that involves operating a desktop application — opening apps, clicking buttons, typing into fields, pressing keys, scrolling, dragging, reading what's on screen, moving or resizing windows, or verifying state after an action. Always use the agent-cu CLI commands (open, snapshot, click, type, key…

kortix-ai/agent-computer-use · 216 tokens

debug-failed-action

When your last vsact returned an unexpected result (NOTFOUND, no visible state change, suspected silent failure), run this skill with the action's pre-token. Pulls console errors, network failures, and current performance into one report.

frane/vibesurfer · 54 tokens