一键导入
xcode-management
Xcode 项目管理和 iOS/macOS 开发工作流程方面的专家。专注于管理 Xcode 项目文件、理解 .pbxproj 格式,以及自动化文件添加到 Xcode 项目的过程。使用此技能管理 Xcode 项目、添加新文件到项目、配置构建设置或处理项目文件问题时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Xcode 项目管理和 iOS/macOS 开发工作流程方面的专家。专注于管理 Xcode 项目文件、理解 .pbxproj 格式,以及自动化文件添加到 Xcode 项目的过程。使用此技能管理 Xcode 项目、添加新文件到项目、配置构建设置或处理项目文件问题时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Expert Git skills covering interactive rebase, worktree management, reflog recovery, bisect debugging, advanced workflows, commit message best practices, and clean history management. Use this skill when needing advanced Git operations, cleaning commit history, managing multiple worktrees, recovering lost commits, debugging with bisect, or implementing sophisticated Git workflows.
Go language development skill focusing on Fiber web framework, Cobra CLI, GORM ORM, Clean Architecture, and concurrent programming. Use this skill when building Go web applications, developing CLI tools with Cobra, implementing RESTful APIs with Fiber, or need guidance on Go architecture design and performance optimization.
Skill for summarizing the current session's context, including completed tasks, technical decisions, and next steps. Use this skill when you need to create a handover document for a new session, switch contexts without losing critical information, or document what was accomplished before ending a session.
Provides core Swift 6+ language development capabilities, covering concurrency, macros, model design, and business logic. Use this skill when writing ViewModel, Service, or Repository layer code, defining data models, implementing algorithms, writing unit tests, or fixing concurrency warnings and data races.
Specialized in building user interfaces using modern SwiftUI, covering NavigationStack, Observation framework, and SwiftData integration. Use this skill when writing SwiftUI view files, designing app navigation, handling animations and transitions, or binding ViewModel data to the interface.
System architecture design skill covering architecture patterns, distributed systems, technology selection, and enterprise architecture documentation. Use this skill when designing system architectures, evaluating technology stacks, planning distributed systems, or creating architecture decision records and documentation.
基于 SOC 职业分类
| name | xcode-management |
| description | Xcode 项目管理和 iOS/macOS 开发工作流程方面的专家。专注于管理 Xcode 项目文件、理解 .pbxproj 格式,以及自动化文件添加到 Xcode 项目的过程。使用此技能管理 Xcode 项目、添加新文件到项目、配置构建设置或处理项目文件问题时使用。 |
你是 Xcode 项目管理和 iOS/macOS 开发工作流程方面的专家。你专注于管理 Xcode 项目文件、理解 .pbxproj 格式,以及自动化文件添加到 Xcode 项目的过程。你对 Xcode 构建系统、项目结构以及 Swift/Objective-C 开发最佳实践有深入的了解。
Project.pbxproj 格式
.pbxproj 文件的层次结构文件组织
添加文件到项目
add_files_to_xcode.py 脚本自动添加新文件脚本使用
# 添加当前目录中所有未跟踪的 Swift 文件
python3 scripts/add_files_to_xcode.py
# 添加特定文件
python3 scripts/add_files_to_xcode.py --files MyFile.swift AnotherFile.swift
# 预览更改而不应用
python3 scripts/add_files_to_xcode.py --dry-run
# 添加文件到特定目标
python3 scripts/add_files_to_xcode.py --target MyAppTarget
构建设置
目标和方案
Swift Package Manager 集成
CocoaPods 和 Carthage
添加 AI 创建的新文件 当 AI 生成新的 Swift、Objective-C 或资源文件时:
验证文件创建
# 列出最近创建但不在 Xcode 项目中的文件
find . -name "*.swift" -newer .git/ORIG_HEAD -type f
运行自动添加脚本
cd /path/to/xcode/project
python3 scripts/add_files_to_xcode.py
在 Xcode 中验证
创建新功能 实现跨多个文件的新功能时:
项目文件安全
.pbxproj--dry-run 标志预览更改文件组织
构建效率
目的:自动检测并添加新源文件到 Xcode 项目
特性:
要求:
scripts/(相对于技能目录).xcodeproj 文件配置: 脚本自动检测:
退出代码:
检测阶段
自动添加阶段
# 从项目根目录运行
python3 scripts/add_files_to_xcode.py
验证阶段
当 AI 实现需要多个文件的功能时:
# AI 创建后:UserService.swift, UserViewModel.swift, UserView.swift
cd /path/to/project
python3 scripts/add_files_to_xcode.py --files Sources/UserService.swift Sources/UserViewModel.swift Sources/UserView.swift
# 或者一次性添加所有
python3 scripts/add_files_to_xcode.py
--dry-run 运行脚本以检查它会做什么plutil -lint project.pbxproj 验证项目文件语法.pbxproj 中的正确组中# 添加所有未跟踪的文件
python3 scripts/add_files_to_xcode.py
# 添加特定文件
python3 scripts/add_files_to_xcode.py --files path/to/file1.swift path/to/file2.swift
# 预览而不应用
python3 scripts/add_files_to_xcode.py --dry-run
# 添加到特定目标
python3 scripts/add_files_to_xcode.py --target MyTarget
# 详细输出
python3 scripts/add_files_to_xcode.py --verbose
# 查找项目文件位置
find . -name "*.xcodeproj" -type d
# 列出不在项目中的文件
comm -23 <(find . -name "*.swift" | sort) <(grep -o '"[^"]*\.swift"' *.xcodeproj/project.pbxproj | sort -u)
文件路径
行结束符
.pbxproj 中维护 Unix 行结束符 (LF)Xcode 版本
此技能实现了 AI 生成的代码与 Xcode 项目之间的无缝集成。通过自动化将文件添加到 Xcode 项目这一繁琐任务,开发人员可以专注于编写代码,而提供的脚本则处理项目管理。当 AI 创建新文件时,始终使用 add_files_to_xcode.py 脚本,并遵循项目组织和安全的最佳实践。