the-unofficial-swift-programming-language-skill
CLAUDE.md46 starsChanged 7 months agoMITView on GitHub
This file provides guidance to programming agents, like Claude Code (claude.ai/code), when working with code in this repository. This repository packages The Swift Programming Language book from Apple into a Claude Skill format. The skill is automatically generated from the official Swift documentation repository. This repository is exposed as a Claude plugin marketplace which vends a plugin which contains the skill. This command: - Clones the official Swift book repository (https://github.com/swiftlang/swift-book.git) - Extracts and organizes the documentation content - Generates…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Shada01245/the-unofficial-swift-programming-language-skillword for word, first seen Nov 21, 2025
Other versions1 project uses a version of this.
Word for word · 1
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- programming-swiftSkill
The file
Files
CLAUDE.md
This file provides guidance to programming agents, like Claude Code (claude.ai/code), when working with code in this repository.
Repository Purpose
This repository packages The Swift Programming Language book from Apple into a Claude Skill format. The skill is automatically generated from the official Swift documentation repository. This repository is exposed as a Claude plugin marketplace which vends a plugin which contains the skill.
Build Commands
Generate the Skill Package
python3 package.pyThis command:
- Clones the official Swift book repository (https://github.com/swiftlang/swift-book.git)
- Extracts and organizes the documentation content
- Generates the
programming-swiftdirectory with the skill content - Creates
programming-swift.ziparchive for distribution - Extracts the Swift version automatically from the documentation
Build Options
--output DIRor-o DIR: Specify custom output directory (default:./programming-swift)--keep-temp: Keep the temporary git clone after packaging--dry-run: Simulate operations without writing files
Code Architecture
Design Philosophy: Separation of Concerns
The repository manages two distinct responsibilities which are intentionally decoupled:
- Skill Generation (
package.py):- Goal: To be a standalone, portable tool that transforms the Swift documentation into a canonical Claude Skill format.
- Constraint: It must have zero dependencies and be runnable by anyone, anywhere, to generate the skill.
- Scope: It strictly handles content extraction and generation. It generally does not know about the release process, versioning schemes, or marketplace metadata.
- Distribution & Lifecycle (Repository & Workflow):
- Goal: To vend the generated skill via releases and the Claude Marketplace.
- Scope: This layer (handled by
.github/workflows/release.yml) manages the "outer loop": running the generator, detecting changes, managingmarketplace.json, and creating Git tags/releases.
Implication: Changes to marketplace.json or release logic should never be leaked into package.py.
Main Components
- package.py: The single-file packaging script with zero external dependencies
- Manages temporary cloning of the Swift book repository
- Extracts metadata and parses table of contents
- Orchestrates skill directory creation and artifact generation
- Handles runtime settings and constants
- GitHub Actions Workflow (
.github/workflows/release.yml):- Orchestrates the nightly release process
- Handles content verification, committing, and releasing
- Claude Plugin Marketplace Integration (
.claude-plugin/marketplace.json):- Contains metadata for the Claude plugin marketplace
- Automatically updated by the release workflow with Swift version
Key Implementation Details
- The script parses
TSPL.docc/The-Swift-Programming-Language.mdto determine the correct document order - Metadata is extracted from each markdown file (title from first
#heading, description from first paragraph) - The skill is organized into three sections: GuidedTour, LanguageGuide, and ReferenceManual
- Version is automatically extracted from the main TOC file and propagated throughout the skill
- Apache 2.0 license from the Swift repository is included for compliance
Release Process
The repository uses a "release-on-change" strategy to minimize noise and version inflation:
- Nightly Trigger: The GitHub Actions workflow runs every night.
- Generation: It executes
package.pyto pull the latest documentation and generate the skill. - Change Detection: It compares the generated
programming-swift/directory with the currently committed version. - Conditional Release:
- No Changes: The workflow exits silently.
- Changes Detected:
- Updates
marketplace.jsonwith the new version (SWIFT_VERSION-YYYY-MM-DD). - Commits the new content and metadata to the repository.
- Creates a GitHub Release with the new artifacts.
- Updates
Configuration
RELEASE_TOKENSecret: The release workflow on GitHub requires a repository secret namedRELEASE_TOKEN(Personal Access Token withrepoorpublic_reposcope) to create releases and tags attributed to the maintainer. If missing, it falls back to the defaultgithub.token(bot attribution).
Skill Content Structure
The generated programming-swift directory contains:
SKILL.md: The main index file with frontmatter metadataGuidedTour/: Getting started documentationLanguageGuide/: Comprehensive language featuresReferenceManual/: Formal language referenceLICENSE.txt: Apache 2.0 license from the Swift repository
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.

