Bootstrap
Scaffold a new iOS or macOS SwiftUI app in the consumer workspace with codex-bootstrap.
Invoke $apple-development-foundation (routes to $codex-bootstrap) when
starting a new iOS/macOS SwiftUI project or major feature set in the consumer
workspace. You may also invoke $codex-bootstrap directly when the bootstrap
skill is already selected.
| Path | .agents/skills/codex-bootstrap/SKILL.md |
| Checklist | .agents/skills/codex-bootstrap/references/bootstrap-checklist.md |
When not to use
- One-off screens or copy tweaks →
$swiftui-component-author(or smaller skills) - Editing this repo’s
archive/Sources/→ only if the user explicitly asks - Planning-only requests →
$apple-platform-plannerwithout writing files - Unclear consumer path → stop and ask which app/repo to bootstrap
Skill chain (in order; skip what does not apply)
$apple-platform-planner— broad multi-feature or multi-platform scope$swiftui-tab-navigation— multiple persistent peer destinations$apple-design-system— tokens, appearance, contrast, motion$swiftui-component-author— reusable components on that system$ios-macos-platform-adaptation— when platforms diverge$swift-concurrency-review— after async/actor code exists$apple-security-privacy-review— files, logging, permissions, imports$apple-accessibility-review— shared UI components$swift-testing-verification— before calling bootstrap complete
Extraction of proven app code → $reusable-code-extractor into the consumer’s shared module, not into this foundation repo.
Skeleton expectations
- Inspect root and scoped consumer
AGENTS.mdfiles before writing - Preserve existing instructions; propose a merge and wait for explicit authorization
- If no file exists and creation is authorized, initialize from the portable
assets/consumer-AGENTS.md.templateskill asset, preview with./Scripts/init-consumer-guidance.sh --target <consumer> --dry-run, or copy from AGENTS.md template - Never modify global
~/.codex/AGENTS.md - SwiftUI
@mainentry with a single root shell - Native primary navigation only when the user listed multiple peer destinations
- Platform-appropriate layout (Xcode project or SPM + app target)
- Stub feature areas — no invented business domain unless the user supplied it
- Design system lives in the consumer repo if needed
- Do not copy or rebuild modules from this repo’s
archive/Sources/
Verification (XcodeBuildMCP)
session_show_defaults; report project/workspace, scheme, configuration, and platform destination (thensession_set_defaultsif needed)discover_projsonly if defaults are still wrong/missing- iOS simulator: prefer
build_run_sim; wait for same-project test runners; runtest_simwithout a redundant build and default toextraArgs: ["-parallel-testing-enabled", "NO"] - macOS: enable the
macosworkflow; preferbuild_run_macosfor launch smoke; runtest_macoswhen tests exist (same parallel-testing default). If neither launch smoke nor tests run, require at leastbuild_macos. Do not usetest_simor ui-automation tools — they are iOS-simulator-only - Optional iOS-only:
screenshot/snapshot_ui
If MCP is unavailable, use the XcodeBuildMCP CLI only when active policy explicitly permits it. Use repository-native raw Apple tooling only when active policy authorizes it and obtain approval when required. Otherwise report blocked. Preserve project/workspace, scheme, configuration, exact destination, serialized test scope, commands/tools, and residual risk through every authorized fallback.
Existing consumer instructions
$codex-bootstrap treats consumer guidance as user-owned. It may inspect and
summarize an existing AGENTS.md, but it does not replace, append, or merge it
silently. If baseline sections are missing, the skill proposes the specific merge
and waits for authorization. If guidance edits are declined, bootstrap continues
under the existing contract when the rest of the requested work is still clear.
Copy-paste prompt
Structured bootstrap prompt: Copy-paste prompts. Recipe: Task recipes.