Community研究与数据分析github.com

avdlee/spm-构建分析

分析Swift Package Manager依赖、包插件、模块变体以及面向CI的构建开销,这些会导致Xcode构建变慢。当开发者怀疑包、插件或依赖图结构影响了干净构建或增量构建性能,提及SPM缓慢、包解析时间、构建插件开销、配置漂移引起的重复模块构建、模块间的循环依赖、需要拆分的超大模块或模块化最佳实践时使用。

spm-构建分析 是什么?

该技能旨在帮助开发者精确诊断由Swift Package Manager(SPM)引发的构建性能问题。它通过深度分析依赖关系图、包插件、模块变体以及CI环境下的构建开销,定位导致Xcode构建缓慢的根源。例如,它可以识别配置漂移导致的重复模块构建、模块间的循环依赖、超大模块需要拆分以及包解析时间过长等问题。该技能支持在Claude Code等AI代理中作为调试助手使用,通过读取项目中的Package.swift和构建配置文件,提供针对性的优化建议。其核心优势在于将复杂的SPM构建性能问题系统化、可操作化,帮助开发者从依赖管理的角度提升构建效率。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/avdlee/xcode-build-optimization-agent-skill/tree/main/skills/spm-build-analysis

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

spm-构建分析 是做什么的?

分析Swift Package Manager依赖、包插件、模块变体以及面向CI的构建开销,这些会导致Xcode构建变慢。当开发者怀疑包、插件或依赖图结构影响了干净构建或增量构建性能,提及SPM缓慢、包解析时间、构建插件开销、配置漂移引起的重复模块构建、模块间的循环依赖、需要拆分的超大模块或模块化最佳实践时使用。

Individual skills in this repo

This repo contains 5 individual skills — each has its own dedicated page.

avdlee/xcode-build-benchmark

Benchmark Xcode clean and incremental builds with repeatable inputs, timing summaries, and timestamped `.build-benchmark/` artifacts. Use when a developer wants a baseline, wants to compare before and after changes, asks to measure build performance, mentions build times, build duration, how long builds take, or wants to know if builds got faster or slower.

avdlee/xcode-build-fixer

Apply approved Xcode build optimization changes following best practices, then re-benchmark to verify improvement. Use when a developer has an approved optimization plan from xcode-build-orchestrator, wants to apply specific build fixes, needs help implementing build setting changes, script phase guards, source-level compilation fixes, or SPM restructuring that was recommended by an analysis skill.

avdlee/xcode-build-orchestrator

Orchestrate Xcode build optimization by benchmarking first, running the specialist analysis skills, prioritizing findings, requesting explicit approval, delegating approved fixes to xcode-build-fixer, and re-benchmarking after changes. Use when a developer wants an end-to-end build optimization workflow, asks to speed up Xcode builds, wants a full build audit, or needs a recommend-first optimization pass covering compilation, project settings, and packages.

avdlee/xcode-compilation-analyzer

Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks, warn-long-function-bodies output, or wants to speed up Swift type checking.

avdlee/xcode-project-analyzer

Audit Xcode project configuration, build settings, scheme behavior, and script phases to find build-time improvements with explicit approval gates. Use when a developer wants project-level build analysis, slow incremental builds, guidance on target dependencies, build settings review, run script phase analysis, parallelization improvements, or module-map and DEFINES_MODULE configuration.

相关技能