AgentSkillsCN

spm-package

为共享代码搭建 Swift Package 框架。

SKILL.md
--- frontmatter
name: spm-package
description: Scaffold a Swift Package for shared code.
disable-model-invocation: true

SPM Package Scaffold

Create a Swift Package with shared modules and tests.

When to Use

  • When extracting shared code across Apple platforms.

Inputs

  • Package name
  • Target names and platforms

Instructions

  1. Create Package.swift with platform targets.
  2. Add Sources/ and Tests/ structure.
  3. Provide guidance for Xcode integration.

Output

  • Swift Package layout and integration steps.