Community生產力與協作github.com

avdlee/xcode-compilation-analyzer

分析 Swift 與混合語言的編譯熱點,利用建置時間摘要與 Swift 前端診斷資訊,產生以建議為優先的原始碼層級最佳化計畫。

xcode-compilation-analyzer 是什麼?

此技能旨在協助開發者診斷 Xcode 專案中 Swift 與混合語言的編譯效能瓶頸。它透過分析建置時間摘要與 Swift 前端診斷輸出(例如 `warn-long-function-bodies`),找出耗時的 `CompileSwiftSources` 任務、型態檢查警告以及耗時的乾淨建置編譯階段。此技能會產生一個結構化的最佳化計畫,優先提供原始碼層級的具體建議(例如減少複雜的泛型、明確標註型別、或重構較長的函式本體),而非強迫開發者立即變更建置設定或架構。該技能支援 Xcode 與 Swift Package Manager 的工作流程,適用於所有 Swift 專案,包括那些混合 Objective-C 或其他語言的專案。使用者可以透過提及「編譯緩慢」、「型態檢查警告」或「耗時的函式」等關鍵字來觸發此技能,也適合在 Clean Build 後效能不佳時使用。

相容平台~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 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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.

相關技能