$npx skillfedfor your agent

swift-rules

Swift Rules provides comprehensive coding standards for Swift development, covering style conventions, naming patterns, type system best practices, and framework guidance. The skill applies standards for SwiftUI, Combine, async/await, and Core Data to ensure consistency across your codebase. Use it when writing or reviewing Swift code to maintain quality and follow established patterns.

Swift Rules applies style, naming, and type conventions to maintain consistent Swift code quality.

AI-generated summary based on this skill's SKILL.md

161 21 Apache-2.0updated by softspark

Decision gist · record as of 2026-07-27

Swift Rules applies style, naming, and type conventions to maintain consistent Swift code quality. Swift Rules provides comprehensive coding standards for Swift development, covering style conventions, naming patterns, type system best practices, and framework guidance. The skill applies standards for SwiftUI, Combine, async/await, and Core Data to ensure consistency across your codebase. Use it when writing or reviewing Swift code to maintain quality and follow established patterns.

manual: git clone https://github.com/softspark/ai-toolkit → cp -r ai-toolkit/app/skills/swift-rules ~/.claude/skills/swift-rules
app/skills/swift-rules/SKILL.md · version aa52f910

Use it when

  • Swift Rules guides you through writing async/await, actor-based, and concurrent Swift code safely.
  • Swift Rules covers SwiftUI patterns and frameworks for building views with proper state management.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

softspark/ai-toolkit/swift-rules · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What swift coding standards and best practices does Swift Rules cover?

Swift Rules provides comprehensive coding standards for Swift development, covering style conventions, naming patterns, type system best practices, and framework guidance. The skill applies standards for SwiftUI, Combine, async/await, and Core Data to ensure consistency across your codebase. Use it when writing or reviewing Swift code to maintain quality and follow established patterns.

How does Swift Rules help with async/await concurrency rules?

Swift Rules guides you through writing async/await, actor-based, and concurrent Swift code safely. It covers proper patterns for managing asynchronous operations, thread safety with actors, and avoiding common concurrency pitfalls to ensure your code runs reliably in multi-threaded environments.

What does Swift Rules recommend for SwiftUI state management?

Swift Rules covers SwiftUI patterns and frameworks for building views with proper state management. It guides you on using @State, @Binding, and other property wrappers correctly, ensuring your UI remains responsive and data flows predictably through your view hierarchy.

How can Swift Rules help with secure authentication and data protection?

Swift Rules implements guidance for secure authentication, keychain, and data protection. It covers best practices for storing sensitive credentials safely, handling input validation and sanitization, and protecting user data throughout your application lifecycle.

What testing frameworks does Swift Rules support?

Swift Rules provides guidance for testing Swift code with both XCTest and the Swift Testing framework. It helps you write effective unit tests, integration tests, and understand testing patterns that ensure your code quality and reliability.

Does Swift Rules cover dependency injection and memory management?

Yes, Swift Rules includes guidance on dependency injection patterns, memory management with weak self, struct vs class decisions, and optional handling with guard let. These patterns help you write maintainable code that avoids memory leaks and manages object lifecycles properly.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Swift Rules

These rules come from app/rules/swift/ in ai-toolkit. They cover the project's standards for coding style, frameworks, patterns, security, and testing in Swift. Apply them when writing or reviewing Swift code.

Swift Coding Style

Naming

  • PascalCase: types, protocols, enums, struct, class.
  • camelCase: functions, methods, properties, variables, enum cases.
  • No prefixes: Swift has module namespacing (no NS or UI prefix for your types).
  • Use descriptive names: removeElement(at:) not remove(i:).
  • Boolean properties read as assertions: isEmpty, hasChildren, canSubmit.

Types

  • Prefer struct over class by default (value semantics, no reference cycles).
  • Use class only when reference semantics or inheritance is required.
  • Use enum with associated values for modeling finite states.
  • Use protocol for defining capabilities. Prefer protocol composition.
  • Use typealias for complex generic signatures

(truncated - see the full file via the links below)

File tree — 1 file
app/skills/swift-rules/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Apply Swift coding style, naming, and type conventions to new code”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

Swift Testing
by dpearson2699 · dpearson2699/swift-ios-skills

Master Swift Testing, the modern framework for Swift unit tests in Xcode 16+. Learn to write tests with @Test and @Suite, use #expect and #require for assertions, organize tests with traits, handle async patterns, and migrate from XCTest. This skill covers test attachments, exit testing, known issues, and version-gated APIs to help you build reliable test suites.

no license declared → metadata onlyupdated Jul 2026
★ 932repo stars
swift-expert
by Jeffallan · Jeffallan/claude-skills

swift-expert equips you with expert-level guidance for crafting robust iOS and macOS applications using Swift 5.9 and beyond. Leverage modern concurrency features and type-safety principles to accelerate your full-stack development workflow. This skill bridges the gap between foundational Swift knowledge and production-ready app architecture.

MITupdated May 2026
★ 10,759repo stars
swift
by miles990 · miles990/claude-software-skills

Swift is a powerful, modern programming language designed for building iOS, macOS, and other Apple platform applications. This skill covers core language concepts, syntax patterns, and contemporary best practices to help you write efficient, type-safe code. Whether you're starting fresh or deepening your expertise, you'll gain practical knowledge for real-world development scenarios.

MITupdated Jan 2026
★ 19repo stars
Swift Idioms
by irahardianto · irahardianto/awesome-agv

This skill covers the core patterns that make Swift code safe and maintainable. You'll learn when to use structs over classes, how to handle optionals without crashes, design with protocols instead of inheritance, and leverage Swift's concurrency model. The guide includes practical examples of error handling, property wrappers, actors, and testing strategies—plus anti-patterns to avoid.

MITupdated Jul 2026
★ 150repo stars
ios-development
by travisjneuman · travisjneuman/.claude

This skill equips you to develop production-ready Apple platform applications using modern Swift tooling and SwiftUI's declarative interface. Leverage Claude's code generation capabilities to accelerate native app development across iPhone, iPad, and Apple TV ecosystems.

MITupdated Jul 2026
★ 85repo stars
Swift Language
by dpearson2699 · dpearson2699/swift-ios-skills

Swift Language covers contemporary syntax and idioms for core Swift development, excluding concurrency and SwiftUI. Learn if/switch expressions, typed throws, result builders, property wrappers, opaque versus existential types, guard patterns, the Never type, regex builders, Codable techniques, modern collection methods, FormatStyle basics, and string interpolation. Routes specialized topics like deep decoding, formatting, API naming, concurrency, and SwiftUI state to dedicated skills.

no license declared → metadata onlyupdated Jul 2026
★ 932repo stars

More skills Ios Networking (NOASSERTION) · Cometchat Ios Testing (unlicensed) · axiom-resolve-spm (MIT) · Swift Codable (NOASSERTION) · swift-actor-persistence (MIT)

Tags
concurrency-patternsui-framework-guidememory-safetyapi-designreactive-streamspersistence-layerauthentication-flowcode-qualitytesting-strategynetwork-protocols