agentleFS
HenryQWHenryQW/skills/macos-app/SKILL.md

macos-app

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Use when building, debugging or shipping a native macOS app (SwiftUI or AppKit; window, document, library, utility, menu bar or background app). Triggers include starting an app in an empty folder, a Mac with Command Line Tools only and no Xcode, a macOS repo with no README, AGENTS, DESIGN or GLOSSARY file, a UI review against Mac conventions, an app that reads other processes (parent pid, executable path, arguments), a first release without an Apple Developer ID, Sparkle updates, a Stable and Beta update channel, a Homebrew cask, release notes, "permissions reset after update", "Keychain asks again", a code-signing certificate or identity, a permission lost after a rebuild, a window that jumps, shrinks and grows back, flickers or resizes in a loop, a helper or daemon that runs as root, SMAppService or a LaunchDaemon, history stored in SQLite with high disk writes, and a docs site or a one-line install script.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Run scripts as bash <path>: a copy can lose the execute bit.

    line 36
  2. Very specific:

    Never send keys or move the pointer while the user is active (check HIDIdleTime).

    line 37

≈ “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

macOS app

One skill for the life of a native Mac app: make it, check it, debug it, ship it. Read this page, then only the file for your situation. Each file stands alone.

SituationRead
New app, empty folder, or a repo without the four root filesscaffolding.md
Toolchain errors with Command Line Tools only (@State, @Test, XCTest)scaffolding.md (traps table)
Platform traps (NSApp nil, Settings window size, panel focus, slide animation)templates/app/AGENTS.md (traps list)
A UI change is ready, before you call it donemac-citizen.md
The app reads other processesprocess-inspection.md
Signing identity, a permission (Input Monitoring, Accessibility, Screen Recording) lost after a rebuild, an app that gets no events while its permission shows onsigning.md
First release, Sparkle, DMG, Homebrew cask, release notesshipping.md
Stable and Beta update channelschannels.md (after shipping.md)
A window changes size by itselfwindow-resizes.md
A helper or daemon that runs as root, SMAppService.daemon, a LaunchDaemon, XPC between app and helperprivileged-helper.md
History recorded every few seconds for weeks (SQLite, one writer), disk writes too highhistory-storage.md
A docs site, the one-line install.sh, and an app icondocs-site.md

Layout

  • scripts/scaffold.sh: makes a new app from templates/app/.
  • scripts/watch-frames.sh: streams a window's frame log and flags abnormal resizes.
  • templates/app/: the starter app (Package.swift, Makefile, the four root files, Sources, Tests, docs).
  • templates/release/: the release scripts, workflows, cask, Sparkle updater and icon renderer. Copy them in when the app needs its first release, not at scaffold time.
  • templates/website/: the docs site and public/install.sh.

Rules for every file

  • Placeholders: __APP_NAME__, __EXEC__, __BUNDLE_ID__, __MIN_MACOS__, and in release templates also __GH_REPO__, __TAP_REPO__, __CASK__. Fill all until grep -rn '__[A-Z_]*__' finds none.
  • Run scripts as bash <path>: a copy can lose the execute bit.
  • Never send keys or move the pointer while the user is active (check HIDIdleTime). Screenshots are of one window only.
  • The user creates and holds secrets (certificates, .p12 passwords, the Sparkle private key, tokens). The agent never reads or prints them.

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.