Awesome-omni-skill tuist-migration
Integrates Tuist into an existing iOS project that uses SPM local packages. Use when migrating a project from a manually maintained .xcodeproj to a Tuist-generated project, adding Tuist as an orchestration layer on top of SPM. Covers 8 sequential phases — audit, base structure, helpers, generation, schemes, CI, cache, and validation. Includes automation scripts and AI prompt templates for each phase.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/cli-automation/tuist-migration" ~/.claude/skills/diegosouzapw-awesome-omni-skill-tuist-migration && rm -rf "$T"
skills/cli-automation/tuist-migration/SKILL.mdTuist Migration
Integrate Tuist into an existing iOS project with SPM local packages, without modifying the modules'
Package.swift files. Tuist acts as an orchestration layer that generates the .xcodeproj/.xcworkspace from declarative Swift manifests.
Fundamental Principle
Tuist does not touch modules, it only orchestrates the project that consumes them. The
Package.swift files remain intact. If Tuist is removed later, the modules are still functional SPM packages.
Reference Project
Use the current project's Tuist configuration (
Tuist/ProjectDescriptionHelpers/, Project.swift, Workspace.swift, Tuist.swift, Tuist/Package.swift) as the primary reference for API syntax and helper patterns. Never copy configurations, bundle IDs, modules, or dependencies — adapt patterns to the target project using audit data.
Migration Phases
8 sequential phases. Each has a script and/or prompt template in the bundled resources.
| # | Phase | Script | Prompt | Output |
|---|---|---|---|---|
| 1 | Audit | | | |
| 2 | Base structure | — | | , , |
| 3 | Helpers | — | | |
| 4 | Generation | | | , , |
| 5 | Schemes | | | Verified |
| 6 | CI | — | | Updated CI pipelines |
| 7 | Cache | , | | Optimized |
| 8 | Validation | , | | PASS/FAIL report |
Workflow
Read
references/prompts/00-context.md for the full orchestration context. For each phase:
- Read the phase prompt — Load
for detailed instructions.references/prompts/0X-*.md - Run the script (if applicable) — Execute the phase script to collect data.
- Execute the phase — Generate/modify files following the prompt instructions.
- Present results — Summarize files created, decisions made, warnings found.
- Get feedback — Ask user before proceeding to next phase.
- Validate — From phase 4 onward, verify
succeeds and project builds.tuist generate
Never skip phases or execute multiple at once without explicit user approval.
Scripts Reference
All scripts use
set -euo pipefail and require mise for tool versioning. All scripts have placeholder values marked with ← Adjust comments — update them before running.
| Script | Phase | Purpose |
|---|---|---|
| Pre-migration | Install brew, mise, and tools from |
| 1 | Collect all project data into |
| 4 | + with optional |
| 5 | Compare schemes between original and Tuist projects |
| 7 | Extract dependency graph for cache optimization |
| 7 | Pre-compile external dependencies |
| 8 | Compare build settings between both projects |
| 8 | End-to-end validation with 7 checks and PASS/FAIL |
Tuist File Structure
Project root (new files) ├── .mise.toml ← Tool versions (tuist, swiftlint) ├── Project.swift ← Minimal: `let project = App.project` ├── Workspace.swift ← Root project + module paths + schemes ├── Tuist.swift ← Xcode/Swift version constraints ├── Tuist/Package.swift ← External deps + targetSettings per module └── Tuist/ProjectDescriptionHelpers/ ├── Config.swift ← App name, destinations, base settings ├── BuildConfiguration.swift ← Debug/Staging/Release configurations ├── Environment.swift ← Dev/Staging/Prod: API URLs, bundle IDs ├── Module.swift ← Struct wrapping SPM local package refs ├── Modules.swift ← Central registry of all modules ├── App.swift ← App target + UI tests target ├── AppScheme.swift ← Scheme factory per environment └── BuildScripts.swift ← Run Script build phases (SwiftLint, etc.)
Key Rules
- All values from audit — Build settings, bundle IDs, signing, dependencies come from
, never from reference projects.AUDIT_REPORT.md
suffix during migration — Name the project-Tuist
so both projects coexist. Remove suffix after validation.AppName-Tuist
synchronizes, not overrides — Ensures Xcode build settings match what eachtargetSettings
declares.Package.swift- Modules with
default — Need a separatenonisolated
inSettingsDictionary
.targetSettings
for cache — External dependencies declared asproductTypes
get cached as pre-compiled binaries..framework- Incremental validation — From phase 4, run
after each change.tuist generate
Audit to Helpers Mapping
| Tuist Helper | Built From (Audit Section) |
|---|---|
| Build settings common to all targets |
| Build configurations (Debug/Release/Staging) |
| Schemes + environment-specific values |
| Module list + Package.swift files |
| Complete module list from targets |
| Info.plist + resources + build phases + signing |
| Schemes (run config, test targets, coverage) |
| Run Script build phases |
| per module + external deps |
Validation Criteria
Migration is valid when ALL pass:
reports no orphaned settingstuist migration check-empty-settings- Build settings diff shows no functional differences
shows no missing source files or resourcesxcdiff- Dependency graph matches
- Full test suite passes (unit + snapshot + UI)
exits with code 0validate_migration.sh
Common Failure Patterns
must go in sources, not resources.intentdefinition
collides with.xcstrings
/.strings
globs.stringsdict- ObjC categories in static frameworks need
in-ObjCOTHER_LDFLAGS - SPM resource bundles require
and.process("Resources")Bundle.module - Types not found → source files accidentally excluded
- Undefined symbols → missing SDK frameworks or dependency products
- Launch crashes → incorrect bundle IDs, entitlements, or resources