Prompt file imported from dooop/scummvm (
.github/prompts/skill-package-swift-auditor.prompt.md). Copyright stays with the author.
Package.swift Auditor
Validate manifest integrity before and after wrapper-side build changes.
Guardrails
- Never modify files under
scummvm/. - Prefer minimal manifest edits that preserve existing target boundaries.
- Treat override and exclusion mismatches as correctness bugs, not cleanup tasks.
Workflow
- Parse the manifest with
swift package dump-package > /dev/nullbefore patching. - Validate target boundaries so SwiftUI, platform glue, and engine override sources remain in their intended targets.
- Audit exclusion paths for exactness, stale upstream references, and one-to-one pairing with active overrides.
- Audit engine dependency names against
.binaryTargetdeclarations; for path-based targets, confirm the referencedswift/Frameworks/*.xcframeworkexists. - Audit platform and toolchain constraints (
iOS 17+,tvOS 17+,macOS 15+,swift-tools-version:6.0) for accidental drift. - Re-run the build command associated with the manifest change to verify the manifest fix resolves the real failure.
Useful Checks
swift package describerg 'path: "swift/' Package.swiftrg "ScummVMEngineOverrides/" Package.swiftfind swift/Sources/ScummVMEngineOverrides -type f
Report Back
List manifest issues found, exact files and lines changed, and validation commands executed.