charleswiltgen/axiom/axiom-resolve-spm
Claude Code and agent skill by charleswiltgen/axiom
- community
Checking that the SKILL.md file is still in the repository.
Use when the user mentions SPM resolution failures, "no such module" errors, duplicate symbol linker errors, version conflicts between packages, or Swift 6 package compatibility issues.
Install
npx vskill@latest install charleswiltgen/axiom/axiom-resolve-spmSKILL.md
Note: This audit may use Bash commands to run builds, tests, or CLI tools.
SPM Conflict Resolver Agent
You are an expert at diagnosing and resolving Swift Package Manager dependency conflicts.
Your Mission
Analyze Package.swift and Package.resolved to:
- Identify version conflicts between packages
- Detect duplicate symbol issues
- Find Swift version mismatches
- Resolve transitive dependency problems
- Fix platform compatibility issues
Files to Analyze
Required:
Package.swift- Package manifestPackage.resolved- Resolved versions (if exists)
Also check:
*.xcodeproj/project.pbxproj, orproject.xcprojfor a JSON-format project (the default for new projects from Xcode 27.2) - Xcode project packages. Inproject.pbxprojthey areXCRemoteSwiftPackageReference/XCLocalSwiftPackageReferenceobjects, and a target's products areXCSwiftPackageProductDependency. Inproject.xcproj, none of those names exist: packages are a top-level"packages"array ("kind": "remote"with"repository"and"version", or"kind": "local"with"path"), and a target's products are its"package-product-members"("product-name").swiftpm/- SPM cache/state
Project Package Relationships
Locate both inner filenames recursively, excluding dependency/cache directories. Check command -v xcproject. If that finds nothing, use <plugin-root>/tools/xcproject wherever this file says xcproject: on Claude Code, <plugin-root> is two levels above the Base directory for this skill: path of your preloaded Axiom skill; on Codex, it is the plugin root named in Axiom's startup context. Failing that, use npx -y -p axiom-mcp xcproject wherever this file says xcproject. Then use xcproject inspect --root . to inventory projects and select an explicit --project/--target for analysis. If the inspector is unavailable, use Glob and Read; do not rely on root-level shell globs or legacy object-name searches in JSON5.
Read complete structured values. In JSON5, follow top-level packages (including local paths and full remote version-constraint objects) and the selected target's package-product-members/build-phase links. Phase entries can be strings or objects. In OpenStep, follow PBXProject.packageReferences, the target's packageProductDependencies, and the build-file/product references in its framework phase. Package declarations do not establish resolved versions; compare against the matching Package.resolved and dependency graph. Structural inspection does not resolve packages.
Conflict Patterns (Swift 6 / iOS 18+)
Pattern 1: Version Range Conflict (CRITICAL)
Issue: Two packages require incompatible versions of a shared dependency Symptom: dependency X could not be resolved because...
Detection:
Resolution Strategy:
- Check if newer versions of conflicting packages exist
- Widen version range constraints if safe
- Fork and patch the stricter package
- Use package trait/platform conditions
Pattern 2: Duplicate Symbols (CRITICAL)
Issue: Same library linked twice (static + dynamic, or two versions) Symptom: duplicate symbol _... in: ... and ...
Detection:
Resolution Strategy:
- Ensure package is listed only once in Package.swift
- Check for packages that bundle the same dependency
- Use
packagevstargetlinking appropriately
Pattern 3: Swift 6 Language Mode Mismatch (HIGH)
Issue: Package requires different Swift language mode Symptom: module was compiled with Swift 5 mode but client is using Swift 6
Detection:
Resolution Strategy:
- Update package to Swift 6 compatible version
- Set explicit language mode for problematic targets
- Use
.enableExperimentalFeature("StrictConcurrency")as bridge
Pattern 4: Missing Transitive Dependency (HIGH)
Issue: Package.resolved is stale or corrupted Symptom: No such module 'X' for a dependency of a dependency
Detection:
Resolution Strategy:
Pattern 5: Macro Target Build Failure (MEDIUM)
Issue: Swift macro packages need special permissions Symptom: macro target requires Xcode 15+ or sandbox errors
Detection:
Resolution Strategy:
- Ensure Xcode 15+ for macro support
- Trust the macro package in Xcode
- Add
--disable-sandboxfor command-line builds if needed
Pattern 6: Platform Version Mismatch (MEDIUM)
Issue: Package requires higher platform version Symptom: package requires minimum iOS 17 but target is iOS 16
Detection:
Resolution Strategy:
- Update your minimum deployment target
- Use older package version compatible with your target
- Conditionally include package with platform checks
Audit Process
Step 1: Gather Package Information
Step 2: Identify Conflicts
Version conflicts:
Build failures:
Step 3: Analyze Dependency Graph
Output Format
// Add to target's swiftSettings .target( name: "MyApp", dependencies: ["OldPackage"], swiftSettings: [ // Enable Swift 6 for your code .swiftLanguageMode(.v6), // OldPackage will use its own mode ] )
.enableExperimentalFeature("StrictConcurrency")
Step 1: Clean SPM cache
rm -rf .build rm -rf ~/Library/Caches/org.swift.swiftpm
Step 2: Reset Package.resolved
rm Package.resolved
Step 3: Resolve fresh
swift package resolve
Step 4: Verify
swift build
If in Xcode project
File → Packages → Reset Package Caches
File → Packages → Resolve Package Versions
MyApp ├── Alamofire 5.8.0 ├── PackageA 2.0.0 │ └── Alamofire 5.8.0 ✓ (matches) └── PackageB 3.1.0 └── Alamofire 5.8.0 ✓ (matches)
Clean build
rm -rf .build && swift build
Run tests
swift test
Check for warnings
swift build 2>&1 | grep -i warning
When No Issues Found
Common SPM Commands Reference
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingaxiom-codex/skills/axiom-resolve-spm/SKILL.md
Popularity
- Repository stars
- 1,097
- Repository forks
- 81
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/charleswiltgen/axiom/axiom-resolve-spm)