jeremieb

Swift Build — Development skill for Claude Code

Development community

Validate that the Swift project builds successfully.

How to install Swift Build

Installs to ~/.claude/commands/jeremieb-swift-unit-test-instructions-swift-build.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jeremieb/swift-unit-test-instructions/HEAD/.claude/commands/swift-build.md -o ~/.claude/commands/jeremieb-swift-unit-test-instructions-swift-build.md

Restart Claude Code, or start a new session, for it to be picked up.

What Swift Build does

Validate that the Swift project builds successfully. Run this after any code change before considering work done.

Steps

1. Detect project type

Look for (in order):

  • *.xcworkspace → use xcodebuild with workspace
  • *.xcodeproj → use xcodebuild with project
  • Package.swift → use swift build

2. Find scheme

For xcodebuild projects, read available schemes:

xcodebuild -list 2>/dev/null

Use the first non-test scheme found. If ambiguous, ask the user which scheme to use

Alternatives in Development

  • /validate — Run full validation on the current finding before writing a report 927 ★
  • Prototype — Validate technical feasibility with minimum code before full implementation 243 ★
  • Mem Save — Save a curated session-level summary to history 186 ★

Full documentation available on GitHub

View Source Repository