agentleFS
Shada01245Shada01245/the-unofficial-swift-programming-language-skill/programming-swift/SKILL.md

programming-swift

Skill2 starsChanged 12 months agoMITView on GitHub

Provides the complete content of 'The Swift Programming Language (6.2.1)' 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.

3 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Wrote their own version · 1

    1. Muvon/octomind-tap★ 6same name

    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 repository2 other files it gives its agents.

The file

Files
SKILL.md

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.

Reference Manual

  • About the Language Reference (ReferenceManual/AboutTheLanguageReference.md): Read the notation that the formal grammar uses.
  • Lexical Structure (ReferenceManual/LexicalStructure.md): Use the lowest-level components of the syntax.
  • Types (ReferenceManual/Types.md): Use built-in named and compound types.
  • Expressions (ReferenceManual/Expressions.md): Access, modify, and assign values.
  • Statements (ReferenceManual/Statements.md): Group expressions and control the flow of execution.
  • Declarations (ReferenceManual/Declarations.md): Introduce types, operators, variables, and other names and constructs.
  • Attributes (ReferenceManual/Attributes.md): Add information to declarations and types.
  • Patterns (ReferenceManual/Patterns.md): Match and destructure values.
  • Generic Parameters and Arguments (ReferenceManual/GenericParametersAndArguments.md): Generalize declarations to abstract away concrete types.
  • Summary of the Grammar (ReferenceManual/SummaryOfTheGrammar.md): Read the whole formal grammar.

Usage Notes

  • Organized progressively: GuidedTour → LanguageGuide → ReferenceManual

License & Attribution

This skill contains content from The Swift Programming Language, distributed under the Apache 2.0 License.

Copyright © Apple Inc. and the Swift project authors.

This package is a derivative work that aggregates the original markdown content into a structure optimized for LLM context.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.