Scaffolds a native iOS app (Swift 6, SwiftUI, XcodeGen) from zero, standalone or apps/mobile/ios in a monorepo. Not for Android. House convention: XcodeGen `project.yml` (no committed .xcodeproj), iOS 18+, Observation, a local Swift package, SwiftData, Swift Testing, API URL from the root `.env`, a seeded /ping screen. Use when the user wants to start, set up or scaffold a new iOS or SwiftUI app: "iOS 앱 세팅해줘", "스위프트UI 프로젝트 만들어줘", "apps/mobile/ios 만들어줘", "모노레포에 iOS 앱 추가해줘", "XcodeGen으로 iOS 프로젝트 깔아줘", "bootstrap an iOS app", "scaffold a SwiftUI app". Do NOT use for: an Android or Kotlin app (android-bootstrap), a whole project or two or more bootstrap legs in one ask (toolkit:project-setup), adding a screen or feature to an existing iOS app (ios-screen-creator) or generating that skill (ios-screen-creator-bootstrap), a theme from design references (native-design-system-import), QA or debugging an existing app (ios-qa, ios-fix, ios-sync, ios-clean, ios-design-review), or React Native, Flutter and KMP projects.
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 iOS app that matches the house convention. 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, in file
contents, file and folder names, and the commands the references run (testing.md's
MyApp.xcodeproj and its bundle-id check, say): MyApp (PRODUCT, the PascalCase target name),
My App (DISPLAY_NAME, shown under the icon), com.example.myapp (BUNDLE_ID). Nothing else
varies by project or layout: scripts/sync-env.sh finds the repo root itself, and
scripts/run.sh (assets/run.sh) reads its values from project.yml and the built bundle.
xcodegen generate fails on a
missing source folder, so the sources must exist before the project spec is generated.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. Byte-equal means: the code
block's body, copied exactly (the plists indent with tabs), plus one trailing newline. A
## heading is a path when its text, minus a trailing parenthesis, has no space and holds a
. or a / (project.yml, .gitignore, Config/Info.plist (Release)); any other heading
(Why XcodeGen, Gate, Full ladder (...), Install (phase 3)) introduces commands or
explanation, never a file, and so does the file tree at the top of a reference. A path
heading over one block names that block's file; over several blocks, or when it names a
directory (App/Assets.xcassets), each block's file is the path in backticks in the sentence
right above it. scripts/run.sh is compared with assets/run.sh. The one
exception is a standalone root .gitignore, which matches when it contains every line of
the block.IOS_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 IOS_ROOT.
The debug base URL is derived from API_PORT (references/config-env.md).IOS_ROOT, or, on a resume, only the missing ones are written and every
existing file is left alone. Regenerating derived output (xcodegen generate's
.xcodeproj, sync-env.sh's line in Local.xcconfig) is not a write in this sense: a
resume where every file matches still regenerates them under the same yes. The Plan:
line lists all three; one yes to it covers them.
Show it and wait for that yes before the first write. A caller's approval, or "proceed
without asking" from the user in any kind of session, is that yes.brew install xcodegen, xcodebuild -runFirstLaunch (it
installs system packages), xcodebuild -downloadPlatform iOS (about 8 GB), creating a
simulator. Each needs an explicit yes to that command, and "proceed without asking" does not
imply one. Interactively, ask once even if told not to ask, naming the command; a user who
said not to ask is still the one who decides what gets installed on their machine. A
session counts as interactive whenever the user can answer this turn, whether or not they
asked for no questions.
Non-interactively nobody can
answer, so: no usable runtime or no iPhone takes the reduced ladder in phase 4, and the
report says so; a missing xcodegen or a pending first launch stops the run before the
first command that needs it (xcodegen generate in phase 2; first launch can block
swift test too), with the exact command in the report, because the reduced ladder needs
both as well.IOS_ROOT that is not a resume (files, but no project.yml or
*.xcodeproj) is not a side effect to approve: it is phase 0 step 2's layout question.
In a non-interactive run (subagent, claude -p, cron) without permission to proceed, print
the Plan: line and stop.swift build, swift test, 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, and the shells disagree on how to recover it (bash PIPESTATUS, zsh pipestatus),
so rely on neither. Piping a value lookup into grep (-showBuildSettings, plutil -p)
is fine. Phase 0 probes run directly, since IOS_ROOT may not exist yet. Logs live in
IOS_ROOT/.build/ (gitignored), never in /tmp.| # | Phase | Reference | Gate |
|---|---|---|---|
| 0 | Preflight, layout, inputs | references/dependencies.md, references/testing.md (Phase 0 probes, step 4's pick) | macOS, Xcode 26+, xcodegen, a usable runtime or the reduced-ladder decision, the test simulator picked, Plan: line composed |
| 1 | Swift package + seed slice | references/app.md, references/project.md (.gitignore) | 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 + run script | references/config-env.md, references/run-script.md | Config/Local.xcconfig written; Debug API_BASE_URL resolves to http://localhost:<API_PORT>; no .env* under IOS_ROOT; executable scripts/run.sh in place |
| 4 | Verify | references/testing.md | lint clean, simulator build + test green, scripts/run.sh launches the app and it keeps running (or the reduced ladder, with the gap reported) |
If a todo tool is available, create one todo per phase so progress is visible and resumable; without one, say which phase you are in as you go.
Phase 0: Preflight, layout, inputs. Read references/dependencies.md.
Toolchain. macOS is required. On any other host, write the files and run no gate at all:
every gate from phase 1 on needs Xcode (phase 1's swift test needs its Testing
module), so the report lists every check as not run and names the commands to run on a
Mac (testing.md, "Non-macOS host"). On macOS:
xcode-select -p ends in CommandLineTools (then swift test has no
Testing module and xcodebuild refuses to run): do not sudo xcode-select -s;
export DEVELOPER_DIR=<Xcode>/Contents/Developer for every command in this skill, and
export it first in the same command as each check below, because with xcode-select on
CommandLineTools xcrun simctl and -checkFirstLaunchStatus otherwise fail and read as
"no runtime" and "first launch needed" when neither is true. A working xcode-select (an
Xcode-beta, say) is the user's choice: leave it and export nothing. <Xcode> is
/Applications/Xcode.app; when ls -d /Applications/Xcode*.app lists several, ask
which, or, non-interactively, take /Applications/Xcode.app if it is there, else the one
with the highest xcodebuild -version, and name it in the Plan: line. No Xcode: stop.xcodebuild -version must be 26 or newer (App Store uploads require the iOS 26 SDK
since 2026-04-28, and swift-tools-version: 6.2 needs it). 27.x is fine.xcodebuild -checkFirstLaunchStatus. Non-zero means xcodebuild -runFirstLaunch is
needed, which installs system packages: 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.xcodebuild -downloadPlatform iOS, about 8 GB) or to accept the reduced
verify ladder in phase 4. Record the answer; do not decide it silently.Plan: line can
say what phase 4 will do to it: already booted (no side effect), shut down
(simulator boot (shut down after)), or no iPhone on a usable runtime (simulator creation, a tool-install-class side effect; without a yes, the reduced ladder). Phase 4
tests on this UDID and re-reads its boot state before testing; if it changed since phase
0 (someone booted or shut it down), phase 4's reading decides whether to shut it down
after, and the report notes the difference.Layout. Look before asking. The first two cases can both hold: decide IOS_ROOT from the
workspace signal first, then check that directory for a resume.
pnpm-workspace.yaml, apps/, or apps/mobile/android exists: monorepo,
IOS_ROOT=apps/mobile/ios. 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. Every phase's gate still
runs (they take seconds), and so does the full phase 4 ladder; the report keeps all its
rows and adds a files row right after the plan row. Its Result is skipped when every
file matches, else partial; its Evidence is the counts, N present, matching or
N matching, M differs (<paths>), K written. The counts cover the files this skill writes
from the references, scripts/run.sh included: 20 on a complete scaffold (.gitignore, 6
in Packages/, 4 in App/, 1 in AppTests/, project.yml, 4 in Config/,
.swift-format, and the two scripts). The generated .xcodeproj and
Config/Local.xcconfig are outputs, not counted.IOS_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, -, .).
DISPLAY_NAME lands in a double-quoted YAML string in project.yml, so a " or \ in it is
written as \" or \\ there (the name shown under the icon is unchanged).
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 Shop
gives MyShop, iOS Lab gives IOSLab, acme app gives AcmeApp). PRODUCT must start
with a letter, since it is a Swift module name and @testable import 3DStudio does not
compile: prefix App (3D Studio gives App3DStudio) and say so. It must not be Core,
AppFeature, AppFeatureTests or Packages (the package and its targets) or AppConfig
(a type inside the app module).
Compose the plan as one line:
Plan: IOS_ROOT=apps/mobile/ios (monorepo), PRODUCT=MyApp, DISPLAY_NAME=My App, BUNDLE_ID=com.example.myapp, simulator=iPhone 17 Pro (3F547055-1166-4AD9-B3AC-6FD07E3D024F), side effects: simulator boot (shut down after), app installed on that simulator
List under side effects what this run will actually do: tool install, platform
download, first launch, simulator creation, simulator boot (shut down after) when the
picked simulator is off, and app installed on that simulator whenever phase 4 runs the
full ladder, on a resume too (scripts/run.sh installs it each time, and it stays
installed). Name the Xcode only when
step 1 had to choose one. Things already present are not listed; if nothing applies,
write none (a resume on a booted simulator, say). 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, IOS_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 downloading the simulator platform is a separate yes the
orchestrator could not have given.
Gate: toolchain present, the runtime question answered, the simulator picked, and the
Plan: line composed.
Phase 1: Swift package + seed slice. Read references/app.md. Write the ignore lines
first (content in references/project.md, section .gitignore): monorepo,
IOS_ROOT/.gitignore; standalone, append the missing lines to the root .gitignore. Then 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) with the
server-status slice: a ServerStatusClient protocol and URLSession implementation and a
SwiftData StatusCheck model in Core, an @Observable model that records each check and
a SwiftUI view in AppFeature, and Swift Testing tests against a fake client and an
in-memory store. When the repo has a backend, confirm its /ping route sits
outside the /api prefix (app.md, after ServerStatusClient.swift); unconfirmed goes on the
report's Not verified line. Gate: cd Packages && swift test is green. 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).
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/Info.plist, Config/Info-Debug.plist
and .swift-format (the .gitignore lines went in at the start of phase 1), then run
xcodegen generate. Gate: exit 0, and
git check-ignore -q MyApp.xcodeproj/project.pbxproj exits 0 (the generated project
never reaches git; project.yml does).
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 (any value other than sync-env's own http:/$()/localhost:<port> line, the same
test scripts/run.sh uses), say that the script will replace it. It reads API_PORT from the repo-root .env (falling back to .env.example, then
9999) and writes API_BASE_URL = http:/$()/localhost:<port> into the gitignored
Config/Local.xcconfig. Then read references/run-script.md and copy assets/run.sh to
scripts/run.sh: the one command that boots a simulator, builds, installs and launches the app.
Gate: the -showBuildSettings checks in config-env.md's Gate
(Debug prints http://localhost:<API_PORT>, Release the placeholder),
git check-ignore -q Config/Local.xcconfig exits 0
(it is where the Debug DEVELOPMENT_TEAM goes; config-env.md), and scripts/run.sh is
executable and passes bash -n.
In the monorepo layout, also
find . -name '.env*' -not -path '*/.build/*' from IOS_ROOT prints nothing (standalone
skips this: there IOS_ROOT is the repo root, where .env belongs).
Phase 4: Verify. Read references/testing.md and run its ladder. With a simulator runtime:
swift-format lint, xcodebuild build for generic/platform=iOS Simulator, the built
Info.plist holds the resolved API_BASE_URL, then xcodebuild test on the simulator
phase 0 picked, booted first, then scripts/run.sh launches the app on that same simulator
and the app is still running two seconds later.
Without a runtime (the user declined the download):
lint, swift test, the package built for the iOS simulator triple, a swiftc
typecheck of App/, and bash -n scripts/run.sh, and the report says the simulator build,
test and launch did not run.
Fallback: if the build fails, report the error and the phase most likely responsible.
Finish with the report:
iOS bootstrap: <IOS_ROOT> (<standalone|monorepo>)
| Check | Result | Evidence |
|---|---|---|
| plan | as run | Plan: IOS_ROOT=apps/mobile/ios (monorepo), PRODUCT=MyApp, ... |
| xcodegen generate | pass | MyApp.xcodeproj generated, ignored by git |
| env bridge + run script | pass | Config/Local.xcconfig: API_BASE_URL = http://localhost:9999 (from .env.example); Release = placeholder; Local.xcconfig ignored; no .env* under IOS_ROOT; scripts/run.sh executable, bash -n clean |
| swift test (Packages) | pass | 4 tests, 1 suite |
| swift-format lint --strict | pass | no findings |
| xcodebuild build (iOS Simulator) | pass | Info.plist API_BASE_URL = http://localhost:9999 |
| xcodebuild test (<picked iPhone>, UDID ...) | pass | totalTestCount 5, failedTests 0 |
| scripts/run.sh (same simulator) | pass | Launched com.example.myapp, still running after 2 s |
Not verified: the app reaching a live backend /ping (no test does)<; the backend's /ping prefix exclusion, when app.md's check could not confirm it>, plus anything skipped, and why
Placeholders to fill: Release API_BASE_URL (Config/Release.xcconfig), app icon (empty slot), DEVELOPMENT_TEAM for device builds (Config/Local.xcconfig; release builds get it from mobile:mobile-release)
Next:
- see the app: scripts/run.sh ["device name"] (syncs the env, generates the project if needed, boots, builds, launches)
- 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 "ios": "bash apps/mobile/ios/scripts/run.sh">
- <the Out of scope items that apply: OpenAPI client, CI, signing>
- theme from references: mobile:native-design-system-import; screens: mobile:ios-screen-creator-bootstrap once, then ios-screen-creator
Write the prose in the user's language. The table's Check and Result cells, the line labels
(Not verified:, Placeholders to fill:, Next:), commands, paths and status words (pass,
skipped, not run) stay in the template's English, with its <...> placeholders filled in
(the picked iPhone and its UDID, say); everything after a label is prose. The plan
row's Evidence is the phase 0 line verbatim, starting with Plan: : it is the record of what
this run decided. A resume adds the files row after the plan row (phase 0 step 2).
Keep a Next line only when its condition holds: the DEVELOPER_DIR line only when
xcode-select points at CommandLineTools, a root script suggestion only in the monorepo. An Out
of scope item applies when its trigger is in the repo: the OpenAPI client once
packages/contracts/openapi.json is committed, CI when a CI config exists without an iOS job,
signing and distribution always (there is no release pipeline yet).
Next-step skills are named the way a marketplace install lists them (mobile:<name>,
toolkit:<name>); a copy under .claude/skills/ lists the same skill without the prefix. The
prefix is the plugin: mobile and toolkit are two plugins of the ggyul-skills marketplace,
which this skill ships in. If the session lists neither form, still name the step and the
skill in the prefixed form, and add that it needs that plugin installed. (The description
names sibling skills bare; in the report, use the prefixed form.)
Only two things differ. Everything under IOS_ROOT is otherwise identical, byte for byte:
sync-env.sh walks up to the repo root itself, so it is the same file in both layouts.
standalone (IOS_ROOT=.) | monorepo (IOS_ROOT=apps/mobile/ios) | |
|---|---|---|
.gitignore | the repo root's; append missing lines (start of phase 1) | IOS_ROOT/.gitignore, owned by this skill |
| workspace | none | no package.json under IOS_ROOT, so pnpm ignores the app; a root script such as "ios": "bash apps/mobile/ios/scripts/run.sh" 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:
packages/contracts/openapi.json, add
Apple's swift-openapi-generator as a build plugin on a Packages target. Headless
builds then need -skipPackagePluginValidation.mobile:mobile-release, once the app
exists. App Store submission; a real app icon (the report lists the empty icon slot once,
under Placeholders, and nowhere as a gap).XCUIApplication), snapshot tests.mobile:android-bootstrap.ios-screen-creator once with mobile:ios-screen-creator-bootstrap and build screens
with it. A custom theme from references is mobile:native-design-system-import; run it before
the screen-creator bootstrap so the harvest reads real tokens.references/dependencies.md.assets/run.sh (opens in a new tab)evals/behavior.sh (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/app.md (opens in a new tab)references/config-env.md (opens in a new tab)references/dependencies.md (opens in a new tab)references/project.md (opens in a new tab)references/run-script.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/mobile:ios-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).