swift-library-pro

swift-library-pro is a skill for Claude Code from kelvinkosbab/AppBootstrapAI. It costs 109 tokens per session (948 once invoked), scanned B, original, MIT.

A set of practices for maintaining Swift packages and Apple frameworks that other applications use. It covers public API compatibility, versioning, documentation of releases, and distribution of compiled framework bundles.

In plain words
What is it for?
Use it to review API changes, choose semantic version numbers, prepare a release, set up library automation, or ship an XCFramework.
Why use it?
It helps prevent library updates from unexpectedly breaking source code or already-built applications. It also provides checks and steps for preparing releases and signed binary packages.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review API changes, choose semantic version numbers, prepare a release, set up library automation, or ship an XCFramework.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kelvinkosbab/appbootstrapai/swift-library-pro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kelvinkosbab/AppBootstrapAI --skill swift-library-pro
Clone the repo
git clone --depth 1 https://github.com/kelvinkosbab/AppBootstrapAI

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swift-library-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-library-pro/github.svg)](https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-library-pro)
Your own site
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-library-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-library-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swift-library-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/kelvinkosbab/appbootstrapai/swift-library-pro"><img src="https://agentmods.dev/badge/skills/kelvinkosbab/appbootstrapai/swift-library-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.00948
Opus 5.5 $0.00044 $0.00379
Sonnet 5.5 $0.00022 $0.00190
Haiku 4.5 $0.00011 $0.00095

Measured 10d ago against content hash 3e576599a0a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

swift-library-pro scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

7. **Docs**: every public symbol documented, DocC builds without warnings, README sample compiles.
.claude/skills/swift-library-pro/SKILL.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.md and 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, package access, what breaks source vs binary compatibility, enums that must grow, protocols, isolation and Sendable as 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, .binaryTarget and checksums, mixed Objective-C frameworks, and gotchas.
  • references/ci-and-release.md — the platform matrix (swift test, xcodebuild per 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

  1. Surface: nothing is public that a consumer doesn't call; cross-module helpers are package; no public globals or retroactive conformances.
  2. Compatibility: every change since the last tag classified; the version bump matches the worst one; diagnose-api-breaking-changes runs in CI.
  3. Deprecation: removals were deprecated with renamed: / message: for at least one MINOR release first.
  4. Concurrency as API: public types declare Sendable and isolation deliberately; no change tightens either within a major version.
  5. Platforms: every platform in platforms: builds in CI; minimum OS unchanged unless MAJOR.
  6. Binary (if shipped): library evolution on, all slices present, signed, privacy manifest inside, checksum matches, no module/type name clash.
  7. Docs: every public symbol documented, DocC builds without warnings, README sample compiles.
  8. Release: tag X.Y.Z, CHANGELOG entry, Package.resolved not committed.

Read the full file on GitHub · 43 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 43 lines · 109 tokens per session scan B 3e576599a0a2

Subscribe to this mod's changes

swift-library-pro is a skill published in the GitHub repository kelvinkosbab/AppBootstrapAI (8 stars, last pushed yesterday), licensed MIT. It adds 109 tokens to every session and 948 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

swift-library-pro compared with skills from other repositories

swift-library-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
swift-library-prokelvinkosbab/AppBootstrapAISkill8yesterdayMITB109Claude Code
kotlin-concurrency-and-flowchrisbanes/skillsSkill1.2k2d agoApache-2.0A60Claude Code
kotlin-api-designchrisbanes/skillsSkill1.2k2d agoApache-2.0A46Claude Code
swiftlintTalissonVitorino/kmp-ios-skillsSkill16todayMITA251Claude Code, Codex
compose-animationschrisbanes/skillsSkill1.2k2d agoApache-2.0A67Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.2k2d agoApache-2.0A41Claude Code
kotlin-androidericrisco/rsc-harnessSkill6915d agoMITA78Claude Code, Codex