Test Modernizer

Apple's guide for modernizing test suites: migrating XCTest to Swift Testing and restructuring existing Swift Testing tests around newer features. Use when asked to modernize, migrate, or convert tests; not for writing brand-new tests, running tests, or XCUI automation (which cannot migrate). (Content extracted from your local Xcode on install.)

jlreyes 5ffb42e 1.5 KB Updated

File contents

test-modernizer (stub)

Not yet extracted. This is a stub. The real skill is Apple-authored content that ships inside Xcode; Apple's license doesn't permit redistributing it, so this kit extracts it from YOUR Xcode instead.

To install the real content (requires Xcode 27+, ~5 seconds), run the extraction script that ships alongside these skills. Relative to this skill's own directory it is at:

../apple-api-updates/scripts/extract-apple-skills.sh

(In the Claude Code plugin layout it is also exposed at the plugin root as scripts/extract-apple-skills.sh. If apple-api-updates is not installed alongside, install it — the script ships inside it.)

If you are an agent reading this: resolve this SKILL.md's path and run that script with your shell tool. Skill bodies are cached for the session and you cannot run /reload-plugins yourself (it's a user command), so after extracting: answer the current request by reading the extracted SKILL.md and its references/ directly from disk (plain markdown, fully usable), and ask the user to run /reload-plugins — or start a new session — so future invocations serve the real content.

jlreyes/swift-agent-kit/tree/main/skills/test-modernizer commit 5ffb42e676

Frequently asked questions

npx skillmds@latest add jlreyes/test-modernizer