Community生产力与协作github.com

avdlee/xcode-build-benchmark

基准测试 Xcode 的干净构建与增量构建,提供可重复输入、时间汇总及时间戳标记的 `.build-benchmark/` 构建产物。适用于开发者想要建立基线、比较修改前后变化、测量构建性能、提及构建时间、构建时长、构建耗时,或想知道构建是否变快或变慢的场景。

xcode-build-benchmark 是什么?

此技能用于基准测试 Xcode 项目的干净构建与增量构建性能。它通过可重复的输入确保测试一致性,自动生成包含构建时间汇总数据的 JSON 文件,并将构建产物保存在时间戳目录 `.build-benchmark/` 下。开发者可以使用该技能建立性能基线,对比代码修改前后的构建速度变化,从而量化优化效果或排查性能退化。该技能目前专为 Xcode 项目设计,受 Apple 平台(macOS + Xcode)支持,通过自动化脚本运行 `xcodebuild` 命令并解析日志输出,生成详细的时序统计。这对于持续关注构建效率的 iOS/macOS 开发团队尤其有用。

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

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

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

文档

xcode-build-benchmark 是做什么的?

基准测试 Xcode 的干净构建与增量构建,提供可重复输入、时间汇总及时间戳标记的 .build-benchmark/ 构建产物。适用于开发者想要建立基线、比较修改前后变化、测量构建性能、提及构建时间、构建时长、构建耗时,或想知道构建是否变快或变慢的场景。

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

相关技能