Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Xopoko/build-swift-apps --skill xcode-compile-profilergit clone --depth 1 https://github.com/Xopoko/build-swift-appsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xopoko/build-swift-apps/xcode-compile-profiler)<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/xcode-compile-profiler"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/xcode-compile-profiler/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/xcode-compile-profiler"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/xcode-compile-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00601 |
| Opus 5.5 | $0.00016 | $0.00240 |
| Sonnet 5.5 | $0.00008 | $0.00120 |
| Haiku 4.5 | $0.00004 | $0.00060 |
Grade A, and why
xcode-compile-profiler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Xcode Compile Profiler
Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.
Bundled commands use $PLUGIN_ROOT for the plugin root. Use the host's plugin-root variable when defined; otherwise set it to the absolute path of this plugin before running a helper from the app repository.
Use when compile time, type checking, or mixed-language compilation is the bottleneck. Recommend first; do not edit source or build settings without explicit approval.
Rules
- Start from
.build-benchmark/artifacts or raw build timing output. - Prefer ad hoc diagnostic flags over persistent project edits.
- Rank by expected wall-clock impact, not cumulative parallel compiler work.
- If compile work is parallelized, label improvements as "Reduces compiler workload (parallel)" unless wait time should drop.
- Separate code-level, project-level, and module-level recommendations.
Inspect
- clean and incremental
Build Timing Summary - long
CompileSwiftSources, per-file compile tasks,SwiftEmitModule, andPlanning Swift module - mixed Swift/Objective-C boundaries, bridging headers, generated Swift-to-ObjC surfaces
- diagnostics:
-Xfrontend -warn-long-expression-type-checking=<ms>-Xfrontend -warn-long-function-bodies=<ms>-Xfrontend -debug-time-function-bodies-driver-time-compilationfor Swift driver job timing-Xfrontend -stats-output-dir <path>
Preferred script:
python3 "$PLUGIN_ROOT/shared/build-optimization/scripts/diagnose_compilation.py" \
--project App.xcodeproj \
--scheme MyApp \
--configuration Debug \
--destination "platform=iOS Simulator,name=<latest available iPhone simulator>,OS=latest" \
--threshold 100 \
--output-dir .build-benchmark
Checks
Investigate the code and modules the diagnostics identify. Try explicit types or simpler expressions for measured type-check hot spots. Check imports, bridging headers, and module options when the timing points to dependency or module work.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed · -1 lines 5c64b0393fac
- 2mo ago First seen · 60 lines · 40 tokens per session scan A 9a5ae9747d75
xcode-compile-profiler is a skill published in the GitHub repository Xopoko/build-swift-apps (45 stars, last pushed 5d ago), licensed MIT. It adds 40 tokens to every session and 601 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
xcode-compile-profiler compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| xcode-compile-profilerXopoko/build-swift-apps | Skill | 45 | 5d ago | MIT | A | 40 | Claude Code, Codex |
| ios-agent-skillNagarjuna2997/ios-agent-skill | Skill | 43 | today | MIT | A | 167 | Claude Code |
| ios-builderNagarjuna2997/ios-agent-skill | Skill | 43 | today | MIT | A | 53 | Claude Code, Codex |
| shipswiftsignerlabs/shipswift-skills | Skill | 34 | 19d ago | none | A | 128 | Claude Code |
| sweetpadsweetpad-dev/sweetpad | Skill | 1.9k | today | MIT | A | 90 | Claude Code, Codex |
| swiftui-best-practicesfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| boutique-best-practicesmergesort/Boutique | Skill | 1.1k | 17d ago | MIT | A | 56 | Claude Code |