.claude/skills/build-package-for-testing/SKILL.md
Build an individual Swift package for testing
npx skillsauth add adamayoung/popcorn build-package-for-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build a single Swift package including its test targets. Use this when you only need to verify a specific package's tests compile — use /build-for-testing instead when you need to build the entire app for testing.
Run via a subagent (Task tool, subagent_type: "general-purpose") to keep large logs out of the main context. The subagent should run the command from the package directory and report back pass/fail with any errors.
cd <package-dir> && swift build --build-tests -Xswiftc -warnings-as-errors 2>&1
# Context package
cd Contexts/PopcornMovies && swift build --build-tests -Xswiftc -warnings-as-errors 2>&1
# Adapter package
cd Adapters/Contexts/PopcornMoviesAdapters && swift build --build-tests -Xswiftc -warnings-as-errors 2>&1
# Feature package
cd Features/MovieDetailsFeature && swift build --build-tests -Xswiftc -warnings-as-errors 2>&1
| Layer | Path pattern |
|-------|-------------|
| Contexts | Contexts/<PackageName>/ |
| Context Adapters | Adapters/Contexts/<PackageName>/ |
| Platform Adapters | Adapters/Platform/<PackageName>/ |
| Features | Features/<PackageName>/ |
| Core | Core/<PackageName>/ |
| Platform | Platform/<PackageName>/ |
| AppDependencies | AppDependencies/ |
data-ai
Add properties to an existing domain model from TMDb
testing
Run all unit tests
testing
Run UI tests
testing
Run snapshot tests