# Axiom resolve spm

> Axiom resolve spm is an open-source agent skill for developer tools. Diagnoses Swift Package Manager dependency conflicts and build errors in Swift projects. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-resolve-spm
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-resolve-spm
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through troubleshooting Swift Package Manager problems such as failed version resolution, duplicate symbol linker errors, missing module errors, and Swift 6 language mode mismatches. It has the agent read Package.swift and Package.resolved, inspect Xcode project package references, and map the dependency graph before proposing fixes.

The workflow runs swift package commands such as resolve, show-dependencies and build, then groups findings by severity and presents resolution options in order of preference, such as updating a conflicting package, forking it, or pinning a version. It also includes reset steps that clear build and cache state and re-resolve packages, along with Xcode menu equivalents for the same actions.

It expects a Swift project using Swift Package Manager with a readable manifest, and the Swift toolchain available in a shell. Some optional steps use jq for JSON parsing and an xcproject helper for Xcode project inspection.

## When your agent uses it

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-resolve-spm)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-resolve-spm)

## Features

- **Version conflict diagnosis:** Finds incompatible version constraints between packages and suggests compatible resolutions.
- **Duplicate symbol detection:** Checks for the same library linked twice through direct and transitive dependencies.
- **Swift 6 compatibility checks:** Reviews language mode and tools version settings that cause mismatches with dependencies.
- **Stale resolution reset:** Provides steps to clear caches, regenerate Package.resolved and rebuild the project.
- **Platform requirement review:** Compares package platform minimums against the project's deployment targets.
- **Xcode project inspection:** Locates package references in Xcode project files to identify where dependencies are declared.

## Good for

- Fix a 'No such module' error after adding a Swift package
- Resolve a duplicate symbol linker error in an iOS app
- Untangle two packages that require different versions of the same dependency
- Prepare a Swift package project for Swift 6 language mode
- Reset SwiftPM caches when package resolution gets stuck

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-resolve-spm` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-resolve-spm &&
cp -R "$tmp/axiom-codex/skills/axiom-resolve-spm" ~/.claude/skills/axiom-resolve-spm &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-resolve-spm` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-resolve-spm` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-resolve-spm &&
cp -R "$tmp/axiom-codex/skills/axiom-resolve-spm" ~/.agents/skills/axiom-resolve-spm &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-resolve-spm` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-resolve-spm` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-resolve-spm &&
cp -R "$tmp/axiom-codex/skills/axiom-resolve-spm" ~/.cursor/skills/axiom-resolve-spm &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-resolve-spm` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-resolve-spm
```

Or copy the folder to `~/.gemini/skills/axiom-resolve-spm` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-resolve-spm`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-resolve-spm &&
cp -R "$tmp/axiom-codex/skills/axiom-resolve-spm" ~/.copilot/skills/axiom-resolve-spm &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-resolve-spm` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-resolve-spm` into your agent's skills folder as `axiom-resolve-spm`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Axiom resolve spm trigger?

It is meant for requests that mention SPM resolution failures, 'no such module' errors, duplicate symbol linker errors, version conflicts between packages, or Swift 6 package compatibility issues.

### What does Axiom resolve spm need to run?

It expects a Swift project with Package.swift and, if present, Package.resolved, and it runs swift package and swift build commands. Some steps use jq and an xcproject helper when available.

### Does Axiom resolve spm change my project files?

The skill's instructions include commands that remove .build, Package.resolved and SwiftPM caches, and steps that edit Package.swift. The agent is directed to present these as recommended fixes.

### How do I install Axiom resolve spm in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-resolve-spm to use it in all your projects, or to .claude/skills/axiom-resolve-spm in one project.

### Does Axiom resolve spm run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom resolve spm?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom resolve spm?

The closest alternatives to Axiom resolve spm are Axiom fix build, Axiom build, Axiom analyze test failures, Axiom optimize build and Axiom swiftui.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom fix build](https://ai-powered.com/skills/axiom-fix-build): Axiom fix build is an open-source agent skill for developer tools.
- [Axiom build](https://ai-powered.com/skills/axiom-build-charleswiltgen-2): Axiom build is an open-source agent skill for developer tools.
- [Axiom analyze test failures](https://ai-powered.com/skills/axiom-analyze-test-failures): Axiom analyze test failures is an open-source agent skill for developer tools.
- [Axiom optimize build](https://ai-powered.com/skills/axiom-optimize-build): Axiom optimize build is an open-source agent skill for developer tools.
- [Axiom swiftui](https://ai-powered.com/skills/axiom-swiftui-charleswiltgen-2): Axiom swiftui is an open-source agent skill for developer tools.
- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing is an open-source agent skill for developer tools.
- [Axiom testing](https://ai-powered.com/skills/axiom-testing-charleswiltgen-2): Axiom testing is an open-source agent skill for developer tools.
- [Axiom apple docs](https://ai-powered.com/skills/axiom-apple-docs-charleswiltgen): Axiom apple docs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-resolve-spm
