avdlee/xcode-compilation-analyzer

Swiftおよび混合言語のコンパイルホットスポットをビルド時間サマリーとSwiftフロントエンド診断を使って分析し、ソースレベルの最適化計画を提案します。

xcode-compilation-analyzer とは?

このスキルは、XcodeプロジェクトにおけるSwiftコンパイルのボトルネックを特定し、ソースコードレベルの最適化提案を行うためのツールです。開発者が「コンパイルが遅い」「タイプチェックの警告が多い」「クリーンビルドのフェーズが長い」「CompileSwiftSourcesタスクに時間がかかる」「warn-long-function-bodiesの出力がある」などの問題を報告した際に、ビルドタイミングサマリーとSwiftフロントエンド診断を解析します。これにより、型チェックのコストが高い関数や式、最適化が必要なモジュールを特定し、具体的なコード変更案を優先順位付きで提示します。対応プラットフォームはClaude Code、Cursor、Codex、Copilotなど、AIエージェントが動作する環境を想定しています。分析結果に基づき、型推論の軽減、複雑な式の分割、不必要なオーバーロードの削減など、実践的な最適化戦略を推奨します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/avdlee/xcode-build-optimization-agent-skill/tree/main/skills/xcode-compilation-analyzer

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

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

ドキュメント

xcode-compilation-analyzer は何をしますか?

Swiftおよび混合言語のコンパイルホットスポットをビルド時間サマリーとSwiftフロントエンド診断を使って分析し、ソースレベルの最適化計画を優先順位付きで提案します。開発者がコンパイルの遅さ、型チェックの警告、コストの高いクリーンビルドフェーズ、長いCompileSwiftSourcesタスク、warn-long-function-bodiesの出力を報告した場合、またはSwiftの型チェックを高速化したい場合に使用します。

Individual skills in this repo

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

avdlee/spm-build-analysis

Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspects packages, plugins, or dependency graph shape are hurting clean or incremental build performance, mentions SPM slowness, package resolution time, build plugin overhead, duplicate module builds from configuration drift, circular dependencies between modules, oversized modules needing splitting, or modularization best practices.

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-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.

関連スキル