swift-package-manager-config

Configure Swift Package Manager with platform-specific dependencies and build settings

509 stars

Best use case

swift-package-manager-config is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Configure Swift Package Manager with platform-specific dependencies and build settings

Teams using swift-package-manager-config should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/swift-package-manager-config/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/desktop-development/skills/swift-package-manager-config/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/swift-package-manager-config/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How swift-package-manager-config Compares

Feature / Agentswift-package-manager-configStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Configure Swift Package Manager with platform-specific dependencies and build settings

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# swift-package-manager-config

Configure Swift Package Manager with platform-specific dependencies, targets, and build settings for macOS applications.

## Capabilities

- Generate Package.swift configuration
- Configure platform-specific dependencies
- Set up multiple targets and products
- Configure build settings and flags
- Set up binary targets and XCFrameworks
- Configure plugins and macros
- Generate local package dependencies

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "packageName": { "type": "string" },
    "platforms": { "type": "array", "items": { "enum": ["macos", "ios", "tvos", "watchos"] } },
    "dependencies": { "type": "array" },
    "targets": { "type": "array" }
  },
  "required": ["projectPath", "packageName"]
}
```

## Generated Package.swift

```swift
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
    name: "MyPackage",
    platforms: [.macOS(.v13), .iOS(.v16)],
    products: [
        .library(name: "MyPackage", targets: ["MyPackage"]),
        .executable(name: "MyApp", targets: ["MyApp"])
    ],
    dependencies: [
        .package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
        .package(url: "https://github.com/apple/swift-collections", from: "1.1.0")
    ],
    targets: [
        .target(name: "MyPackage", dependencies: [
            .product(name: "Collections", package: "swift-collections")
        ]),
        .executableTarget(name: "MyApp", dependencies: [
            "MyPackage",
            .product(name: "ArgumentParser", package: "swift-argument-parser")
        ]),
        .testTarget(name: "MyPackageTests", dependencies: ["MyPackage"])
    ]
)
```

## Related Skills

- `swiftui-view-generator`
- `xctest-ui-test-generator`