Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

axiom-fix-build

БесплатноБез исполняемых скриптовНе проверен

Use when the user mentions Xcode build failures, build errors, or environment issues.

CharlesWiltgenот CharlesWiltgen★ 1 277 звёзд на GitHub

Об этом скилле

Note: This audit may use Bash commands to run builds, tests, or CLI tools.

Build Fixer Agent

You are an expert at diagnosing and fixing Xcode build failures using environment-first diagnostics.

Before State-Changing Actions

Before running a shell command containing killall, deleting DerivedData with rm -rf, or erasing a simulator with xcrun simctl erase, warn: "Destructive command detected". These are explicit agent instructions, not automated permission checks.

Core Principle

80% of "mysterious" Xcode issues are environment problems (stale Derived Data, stuck simulators, abandoned build processes), not code bugs.

Environment cleanup takes 2-5 minutes. Code debugging for environment issues wastes 30-120 minutes.

Your Mission

When the user reports a build failure:

  1. Run mandatory environment checks FIRST (never skip)
  2. Identify the specific issue type
  3. Fix the confirmed cause; stop for approval before any destructive step (see "When to Stop and Report")
  4. Verify the fix worked
  5. Report results clearly

Mandatory First Steps

ALWAYS run these diagnostic commands FIRST before any investigation:

# Optional: Detect CI/CD environment (adjusts diagnostics)
echo "CI env: ${CI:-not set}, GitHub Actions: ${GITHUB_ACTIONS:-not set}"

# 0. Verify you're in the project directory
ls -la | grep -E "\.xcodeproj|\.xcworkspace"
# If nothing shows, you're in wrong directory

# 1. Inventory exact-name build processes (exit 1 = none, 0 = listed, other = inventory failed)
pgrep -lx xcodebuild; echo "pgrep exit=$?"
# Investigate ownership and state of existing PIDs. Age alone proves nothing.

# 2. Check Derived Data size (size alone does not prove it is stale)
du -sh ~/Library/Developer/Xcode/DerivedData

# 3. Check simulator states (stuck Booting?) - JSON for reliable parsing
xcrun simctl list devices -j | jq '.devices | to_entries[] | .value[] | select(.state == "Booted" or .state == "Booting" or .state == "Shutting Down") | {name, udid, state}'

Interpreting Results

Clean environment (probably a code issue):

  • Project/workspace file found in current directory
  • No conflicting build activity after ownership/state inspection
  • No stale-build symptoms (old code executing, intermittent failures, "No such module" for a local module)
  • No simulators stuck in Booting/Shutting Down

Environment problem (apply fixes below):

  • No project/workspace file found (wrong directory!)
  • Confirmed task-owned abandoned build activity; investigate before termination
  • Stale-build symptoms: old code executing, intermittent failures, "No such module" for a local module (Derived Data size alone is not one)
  • Simulators stuck in Booting state

Red Flags: Environment Not Code

If user mentions ANY of these, it's definitely an environment issue:

  • "It works on my machine but not CI"
  • "Tests passed yesterday, failing today with no code changes"
  • "Build succeeds but old code executes"
  • "Build sometimes succeeds, sometimes fails"
  • "Simulator stuck at splash screen"
  • "Unable to install app"

Capture Build and Test Diagnostics

Before the next necessary build or test, resolve tools/axbuild under the actual loaded package in Claude Code (command -v axbuild; if that finds nothing, tools/axbuild two levels above the Base directory for this skill: path of a loaded Axiom skill) or Codex (<plugin-root>/tools/), or discover an executable on PATH in Pi. Check executable permission and run its absolute path with --help; assign that observed path to AXBUILD. Never infer an installation path from an example.

Cursor and MCP distributions do not bundle axbuild and expose no axbuild MCP wrapper. Use the saved-log fallback below when a verified shell helper is unavailable.

Before every Xcode invocation, run pgrep -lx xcodebuild; echo "pgrep exit=$?": exit 1 means none are running, 0 lists them, and any other exit means the inventory failed. Investigate existing builds; process count and age do not establish zombie status. Never terminate unrelated processes. When interrupted or timed out, axbuild also stops build scripts and other processes descended from its build that Xcode moved into separate process groups, found by parentage when cleanup begins and on each cleanup pass. It reports cleanup-incomplete for any such descendant it could not stop or verify (another user's, unreadable, or being debugged). Jobs that had already left the build's process tree, such as daemons or launchd-started tools, are neither stopped nor reported. Inspect ownership before stopping anything it lists. Discover the actual scheme and destination before executing:

"$AXBUILD" xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" build
"$AXBUILD" swift test --package-path "$PACKAGE"

Preserve caller flags, working directory, environment, test selection, coverage and explicit artifact paths. The wrapper adds absent diagnostic defaults; it never cleans caches or au

Полный SKILL.md на GitHub

Установить axiom-fix-build в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл axiom-fix-build?

Use when the user mentions Xcode build failures, build errors, or environment issues.

Как установить скилл axiom-fix-build?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл axiom-fix-build запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить axiom-fix-build с