Community生产力与协作github.com

avdlee/xcode-compilation-analyzer

通过构建时间摘要和Swift前端诊断信息,分析Swift及混合语言编译热点,并生成以建议优先的源码级优化方案。

xcode-compilation-analyzer 是什么?

该技能专为开发者设计,用于诊断和优化Xcode项目的编译性能,特别针对Swift及混合语言场景。当开发者遇到编译缓慢、类型检查警告、清空构建耗时过长、CompileSwiftSources任务执行超时或warn-long-function-bodies输出等问题时,它能自动分析构建时间摘要和Swift前端诊断数据,识别出编译瓶颈。技能支持主流AI开发平台(如Claude Code、Cursor、Codex),通过解析Xcode日志和编译器输出,生成一份以建议优先的源码级优化方案。该方案会列出具体的修改建议,例如优化复杂表达式、拆分长函数或调整泛型约束,从而显著缩短编译周期,提升开发效率。

兼容平台~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.

相关技能