Community研究&データ分析github.com

avdlee/spm-build-analysis

Swift Package Managerの依存関係、パッケージプラグイン、モジュールバリアント、およびCI指向のビルドオーバーヘッドを分析し、Xcodeビルドを高速化します。開発者がパッケージやプラグイン、依存関係グラフの形状がクリーンビルドやインクリメンタルビルドのパフォーマンスに悪影響を与えていると疑う場合に使用します。

spm-build-analysis とは?

このスキルは、開発者がSwift Package Manager (SPM) に関連するビルドの遅延問題を診断し、解決するためのガイドを提供します。具体的には、依存関係のグラフ形状、パッケージプラグインのオーバーヘッド、モジュールバリアントの重複ビルド、循環依存、過大なモジュール分割など、Xcodeのクリーンビルドおよびインクリメンタルビルドのパフォーマンスを低下させる要因を分析します。CI環境でのビルド時間最適化にも焦点を当てており、開発者が「SPMが遅い」「パッケージ解決に時間がかかる」「プラグインのオーバーヘッドが気になる」などの問題を報告した際に、具体的な調査手順と改善策を提示します。Xcode、Swift、CIパイプラインを対象としており、モジュール化のベストプラクティスに基づいたアドバイスを提供します。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

spm-build-analysis は何をしますか?

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.

関連スキル