Tooluck logoTooluck
SKILL.md

spm-build-analysis

Agent skill fromAvdLee/Xcode-Build-Optimization-Agent-Skill

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.

How to install spm-build-analysis

install spm-build-analysis
# install the Xcode-Build-Optimization-Agent-Skill pack with the skills CLI
npx skills add AvdLee/Xcode-Build-Optimization-Agent-Skill

# or add only this skill to Claude Code: copy the folder

skills/spm-build-analysis/

# into

~/.claude/skills/spm-build-analysis/ (all projects)

.claude/skills/spm-build-analysis/ (one project)

skills/spm-build-analysis/SKILL.md

MITFull file
1# SPM Build Analysis
2
3Use this skill when package structure, plugins, or dependency configuration are likely contributing to slow Xcode builds.
4
5## Core Rules
6
7- Treat package analysis as evidence gathering first, not a mandate to replace dependencies.
8- Separate package-graph issues from project-setting issues.
9- Do not rewrite package manifests or dependency sources without explicit approval.
10
11## What To Inspect
12
13- `Package.swift` and `Package.resolved`
14- local packages vs remote packages
15- package plugin and build-tool usage
16- binary target footprint
17- dependency layering, repeated imports, and potential cycles
18- build logs or timing summaries that show package-related work
19
20## Verification Before Recommending
21
22Before including any local package in a recommendation, verify that it is actually part of the project's dependency graph. A `Vendor/` directory may contain packages that are not linked to any target.
23
24- Check `project.pbxproj` for `XCLocalSwiftPackageReference` entries that reference the package path.
25- Check `XCSwiftPackageProductDependency` entries to confirm the package's product is linked to at least one target.
26- If a local package exists on disk but is not referenced in the project, do not include it in build-time recommendations.
27
28When recommending version pins for branch-tracked dependencies:
29
30- Use the helper script to scan all branch-pinned dependencies at once:
31 ```bash
32 python3 scripts/check_spm_pins.py --project App.xcodeproj
33 ```
34…

Excerpt shown under the repository's MIT license.

More skills in Xcode-Build-Optimization-Agent-Skill

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates