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.
npx skills add Shada01245/the-unofficial-swift-programming-language-skill --skill programming-swiftgit clone --depth 1 https://github.com/Shada01245/the-unofficial-swift-programming-language-skillWrote 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.
[](https://agentmods.dev/skills/shada01245/the-unofficial-swift-programming-language-skill/programming-swift)<a href="https://agentmods.dev/skills/shada01245/the-unofficial-swift-programming-language-skill/programming-swift"><img src="https://agentmods.dev/badge/skills/shada01245/the-unofficial-swift-programming-language-skill/programming-swift/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.
<a href="https://agentmods.dev/skills/shada01245/the-unofficial-swift-programming-language-skill/programming-swift"><img src="https://agentmods.dev/badge/skills/shada01245/the-unofficial-swift-programming-language-skill/programming-swift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01453 |
| Opus 5 | $0.00028 | $0.00727 |
| Sonnet 5 | $0.00011 | $0.00291 |
| Haiku 4.5 | $0.00006 | $0.00145 |
Grade A, and why
programming-swift scanned grade A with 0 findings 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 9d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
97% identical to programming-swift — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The Swift Programming Language
The entire content of The Swift Programming Language (6.2.1) book by Apple. This is a comprehensive language reference and guide to the Swift programming language.
Documentation Structure
Getting Started (GuidedTour)
- About Swift (GuidedTour/AboutSwift.md): Understand the high-level goals of the language.
- Version Compatibility (GuidedTour/Compatibility.md): Learn what functionality is available in older language modes.
- A Swift Tour (GuidedTour/GuidedTour.md): Explore the features and syntax of Swift.
Language Guide
- The Basics (LanguageGuide/TheBasics.md): Work with common kinds of data and write basic syntax.
- Basic Operators (LanguageGuide/BasicOperators.md): Perform operations like assignment, arithmetic, and comparison.
- Strings and Characters (LanguageGuide/StringsAndCharacters.md): Store and manipulate text.
- Collection Types (LanguageGuide/CollectionTypes.md): Organize data using arrays, sets, and dictionaries.
- Control Flow (LanguageGuide/ControlFlow.md): Structure code with branches, loops, and early exits.
- Functions (LanguageGuide/Functions.md): Define and call functions, label their arguments, and use their return values.
- Closures (LanguageGuide/Closures.md): Group code that executes together, without creating a named function.
- Enumerations (LanguageGuide/Enumerations.md): Model custom types that define a list of possible values.
- Structures and Classes (LanguageGuide/ClassesAndStructures.md): Model custom types that encapsulate data.
- Properties (LanguageGuide/Properties.md): Access stored and computed values that are part of an instance or type.
- Methods (LanguageGuide/Methods.md): Define and call functions that are part of an instance or type.
- Subscripts (LanguageGuide/Subscripts.md): Access the elements of a collection.
- Inheritance (LanguageGuide/Inheritance.md): Subclass to add or override functionality.
- Initialization (LanguageGuide/Initialization.md): Set the initial values for a type's stored properties and perform one-time setup.
- Deinitialization (LanguageGuide/Deinitialization.md): Release resources that require custom cleanup.
- Optional Chaining (LanguageGuide/OptionalChaining.md): Access members of an optional value without unwrapping.
- Error Handling (LanguageGuide/ErrorHandling.md): Respond to and recover from errors.
- Concurrency (LanguageGuide/Concurrency.md): Perform asynchronous operations.
- Macros (LanguageGuide/Macros.md): Use macros to generate code at compile time.
- Type Casting (LanguageGuide/TypeCasting.md): Determine a value's runtime type and give it more specific type information.
- Nested Types (LanguageGuide/NestedTypes.md): Define types inside the scope of another type.
- Extensions (LanguageGuide/Extensions.md): Add functionality to an existing type.
- Protocols (LanguageGuide/Protocols.md): Define requirements that conforming types must implement.
- Generics (LanguageGuide/Generics.md): Write code that works for multiple types and specify requirements for those types.
- Opaque and Boxed Protocol Types (LanguageGuide/OpaqueTypes.md): Hide implementation details about a value's type.
- Automatic Reference Counting (LanguageGuide/AutomaticReferenceCounting.md): Model the lifetime of objects and their relationships.
- Memory Safety (LanguageGuide/MemorySafety.md): Structure your code to avoid conflicts when accessing memory.
- Access Control (LanguageGuide/AccessControl.md): Manage the visibility of code by declaration, file, and module.
- Advanced Operators (LanguageGuide/AdvancedOperators.md): Define custom operators, perform bitwise operations, and use builder syntax.
What ships with it
44 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.
- GuidedTour/AboutSwift.md 2.2 KB
- GuidedTour/Compatibility.md 2.0 KB
- GuidedTour/GuidedTour.md 60 KB
- GuidedTour/skill-unofficial-swift-programming-the-language-clayer.zip 533 KB
- LanguageGuide/AccessControl.md 55 KB
- LanguageGuide/AdvancedOperators.md 48 KB
- LanguageGuide/AutomaticReferenceCounting.md 46 KB
- LanguageGuide/BasicOperators.md 31 KB
- LanguageGuide/ClassesAndStructures.md 22 KB
- LanguageGuide/Closures.md 42 KB
- LanguageGuide/CollectionTypes.md 43 KB
- LanguageGuide/Concurrency.md 55 KB
- LanguageGuide/ControlFlow.md 72 KB
- LanguageGuide/Deinitialization.md 8.4 KB
- LanguageGuide/Enumerations.md 24 KB
- LanguageGuide/ErrorHandling.md 30 KB
- LanguageGuide/Extensions.md 18 KB
- LanguageGuide/Functions.md 39 KB
- LanguageGuide/Generics.md 63 KB
- LanguageGuide/Inheritance.md 18 KB
- LanguageGuide/Initialization.md 90 KB
- LanguageGuide/Macros.md 26 KB
- LanguageGuide/MemorySafety.md 22 KB
- LanguageGuide/Methods.md 20 KB
- LanguageGuide/NestedTypes.md 6.8 KB
- LanguageGuide/OpaqueTypes.md 29 KB
- LanguageGuide/OptionalChaining.md 27 KB
- LanguageGuide/Properties.md 62 KB
- LanguageGuide/Protocols.md 78 KB
- LanguageGuide/StringsAndCharacters.md 51 KB
- LanguageGuide/Subscripts.md 13 KB
- LanguageGuide/TheBasics.md 70 KB
- LanguageGuide/TypeCasting.md 17 KB
- LICENSE.txt 11 KB
- ReferenceManual/AboutTheLanguageReference.md 2.7 KB
- ReferenceManual/Attributes.md 89 KB
- ReferenceManual/Declarations.md 142 KB
- ReferenceManual/Expressions.md 97 KB
- ReferenceManual/GenericParametersAndArguments.md 13 KB
- ReferenceManual/LexicalStructure.md 43 KB
- ReferenceManual/Patterns.md 14 KB
- ReferenceManual/Statements.md 50 KB
- ReferenceManual/SummaryOfTheGrammar.md 51 KB
- ReferenceManual/Types.md 46 KB
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.
- 9d ago First seen · 74 lines · 56 tokens per session scan A d9f3ed89cf6d
programming-swift is a skill published in the GitHub repository Shada01245/the-unofficial-swift-programming-language-skill (2 stars, last pushed 2d ago), licensed MIT. It adds 56 tokens to every session and 1,453 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to programming-swift, differing in 5 lines, and is treated as a copy.
Other skills, from other repositories
programming-swift
Provides the complete content of 'The Swift Programming Language (6.4 beta)' 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.
migrating-to-swift-concurrency
Provides the complete Swift Concurrency Migration Guide. Use when migrating to Swift 6, resolving data-race safety errors, understanding Sendable and actor isolation, or incrementally adopting async/await.
generators
Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing…
attributed-string
AttributedString patterns for rich text formatting, alignment, selection, and SwiftUI integration. Use when working with styled text, text editing, or AttributedString APIs.
coding-best-practices
Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.
networking-layer
Generates a protocol-based networking layer with async/await, error handling, and swappable implementations. Use when user wants to add API client, networking, or HTTP layer.