agentleFS
trac3r00trac3r00/agent-skills/skills/finder/SKILL.md

finder

Skill0 starsChanged 10 days agoMITView on GitHub

Read and control Finder: selection, listings, reveal/open, folders, tags, Trash, eject. Use for explicit Finder tasks. Not for Office files (moffice).

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Finder

scripts/finder.py uses Finder's AppleScript object model and /usr/bin/xattr for tags. It uses no System Events, keystrokes, or mouse clicks. Run it from this skill's directory.

Commands

python3 scripts/finder.py --json selection
python3 scripts/finder.py --json front                     # front Finder window
python3 scripts/finder.py --json list PATH [--limit N]     # name, kind, bytes, modified; 0 = no limit
python3 scripts/finder.py --json info PATH                 # Finder's common item properties
python3 scripts/finder.py --json tags PATH
python3 scripts/finder.py --json reveal PATH
python3 scripts/finder.py --json open PATH
python3 scripts/finder.py --json new-folder PARENT NAME
python3 scripts/finder.py --json set-tags PATH TAG...      # replaces all tags
python3 scripts/finder.py --json trash PATH --yes
python3 scripts/finder.py --json eject VOLUME --yes

--json is accepted anywhere on the command line. tags returns an empty list only when attribute enumeration succeeded and the tag attribute is absent. A failed read is reported as an error; a permission failure is not evidence that a file has no tags.

Boundaries and exit codes

  • new-folder, set-tags, trash and eject change the filesystem. Run them only when the user named the action and the target. Only that path is changed.
  • trash and eject exit 2 without --yes. Pass --yes only after the user named that path for Trash or that volume for eject.
  • Done when the command exits 0; report its JSON.
  • 0 success. 1 Finder or filesystem error, always as {"error": "..."} on stdout. 2 invalid arguments, non-macOS, missing tools, denied Automation permission, or a missing --yes.
  • macOS only; Python standard library, /usr/bin/osascript and /usr/bin/xattr.
  • 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.