Swift tooling
Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/swift-tooling
Standards for SPM, Build Configs, and Code Quality. Use when managing Swift packages with SPM, configuring build settings, or enforcing Swift code quality. (triggers: Package.swift, .swiftlint.yml, package, target, dependency)From its SKILL.md
npx -y skills add ComeOnOliver/skillshub --skill swift-toolingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.5 KB, 275 tokens by cl100k_base, as published. Nobody here has run it
Swift Tooling Standards
Priority: P0
Implementation Guidelines
Swift Package Manager (SPM)
- Package.swift: Define clear targets, products, and dependencies.
- Modularization: Break large projects into local packages for faster builds.
- Versioning: Use semantic versioning (Major.Minor.Patch) for shared packages.
Code Quality
- SwiftLint: Use for consistent style enforcement. Create a
.swiftlint.ymlin the project root withdisabled_rulesandopt_in_rulessections. - Compiler Warnings: Treat warnings as errors in CI to maintain code health.
- Documentation: Use triple slashes
///for documentation comments on public APIs (DocC-compatible).
Build Configurations
- Xcconfig: Use external configuration files to manage build settings.
- Environment Flags: Use
#if DEBUGfor development-only code, closed with#endif. - Schemes: Maintain separate schemes for Development, Staging, and Production.
Anti-Patterns
- No API keys in code: Use environment variables or build configs.
- No // swiftlint:disable: Fix the underlying issue.
- No manually added frameworks: Use SPM.
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.