Scaffolds a native macOS app (Swift 6, SwiftUI, XcodeGen) from zero, standalone or apps/desktop/macos in a monorepo. Not for iOS. House convention: XcodeGen `project.yml` (no committed .xcodeproj), macOS 15+, a sidebar NavigationSplitView window, App Sandbox with the outgoing-network entitlement (without it a sandboxed app cannot reach even localhost), a local Swift package, Swift Testing, API URL from the root `.env`, a /ping seed. Use when the user wants to start, set up or scaffold a new Mac app: "맥 앱 세팅해줘", "맥북용 프로그램 만들어줘", "macOS 앱 프로젝트 만들어줘", "apps/desktop/macos 만들어줘", "모노레포에 맥 앱 추가해줘", "SwiftUI로 데스크톱 앱 시작하고 싶어", "bootstrap a macOS app", "scaffold a Mac SwiftUI app". Do NOT use for: an iPhone or iPad app, or an iOS app that should also run on Mac (ios-bootstrap), a whole project or two or more bootstrap legs at once (toolkit:project-setup), screens for an existing Mac app (macos-screen-creator-bootstrap), its theme (native-design-system-import) or release (macos-release), Catalyst, Electron, Tauri.
Ships in mobile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffolds a native, Mac-only app that matches the house convention. It is ios-bootstrap's
sibling: same package layout, same env bridge, same XcodeGen spec, with the Mac's own window
shape, sandbox and test destination. This file is the control flow: run the phases in
order, pass each phase's gate, and stop (don't cascade) on failure. File contents live in
references/*.md; read the referenced file at the top of each phase, then write the files.
Every file in the references uses three placeholders. Replace them everywhere, file and
folder names included: MyApp (PRODUCT, the PascalCase target name), My App
(DISPLAY_NAME), com.example.myapp (BUNDLE_ID).
These are the reasons this skill exists; each is handled in the phase noted.
com.apple.security.network.client is granted, localhost included. swift test runs
unsandboxed, so the bug only shows in the app (phase 2).CODE_SIGNING_ALLOWED=NO, the iOS simulator habit, builds an
app with no entitlements, so the sandbox is off in every check. This skill signs to run
locally (ad-hoc, no Apple team) and reads the entitlements back from the signature (phase 4).NavigationStack leaves most of a Mac
window empty; the seed uses a sidebar NavigationSplitView and a toolbar refresh with
Command-R, since a Mac has no pull-to-refresh (phase 1).xcodegen generate fails on a
missing source folder, so the sources must exist before the project spec is generated.REPO_ROOT
line in sync-env.sh; a standalone .gitignore matches when it holds every reference line) means the step is
skipped; a file that exists and differs is left alone and reported as differs.
project.yml is the source of truth and is never regenerated over; the .xcodeproj is
derived output, and xcodegen generate may be re-run any time.MACOS_ROOT. Repo-root files (.gitignore, package.json,
pnpm-workspace.yaml, .env*) and sibling apps are read-only here, except appending
missing ignore lines in standalone mode. Root package.json scripts are a suggestion in
the report, not an edit..env, at the repo root. No new env keys and no .env* file under MACOS_ROOT.
The debug base URL is derived from API_PORT (references/config-env.md).brew install xcodegen), running
xcodebuild -runFirstLaunch (it installs system packages), or writing into a non-empty
MACOS_ROOT needs a yes from the user in this turn. Installing Xcode is the user's own
step; never start that download. Interactively, show the phase 0 Plan: line and wait for
a yes before the first write. In a non-interactive run (subagent, claude -p, cron), print
the Plan: line and stop unless the caller explicitly said to proceed. A blanket "proceed
without asking" covers writing files only; installing xcodegen and -runFirstLaunch still
need their own yes, and without one a non-interactive run reports the gap and stops before
the phase that needs the tool.swift test, swiftc -typecheck, xcodebuild build and test; xcodegen,
swift-format and sync-env.sh print little and run directly) and echo the code:
<command> > .build/<step>.log 2>&1; echo "rc=$?", then read the log tail on failure.
Never pipe a build or test command: | tail reports tail's exit code. Piping a value
lookup into grep (-showBuildSettings, plutil -p, codesign -d) is fine. Phase 0
probes run directly, since MACOS_ROOT may not exist yet. Logs live in
MACOS_ROOT/.build/ (gitignored), never in /tmp.| # | Phase | Reference | Gate |
|---|---|---|---|
| 0 | Preflight, layout, inputs | references/dependencies.md | macOS host (or the files-only path noted), xcodegen, Xcode 26+ or the reduced ladder chosen, Plan: line composed |
| 1 | Swift package + seed slice | references/app.md | swift test in Packages/ green |
| 2 | App target + project spec | references/project.md | xcodegen generate exits 0; git check-ignore confirms the .xcodeproj is ignored |
| 3 | Env bridge | references/config-env.md | Config/Local.xcconfig written; Debug API_BASE_URL resolves to http://localhost:<API_PORT> (without Xcode: the file holds it, reported partial); no .env* under MACOS_ROOT |
| 4 | Verify | references/testing.md | lint clean, build + entitlement check + test green (or the reduced ladder, with the gap reported) |
Create one todo per phase so progress is visible and resumable.
Phase 0: Preflight, layout, inputs. Read references/dependencies.md.
Toolchain. A macOS host is required: on any other host, write the files, skip phase 4, and say every check is unverified. Then:
xcode-select -p ends in CommandLineTools, export
DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer and run the checks below in
that same command. Do not sudo xcode-select -s. xcodebuild -version must be 26 or
newer. xcodebuild -checkFirstLaunchStatus non-zero means -runFirstLaunch is
needed: a side effect that needs its own yes.xcodegen --version. Missing: offer brew install xcodegen (or
mise use [email protected]) and wait for a yes.Layout. Look before asking:
pnpm-workspace.yaml or apps/ exists: monorepo, MACOS_ROOT=apps/desktop/macos.
State it back instead of asking.project.yml or a *.xcodeproj already at the target: this is a resume. Each
later phase's idempotency check decides what is missing. When every file is already
present, still run the full verify ladder, and the report gets a
files | skipped (N present, matching) row. A project.yml whose app target says
platform: iOS is an iOS app, not a resume: stop and say so.MACOS_ROOT=.) or monorepo.
Recommend standalone unless they mention a backend or a second app.Inputs, asked once and only if the caller did not pass them: DISPLAY_NAME, PRODUCT
(PascalCase, letters and digits), BUNDLE_ID (default com.example.<app name, lowercased, alphanumerics only>, never the checkout directory, which differs across clones and
worktrees; allowed characters are letters, digits, -, .). Given one name,
DISPLAY_NAME is that name verbatim and PRODUCT keeps its letters and digits, uppercases
the first letter of each word and keeps the rest as typed (My Notes gives MyNotes,
acme desk gives AcmeDesk). PRODUCT must start with a letter (it is a Swift module
name) and must not be Core, AppFeature, AppFeatureTests or Packages: those are the
package's own names.
Compose the plan as one line:
Plan: MACOS_ROOT=apps/desktop/macos (monorepo), PRODUCT=MyApp, DISPLAY_NAME=My App, BUNDLE_ID=com.example.myapp, ladder: full, side effects: none
ladder is full or reduced (no Xcode). List under side effects what this run will
actually do: tool install, first launch. Things already present are not listed; if
nothing applies, write none. Interactively, show it and wait for a yes; with permission
to proceed, continue without waiting. The report's plan row quotes it.
When toolkit:project-setup calls this skill it passes ROOT, LAYOUT, MACOS_ROOT, the
app name and the bundle id, and says not to re-ask. Use them as given, skip steps 2 and 3
(step 4 still composes the line), and treat the caller's approval as the confirmation for
writing files. Still run step 1: installing xcodegen or choosing the reduced ladder is a
separate yes the orchestrator could not have given.
Gate: macOS host (on any other host, the files-only path in step 1 instead), xcodegen
present, the Xcode question answered, and the Plan: line composed.
Phase 1: Swift package + seed slice. Read references/app.md. In the monorepo layout,
write MACOS_ROOT/.gitignore first (content in references/project.md, section
.gitignore), so the .build/ that swift test creates is ignored even if phase 1 fails.
Then write Packages/ (one package, targets Core and AppFeature, test target
AppFeatureTests): a ServerStatusClient protocol and URLSession implementation in Core;
SidebarItem, RootView (the split view), an @Observable model and its view in
AppFeature; Swift Testing tests against a fake client. Gate: swift test in Packages/
is green, with the reduced ladder's flags when there is no Xcode
(references/testing.md). If an existing Packages/Package.swift differs and lacks
Core, AppFeature or AppFeatureTests, report which and stop here: project.yml depends
on the first two and its test scheme on the third.
Fallback: no such module 'Testing' means DEVELOPER_DIR is not set (phase 0), or, with
no Xcode, the reduced ladder's -F and rpath flags are missing.
Phase 2: App target + project spec. Read references/project.md. Write App/
(MyAppApp.swift, AppConfig.swift, Assets.xcassets), AppTests/, project.yml,
Config/{Debug,Release}.xcconfig, Config/MyApp.entitlements, Config/Info.plist,
Config/Info-Debug.plist, .gitignore (standalone; monorepo wrote it in phase 1), and
.swift-format, then run xcodegen generate. Gate: exit 0, and
git check-ignore -q MyApp.xcodeproj/project.pbxproj exits 0. In standalone mode
MACOS_ROOT is the repo root, so append missing lines to an existing .gitignore instead
of replacing it.
Phase 3: Env bridge. Read references/config-env.md. Write scripts/sync-env.sh and
run it. Before running it, look at an existing Config/Local.xcconfig: if it holds a
hand-set API_BASE_URL, say that the script will replace it. Gate: the checks in
config-env.md's Gate (-showBuildSettings with Xcode, the file itself without), and
git check-ignore -q Config/Local.xcconfig exits 0. In the monorepo layout, also
find . -name '.env*' -not -path '*/.build/*' from MACOS_ROOT prints nothing.
Phase 4: Verify. Read references/testing.md and run its ladder. With Xcode: lint, a
signed Debug build for platform=macOS,arch=$(uname -m), the built Info.plist holds the
resolved API_BASE_URL, the signature carries the sandbox and network entitlements, then
xcodebuild test with 4 tests counted from the result bundle. Without Xcode: lint, the
package tests, a swiftc typecheck of App/, and the report says the build, the
entitlement check and the hosted test did not run, that AppTests/ was not compiled, and
that the env bridge was checked in the file only (env bridge | partial).
Fallback: if the build fails, report the error and the phase most likely responsible.
Finish with the report:
macOS bootstrap: <MACOS_ROOT> (<standalone|monorepo>)
| Check | Result | Evidence |
|---|---|---|
| plan | as run | Plan: MACOS_ROOT=apps/desktop/macos (monorepo), PRODUCT=MyApp, ... |
| xcodegen generate | pass | MyApp.xcodeproj generated, ignored by git |
| env bridge | pass | Config/Local.xcconfig: API_BASE_URL = http://localhost:9999 (from .env.example) |
| swift test (Packages) | pass | 3 tests, 1 suite |
| swift-format lint --strict | pass | no findings |
| xcodebuild build (macOS) | pass | Info.plist API_BASE_URL = http://localhost:9999 |
| entitlements in signature | pass | app-sandbox, network.client |
| xcodebuild test (macOS) | pass | totalTestCount 4, failedTests 0 |
Not verified: the app reaching a live backend /ping (no test does), plus anything skipped, and why
Placeholders to fill: Release API_BASE_URL (Config/Release.xcconfig), app icon, LSApplicationCategoryType (project.yml)
Next:
- optional: DEVELOPMENT_TEAM and CODE_SIGN_IDENTITY = Apple Development in Config/Local.xcconfig to sign local builds with a team
- after every clone: scripts/sync-env.sh, then xcodegen generate
- when API_PORT changes: scripts/sync-env.sh only (Local.xcconfig is read at build time)
- export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer (only when xcode-select points at CommandLineTools)
- <root script suggestions, such as "macos:gen">
- <the Out of scope items that apply>
- theme from references: mobile:native-design-system-import; screens: mobile:macos-screen-creator-bootstrap once, then macos-screen-creator; release: mobile:macos-release
Only three things differ. Everything under MACOS_ROOT is otherwise identical.
standalone (MACOS_ROOT=.) | monorepo (MACOS_ROOT=apps/desktop/macos) | |
|---|---|---|
.gitignore | the repo root's; append missing lines | MACOS_ROOT/.gitignore, owned by this skill |
sync-env.sh repo root | MACOS_DIR itself | MACOS_DIR/../../.. |
| workspace | none | no package.json under MACOS_ROOT, so pnpm ignores the app; a root script such as "macos:gen": "cd apps/desktop/macos && xcodegen generate" is a suggestion only |
Name these as next steps in the report; do not scaffold them and do not flag their absence as a gap:
mobile:macos-release, once the app
exists. Auto-update (Sparkle) is a later step it names.packages/contracts/openapi.json, add
Apple's swift-openapi-generator as a build plugin on a Packages target. Headless
builds then need -skipPackagePluginValidation.Settings scene, menu .commands, a MenuBarExtra,
document-based apps, more windows. Add them with the feature that needs them.macos-screen-creator once with mobile:macos-screen-creator-bootstrap and build
screens with it. A custom theme from references is mobile:native-design-system-import
(its macOS platform); run it before the screen-creator bootstrap so the harvest reads real
tokens. The ios-screen-creator skills do not apply.XCUIApplication), snapshot tests.ios-bootstrap at apps/mobile/ios; this skill does not
make a multiplatform target.references/dependencies.md.What SKILL.md sets; muted values are Claude Code's defaults
/mobile:macos-bootstrapfrom mobile
npx claudepluginhub siu9068/ggyul-skills --plugin mobile10 skills in this plugin
/android-bootstrapScaffolds a native Android app (Kotlin, Compose, AGP 9) from zero, standalone or apps/mobile/android in a monorepo. Not for iOS. House convention: Gradle 9 + version catalog, Compose Material3, Navigation 3, Hilt/KSP, Retrofit + kotlinx.serialization, Room + DataStore, ViewModel + StateFlow, JUnit/Turbine, ktlint, a seeded /ping status screen. Use when the user wants to start, set up or scaffold a new Android or Kotlin app: "안드로이드 앱 세팅해줘", "코틀린 컴포즈 프로젝트 만들어줘", "apps/mobile/android 만들어줘", "bootstrap an Android app", "set up a Jetpack Compose project in our monorepo". Do NOT use for: an iOS or Swift app (ios-bootstrap), a whole project or two or more bootstrap legs in one ask like backend + web + mobile (project-setup), adding a screen or feature to an existing Android app (android-screen-creator) or generating that skill (android-screen-creator-bootstrap), a theme from design references (native-design-system-import), React Native, Flutter or Kotlin Multiplatform, or a Next.js web frontend (nextjs-bootstrap)./android-screen-creator-bootstrapGenerates an Android repo's own android-screen-creator + android-component-checker pair from its real Compose code. Not for scaffolding. Android twin of screen-creator-bootstrap: discovers THIS Kotlin + Compose repo's conventions (modules, Nav3 or Nav2, Hilt, ViewModel and UiState, stateful/stateless split, Retrofit DTOs, theme, shared composables, tests, Gradle verify chain) and welds them into a gated screen builder and a composable auditor, harvesting design hardcoded in Kotlin (Color(0x..), raw dp) into the Android sections of docs/design-system/mobile/. Use for "안드로이드 화면 생성 스킬 이 레포에 맞게 만들어줘", "set up android-screen-creator here", "컴포즈 컴포넌트 공통화 스킬 만들어줘". Do NOT use to scaffold an app (android-bootstrap), for Next.js (screen-creator-bootstrap) or iOS (ios-screen-creator-bootstrap), to import a design reference (native-design-system-import, design-system-import), for a whole new project (project-setup), to build a screen now (the generated android-screen-creator), or to edit skills (skill-ops).