agentleFS
CodeWithBehnamCodeWithBehnam/cc-docs/skills/productivity/steer/SKILL.md

steer

Skill2 starsChanged 8 months agoMITView on GitHub

macOS GUI automation CLI. Use steer to see the screen, click elements, type text, send hotkeys, scroll, drag, manage windows and apps, run OCR on Electron apps, and wait for UI conditions.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 6 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run steer --help and steer help <command> to learn each command's flags before using it.

    line 10
  2. Very specific:

    Always pass --json for structured output.

    line 31
  3. Distinctive:

    Before doing anything, understand the display setup, what's running, and capture the current state of every screen:

    line 39
  4. Distinctive:

    Before interacting with any app, make sure it's the active window on the right screen:

    line 52
  5. Distinctive:

    Read the JSON — understand what you see

    line 66
  6. Distinctive:

    Do ONE action (click, type, hotkey, scroll)

    line 67
  7. Very specific:

    Run steer see --app <app> --json to get a fresh snapshot

    line 75
  8. Distinctive:

    Use element IDs from the snapshot (B1, T1, L3) — not coordinates when possible

    line 76
  9. Distinctive:

    If using coordinates, they are relative to the screenshot image, factor in window position

    line 77
  10. Very specific:

    After clicking, run steer see again to confirm the click landed

    line 78
  11. Very specific:

    Before typing anything: ALWAYS check focus with steer focus --json to confirm the right element is targeted.

    line 82
  12. Very specific:

    If you're not focused on the right element, use steer apps activate <AppName> --json to switch apps or steer click to focus the correct …

    line 83
  13. Very specific:

    Use steer type "text" --into T1 --json to click-then-type in one step when targeting a specific field

    line 85
  14. Very specific:

    If typing into the already-focused element, just steer type "text" --json

    line 86
  15. Very specific:

    After typing, verify with steer see that the text appeared correctly

    line 87
  16. Very specific:

    Don't assume the UI is ready after an action.

    line 108
  17. Very specific:

    If there are multiple screens, coordinates and screenshots are per-screen.

    line 117
  18. Very specific:

    Run steer help <cmd>: if you're unsure about a command's flags

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Steer — macOS GUI Automation

Binary: apps/steer/.build/release/steer

Run steer --help and steer help <command> to learn each command's flags before using it.

Commands

CommandPurpose
seeTakes a screenshot (PNG) and walks the accessibility tree. Screenshot always succeeds. Elements are best-effort — may be empty for Electron apps. Pass --ocr to fall back to OCR when the tree is empty.
clickClick by element ID, label, or coordinates
typeType text into focused element or a target
hotkeyKeyboard shortcuts (cmd+s, return, escape, etc.)
scrollScroll up/down/left/right
dragDrag between elements or coordinates
appsList, launch, or activate apps
screensList displays with resolution and scale
windowMove, resize, minimize, fullscreen, close windows
ocrTakes a screenshot and runs Vision OCR on it. Returns text with x/y positions. Use --store to make results clickable (O1, O2, etc.). Use when see returns no elements.
focusShow currently focused element
findSearch elements by text in latest snapshot
clipboardRead/write system clipboard
waitWait for app launch or element to appear

Always pass --json for structured output.

How to Work

You are controlling a real macOS desktop. You cannot see anything unless you explicitly look. You cannot assume anything worked unless you verify.

1. Know your environment first

Before doing anything, understand the display setup, what's running, and capture the current state of every screen:

steer screens --json       → which monitors exist, their resolution
steer apps --json          → what apps are running
steer see --screen 0 --json  → screenshot of screen 0 (primary)
steer see --screen 1 --json  → screenshot of screen 1 (if exists)

Take a screenshot of each screen returned by steer screens. Read them. This gives you a baseline of the desktop before you start making changes.

2. Focus the app, then verify

Before interacting with any app, make sure it's the active window on the right screen:

steer apps activate Safari --json
steer see --app Safari --json        → verify it's in front, read the state

3. One action, then observe

NEVER chain multiple steer commands in one bash call. The screen changes after every action. You must look after every action.

The loop is:

  1. steer see — look at the screen
  2. Read the JSON — understand what you see
  3. Do ONE action (click, type, hotkey, scroll)
  4. steer see — look again to confirm it worked
  5. Repeat

4. Clicking safely

Before clicking anything:

  • Run steer see --app <app> --json to get a fresh snapshot
  • Use element IDs from the snapshot (B1, T1, L3) — not coordinates when possible
  • If using coordinates, they are relative to the screenshot image, factor in window position
  • After clicking, run steer see again to confirm the click landed

5. Typing into fields

  • Before typing anything: ALWAYS check focus with steer focus --json to confirm the right element is targeted.
    • If you're not focused on the right element, use steer apps activate <AppName> --json to switch apps or steer click to focus the correct field.
    • Then validate your focus with steer focus --json
  • Use steer type "text" --into T1 --json to click-then-type in one step when targeting a specific field
  • If typing into the already-focused element, just steer type "text" --json
  • After typing, verify with steer see that the text appeared correctly
  • For URLs in browsers: type the URL, then steer hotkey return --json, then steer see to confirm navigation

6. Reading content from apps

Both see and ocr save a screenshot PNG. The path is in the JSON output under "screenshot". You can read this image file to visually inspect what's on screen.

Native apps (Safari, Finder, Terminal): steer see --app <name> --json gives you the accessibility tree with labeled elements. If the element list is empty, the screenshot still exists — read it or try --ocr to fall back.

Electron apps (VS Code, Slack, Notion): Accessibility trees are empty. Use OCR instead:

steer ocr --app "VS Code" --store --json

With --store, OCR results become clickable elements (O1, O2, etc.).

Web pages: Accessibility tree may be shallow. Use steer ocr --app Safari --json to read all visible text with positions. Use the positions to click precisely.

7. Waiting for things

Don't assume the UI is ready after an action. Use steer wait or run steer see in a loop:

steer wait --app Safari --json                     → wait for app to launch
steer wait --for "Submit" --app Safari --json      → wait for element to appear

8. Multi-monitor awareness

If there are multiple screens, coordinates and screenshots are per-screen. Always check steer screens --json first and use --screen <index> when needed.

Element IDs

Elements from steer see get role-based IDs: B (button), T (text field), S (static text), I (image), C (checkbox), L (link), M (menu item), O (OCR element), etc.

IDs regenerate with each snapshot. Always use IDs from the most recent steer see or steer ocr --store.

Rules

  • One command per bash call — never chain steer commands
  • Always verify — steer see after every action
  • Focus first — activate the app before interacting
  • Know your screens — check steer screens before clicking
  • Use --json always — structured output is reliable
  • Write all files to /tmp — never write output files into the project directory
  • Run steer help <cmd> if you're unsure about a command's flags

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.