macOS应用

macOS应用 is a skill for Cursor from nongjun/feishu-cursor-claw. It costs 44 tokens per session (470 once invoked), scanned A, original, MIT.

Development guidance for building native macOS desktop apps with Swift and SwiftUI, including windows, storage, permissions, networking, and distribution.

In plain words
What is it for?
Use it when planning or implementing SwiftUI apps with persistent data, file access, background work, network requests, menus, or App Store and direct distribution.
Why use it?
It highlights macOS-specific requirements such as sandbox permissions, multiple windows, secure token storage, signing, and notarization.

Skill for Cursor

Written for Cursor: installed under .cursor/.

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.

agentmods
npx agentmods add skills/nongjun/feishu-cursor-claw/macos
Any agent
npx skills add nongjun/feishu-cursor-claw --skill macos
Clone the repo
git clone --depth 1 https://github.com/nongjun/feishu-cursor-claw

Made for: Cursor.

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 macOS应用

README.md
[![agentmods](https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/macos.svg)](https://agentmods.dev/skills/nongjun/feishu-cursor-claw/macos)
Your own site
<a href="https://agentmods.dev/skills/nongjun/feishu-cursor-claw/macos"><img src="https://agentmods.dev/badge/skills/nongjun/feishu-cursor-claw/macos.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00044 $0.00470
Opus 5 $0.00022 $0.00235
Sonnet 5 $0.00009 $0.00094
Haiku 4.5 $0.00004 $0.00047

Measured 6d ago against content hash de57ae4f6470, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

macOS应用 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/skills/macOS应用/SKILL.md · 50 lines

What it actually says

macOS 应用开发模式

适用场景

使用 Swift/SwiftUI 开发 macOS 桌面应用时。

核心原则

  • 沙箱优先——App Store 要求沙箱化,提前规划权限需求
  • 原生体验——遵循 macOS 人机界面指南,菜单栏、快捷键、拖拽都要支持
  • 后台能力——macOS 应用可以后台运行,注意内存和 CPU 占用
  • 多窗口——macOS 用户期望多窗口支持,不要做成单窗口

SwiftUI 模式

  • 用 @State、@Binding、@ObservedObject 管理状态
  • 复杂状态用 @EnvironmentObject 跨视图共享
  • 列表用 LazyVStack/LazyHStack 做懒加载
  • 导航用 NavigationSplitView(macOS 三栏布局)

数据持久化

  • 简单配置用 UserDefaults 或 @AppStorage
  • 结构化数据用 SwiftData 或 Core Data
  • 文件操作需申请沙箱权限,用 NSOpenPanel/NSSavePanel
  • 敏感数据(密码、Token)存 Keychain

网络通信

  • 用 URLSession 或 Alamofire 做 HTTP 请求
  • 异步操作用 async/await(Swift Concurrency)
  • 处理网络不可用的情况,给用户明确提示

分发方式

  • App Store:需要沙箱、签名、审核
  • Developer ID:签名 + 公证(Notarization),可直接分发
  • 企业内部:可以用 .app 或 .dmg 直接分发(需关闭 Gatekeeper 或签名)

常见坑点

  • macOS 权限系统比 iOS 复杂(辅助功能、屏幕录制、完全磁盘访问等)
  • 菜单栏应用(MenuBarExtra)的生命周期与窗口应用不同
  • 进程间通信用 XPC 或 DistributedNotificationCenter
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. 6d ago First seen · 50 lines · 44 tokens per session scan A de57ae4f6470

Subscribe to this mod's changes

macOS应用 is a skill published in the GitHub repository nongjun/feishu-cursor-claw (14 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 470 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

android-feature

Workflow for implementing a new Android feature, screen, fragment, activity, dialog, adapter, or enhancement in this XML/MVVM template. Use whenever the user asks to add, build, implement, or extend functionality — before writing any code. Covers planning, the MVVM/MVI skeleton, the Android configuration checklist…

orbitalsonic/AndroidPilot · 72 tokens

swiftui-view-architect

Refactor oversized SwiftUI view files into stable, dedicated subviews with MV-first data flow, explicit dependencies, extracted actions, and correct Observation usage.

Xopoko/build-swift-apps · 36 tokens

flutter-codestyle

Custom Instructions: Senior Flutter & Dart Engineer.

GulajavaMinistudio/awesome-copilot-id · 13 tokens

ios-agent-skill

Expert iOS/Swift developer behavior for AI coding agents. Use when writing, reviewing, or refactoring Swift, SwiftUI, UIKit, or SwiftData code; when designing iOS app architecture (MVVM, Clean Architecture, coordinators, routing); when building UI that must meet Apple's Human Interface Guidelines, contrast, dark-mode…

Nagarjuna2997/ios-agent-skill · 167 tokens

bootstrap-ios

Bootstrap agents for iOS, iPadOS, macOS, Swift, SwiftUI, SwiftData/Core Data, Swift Testing, Xcode build/test/debug, Simulator, App Intents, or XcodeBuildMCP work. Use before building, fixing, refactoring, QAing, or setting up Apple-platform repos, and when asked to load/install Ray's iOS skills or bootstrap iOS.

RayFernando1337/rayfernando-skills · 84 tokens

build-swift-apps

Route broad or ambiguous Swift and Apple-platform work to a focused skill; this router does not implement domain work. Covers iOS, macOS, SwiftUI, Xcode, Simulator, App Store Connect, Tuist, SwiftPM, signing, profiling, and Apple research.

Xopoko/build-swift-apps · 61 tokens