bootstrap-swift-package
Installation
SKILL.md
Bootstrap Swift Package
Overview
Create a new Swift package quickly with repeatable defaults. Prefer the bundled script for deterministic setup.
Workflow
- Confirm package intent.
- Ask for package
name,type(library,executable, ortool), destination path, platform preset (mac,mobile,multiplatform), and version profile (latest-major,current-minus-one,current-minus-two). - Accept aliases:
macosformac,iosformobile,bothformultiplatform, andlatest/minus-one/minus-twofor version profiles.
- Create the package.
- Preferred: run
scripts/bootstrap_swift_package.sh --name <Name> --type <library|executable|tool> --destination <dir> --platform <mac|macos|mobile|ios|multiplatform|both> --version-profile <latest-major|current-minus-one|current-minus-two|latest|minus-one|minus-two>. - Fallback: run
swift package init --name <Name> --type <library|executable|tool>manually inside the target directory, patchPackage.swiftplatforms, copyassets/AGENTS.mdto repo root asAGENTS.md, then rungit init.