一键导入
xcode-project
Add files and frameworks to Xcode projects programmatically
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add files and frameworks to Xcode projects programmatically
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Post to Slack channels and manage Trello cards with natural language
Manage UnaMentis services via USM API (never via bash kill commands)
Manage git worktrees for parallel Claude Code development sessions
Pre-commit validation ensuring lint and tests pass
Configure MCP session defaults for different project components
Perform a code review on recent changes
| name | xcode-project |
| description | Add files and frameworks to Xcode projects programmatically |
Safely add Swift source files, frameworks, and xcframeworks to Xcode projects without manual Xcode intervention. This skill handles the complex project.pbxproj file structure automatically.
/xcode-project add-files <path1> [path2...] # Add Swift files to project
/xcode-project add-framework <path> # Add framework/xcframework
/xcode-project list-files # List source files in project
/xcode-project verify # Verify project integrity
The skill uses a Ruby script (scripts/xcode-project-helper.rb) that leverages the xcodeproj gem to safely manipulate project.pbxproj files. This is the same library used by CocoaPods and fastlane.
When adding Swift files:
/xcode-project add-files UnaMentis/Services/TTS/NewService.swift
When adding frameworks/xcframeworks:
/xcode-project add-framework UnaMentis/Frameworks/MyLib.xcframework
--embed - Embed framework (copy to app bundle)--no-embed - Link only, don't embed (default for system frameworks)--target <name> - Specify target (default: first app target)--group <path> - Specify group for file placementThe Ruby xcodeproj gem must be installed:
gem install xcodeproj
Or using bundler (recommended):
cd <repository-root>
bundle install
Add a single Swift file:
/xcode-project add-files UnaMentis/Services/TTS/KyutaiPocketTTSService.swift
Add multiple files:
/xcode-project add-files UnaMentis/Services/TTS/PocketTTSBindings.swift UnaMentis/Services/TTS/KyutaiPocketModelManager.swift
Add an xcframework:
/xcode-project add-framework UnaMentis/Frameworks/PocketTTS.xcframework
Add framework with embedding:
/xcode-project add-framework UnaMentis/Frameworks/MyDynamicLib.framework --embed
The skill understands the UnaMentis project structure:
UnaMentis/ - Main app sourceUnaMentis/Frameworks/ - Third-party frameworksUnaMentis/Services/ - Service layer codeUnaMentisTests/ - Unit testsUnaMentisUITests/ - UI testsFiles are automatically placed in the correct group based on their path.
The script validates:
If errors occur, the original project file is preserved (backup created).
Use this skill when:
This prevents the manual project.pbxproj editing that can cause:
After adding files, verify with:
/xcode-project verify
This checks: