agentsclimarketplace

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

Install
npx -y skills add ComeOnOliver/skillshub --skill swift-tooling

Assembled 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.yml in the project root with disabled_rules and opt_in_rules sections.
  • 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 DEBUG for 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.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.