agentleFS
trac3r00trac3r00/core-skills/skills/appshot/SKILL.md

appshot

Skill0 starsChanged 9 days agoMITView on GitHub

Capture a macOS window, screen, or region as a PNG with screencapture. Use for visual evidence or desktop state. Not for UI judgment (visual-qa).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run --list first when the target window is unknown.

    line 24
  2. Distinctive:

    Write captures to a task-owned scratch directory and delete them when the task ends, unless the user wants them kept.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

AppShot

scripts/appshot.py captures macOS windows with the built-in screencapture; no dependencies.

python3 scripts/appshot.py --list [--json]                  # apps with capturable windows
python3 scripts/appshot.py --screen --out /tmp/<task>/screen.png
python3 scripts/appshot.py --app "Google Chrome" --out /tmp/<task>/chrome.png
python3 scripts/appshot.py --region --out /tmp/<task>/region.png   # user drags a region
python3 scripts/appshot.py --screen --out -                 # base64 PNG on stdout
  1. Run --list first when the target window is unknown. Apps whose windows cannot be counted appear under skipped (JSON) or as stderr warnings (text); they are not hidden. --list exits 1 when no window is capturable.
  2. Capture only the surface the user asked for; screens can show private data. --app brings that app to the front through System Events, which may need Accessibility/Automation permission.
  3. Done when the helper exits 0 and prints captured: PATH (N bytes) (or {"captured", "bytes"} with --json). Open the image and look at it before describing it.
  4. Write captures to a task-owned scratch directory and delete them when the task ends, unless the user wants them kept.

Exit codes: 0 captured, 1 nothing captured (no window, activation or capture failure), 2 usage error or non-macOS. For clicks, typing, or window control this helper does not cover, use the opencua skill (OpenCUA, formerly apple-cua; CLI opencua). Never write an ad-hoc input script or use OmO's native computer-use.

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.