swift-library-pro
Skill8 starsChanged 12 days agoMITView on GitHub
Ships and maintains Swift packages and Apple frameworks that other apps depend on — public API and source/binary compatibility review, SemVer and automated breaking-change checks (diagnose-api-breaking-changes), deprecation, library evolution and module stability, XCFrameworks and binary targets with signatures and privacy manifests, multi-platform CI, DocC and Swift Package Index, and the release process. Use when building a library rather than an app, before tagging a release, when deciding whether a change is breaking, or when distributing a binary SDK.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibility-proSkill
- android-adaptive-layout-proSkill
- android-compose-proSkill
- android-coroutines-proSkill
- android-design-system-proSkill
- android-gradle-architecture-proSkill
- android-library-proSkill
- android-memory-storage-proSkill
- android-modularization-proSkill
- app-intents-proSkill
- beta-deployment-proSkill
- coredata-swift6-proSkill
- cross-platform-parity-proSkill
- flaky-tests-proSkill
- foundation-models-proSkill
- instruments-profiling-proSkill
- linting-proSkill
- localization-proSkill
- motion-design-proSkill
- r8-shrink-proSkill
- store-compliance-proSkill
- swift-accessibility-proSkill
- swift-adaptive-layout-proSkill
- swift-concurrency-proSkill
- swiftdata-proSkill
- swift-design-system-proSkill
- swift-docc-proSkill
- swift-error-handling-proSkill
- swift-logging-proSkill
- swift-memory-storage-proSkill
- swift-modularization-proSkill
- swift-package-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- visionos-proSkill
- xcode-security-proSkill
- xml-to-compose-migration-proSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Prepare a release: run the release checklist in references/ci-and-release.md and draft the CHANGELOG entry.
- Very specific: line 28
Compatibility: every change since the last tag classified.
- Very specific: line 31
Platforms: every platform in platforms: builds in CI.
- Distinctive: line 33
Docs: every public symbol documented, DocC builds without warnings, README sample compiles.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Keep a Swift library safe to depend on: consumers upgrade without surprise, binaries load in their apps, and every release says honestly what changed. This is the deep companion to the always-on apple-library-authoring.md rule. swift-package-pro reviews the manifest and module layout; swift-docc-pro reviews doc comments; this skill owns compatibility, distribution, and release. Report only genuine problems.
Pick the mode from the request:
- Review a change: classify every public-API difference as additive, source-breaking, or binary-breaking (
references/api-stability.md), then name the required version bump. - Prepare a release: run the release checklist in
references/ci-and-release.mdand draft the CHANGELOG entry. - Ship a binary: build, sign, and package an XCFramework and its
.binaryTarget(references/binary-distribution.md). - Set up: a new library repo. Produce the CI workflow,
.spi.yml, CHANGELOG, and breaking-change gate.
Load only the reference you need:
references/api-stability.md— public surface design,packageaccess, what breaks source vs binary compatibility, enums that must grow, protocols, isolation andSendableas API,@_spi, deprecation lifecycle,diagnose-api-breaking-changes, and the API Design Guidelines.references/binary-distribution.md— when to ship a binary, library evolution and module stability,@frozen/@inlinable/@usableFromInline, building an XCFramework, dSYMs, signing, privacy manifests for SDKs,.binaryTargetand checksums, mixed Objective-C frameworks, and gotchas.references/ci-and-release.md— the platform matrix (swift test,xcodebuildper platform, Linux, oldest and newest Xcode), API-break gate, docs build, Swift Package Index.spi.yml, package traits for optional dependencies, versioning and tags, the release checklist, and a GitHub Actions workflow.
Review Checklist
- Surface: nothing is
publicthat a consumer doesn't call; cross-module helpers arepackage; no public globals or retroactive conformances. - Compatibility: every change since the last tag classified; the version bump matches the worst one;
diagnose-api-breaking-changesruns in CI. - Deprecation: removals were deprecated with
renamed:/message:for at least one MINOR release first. - Concurrency as API: public types declare
Sendableand isolation deliberately; no change tightens either within a major version. - Platforms: every platform in
platforms:builds in CI; minimum OS unchanged unless MAJOR. - Binary (if shipped): library evolution on, all slices present, signed, privacy manifest inside, checksum matches, no module/type name clash.
- Docs: every public symbol documented, DocC builds without warnings, README sample compiles.
- Release: tag
X.Y.Z, CHANGELOG entry,Package.resolvednot committed.
Output Format
Organize findings by file. For each issue give the file and lines, the rule broken, the consumer impact (who breaks and how), and a before/after fix. For a change review, end with a table of public-API differences and the required SemVer bump. Finish with a prioritized summary.
Companion skills
Swift-API-Design-Guidelines-Agent-Skillby Erik Sebastián de Erice Jerez (MIT) reviews naming, argument labels, and clarity at the point of use against Apple's API Design Guidelines. Install it alongside this bundle for naming reviews; this skill doesn't repeat them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

