# Programming swift

> Programming swift is an open-source agent skill for developer tools. Gives your agent the full Swift language book for checking syntax and compiler errors. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kylehughes/the-unofficial-swift-programming-language-skill/tree/main/programming-swift
- **Repository:** https://github.com/kylehughes/the-unofficial-swift-programming-language-skill
- **GitHub stars:** 46
- **License:** MIT
- **Skill name:** programming-swift
- **Collection:** https://github.com/kylehughes/the-unofficial-swift-programming-language-skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill bundles the complete text of Apple's The Swift Programming Language (6.4) so an agent can consult it while writing or reviewing Swift code. The material is organized into three parts: a guided tour and version compatibility notes, a language guide covering topics from basic types and control flow through concurrency, macros and generics, and a reference manual with the formal grammar, declarations, expressions and patterns.

When a task matches, the agent can open the relevant chapter rather than relying on memory, which helps when verifying exact syntax, checking how a language feature behaves, or working out what a compiler diagnostic means. The skill ships as roughly 40 markdown files with no scripts, so it works by reading documentation rather than running code.

No inputs beyond the agent's own task are needed. The content is Apple's Swift book, redistributed under the Apache 2.0 license with attribution to the Swift project authors.

## When your agent uses it

> Provides the complete content of 'The Swift Programming Language (6.4)' book by Apple. Use this skill when you need to verify Swift syntax, look up language features, understand concurrency, resolve compiler errors, or consult the formal language reference.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/kylehughes/the-unofficial-swift-programming-language-skill/tree/HEAD/programming-swift)
- [License: MIT](https://github.com/kylehughes/the-unofficial-swift-programming-language-skill/tree/HEAD/programming-swift)

## Features

- **Full language guide:** Covers the Swift book's chapters from basic types and control flow through protocols and generics.
- **Concurrency reference:** Includes the concurrency chapter for understanding async work in Swift.
- **Formal grammar reference:** Provides the reference manual sections on lexical structure, types, expressions, statements and declarations.
- **Compiler error lookup:** Lets the agent consult the official text when interpreting an unfamiliar compiler error.
- **Swift version compatibility:** Documents which functionality is available in older language modes.

## Good for

- Check the correct syntax for a Swift language construct
- Explain how a Swift language feature such as closures or generics works
- Work out why a Swift compiler error is occurring
- Review async and actor code against the concurrency chapter
- Look up formal grammar rules for a declaration or expression

## Install

### Claude Code

This skill ships in the `programming-swift-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add kylehughes/the-unofficial-swift-programming-language-skill
/plugin install programming-swift-skill@the-unofficial-swift-programming-language-skill
```

Or copy only this skill to `~/.claude/skills/programming-swift`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/programming-swift &&
cp -R "$tmp/programming-swift" ~/.claude/skills/programming-swift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/programming-swift` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/programming-swift` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/programming-swift &&
cp -R "$tmp/programming-swift" ~/.agents/skills/programming-swift &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/programming-swift` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/programming-swift` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/programming-swift &&
cp -R "$tmp/programming-swift" ~/.cursor/skills/programming-swift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/programming-swift` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git --path programming-swift
```

Or copy the folder to `~/.gemini/skills/programming-swift` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/programming-swift`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/programming-swift &&
cp -R "$tmp/programming-swift" ~/.copilot/skills/programming-swift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/programming-swift` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/kylehughes/the-unofficial-swift-programming-language-skill.git
```

Then copy `the-unofficial-swift-programming-language-skill/programming-swift` into your agent's skills folder as `programming-swift`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Programming swift add to my agent?

It supplies the full text of The Swift Programming Language (6.4) book, which the agent can read when a Swift task calls for it.

### Does Programming swift run any code or scripts?

No. The skill contains no scripts; it provides documentation files for the agent to read.

### What license does the content use?

The content is distributed under the Apache 2.0 License, with copyright held by Apple Inc. and the Swift project authors.

### How do I install Programming swift in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/programming-swift to use it in all your projects, or to .claude/skills/programming-swift in one project. Or install the programming-swift-skill plugin, which includes it: /plugin marketplace add kylehughes/the-unofficial-swift-programming-language-skill, then /plugin install programming-swift-skill@the-unofficial-swift-programming-language-skill.

### Does Programming swift run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Programming swift?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Programming swift?

The closest alternatives to Programming swift are Axiom swift, Foundation models, Apple intelligence, Axiom apple docs and Swift modern architecture.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom swift](https://ai-powered.com/skills/axiom-swift-charleswiltgen-2): Axiom swift is an open-source agent skill for developer tools.
- [Foundation models](https://ai-powered.com/skills/foundation-models): Foundation models is an open-source agent skill for developer tools.
- [Apple intelligence](https://ai-powered.com/skills/apple-intelligence): Apple intelligence is an open-source agent skill for developer tools.
- [Axiom apple docs](https://ai-powered.com/skills/axiom-apple-docs-charleswiltgen): Axiom apple docs is an open-source agent skill for developer tools.
- [Swift modern architecture](https://ai-powered.com/skills/swift-modern-architecture): Swift modern architecture is an open-source agent skill for developer tools.
- [Axiom swiftui](https://ai-powered.com/skills/axiom-swiftui-charleswiltgen-2): Axiom swiftui is an open-source agent skill for developer tools.
- [Swift swiftui](https://ai-powered.com/skills/swift-swiftui): Swift swiftui is an open-source agent skill for developer tools.
- [Skmtc lang swift](https://ai-powered.com/skills/skmtc-lang-swift): Skmtc lang swift is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/programming-swift
