swift-conventions

Enforce Swift conventions across Swift, SwiftUI, SwiftData, and Foundation Models.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/foxtrottwist/ClaudeAgentConfig --skill swift-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-conventions
Source: https://github.com/foxtrottwist/ClaudeAgentConfig/tree/main/xcode-agent/skills/swift-conventions
Command: npx skills add https://github.com/foxtrottwist/ClaudeAgentConfig --skill swift-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Swift projects frequently diverge in style and patterns across Swift, SwiftUI, SwiftData, and Foundation Models, causing maintenance headaches, hidden bugs, and slower iteration.

Core Features & Use Cases

  • Centralized Swift conventions for Swift, SwiftUI, SwiftData, and Foundation Models to reduce code drift.
  • Enforces modern patterns: concurrency, error handling, and safe APIs across iOS 26+.
  • Supports generation, review, and scaffolding tasks with consistent style.

Quick Start

Provide code snippets that adhere to the conventions for SwiftUI, SwiftData, and Foundation Models in iOS 26+.

Frequently Asked Questions about swift-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Swift coding standards consistently across SwiftUI and SwiftData?

To enforce Swift coding standards consistently, you can apply centralized conventions across Swift, SwiftUI, SwiftData, and Foundation Models during code generation and review to reduce code drift and ensure maintainability.

What are the best practices for applying Swift concurrency patterns in iOS 26+ projects?

Applying Swift concurrency patterns in iOS 26+ projects involves using centralized conventions that enforce modern concurrency, safe APIs, and error handling across SwiftData and Foundation Models to prevent hidden bugs.

How do I review Swift code for convention violations and API misuse?

Reviewing Swift code for convention violations involves checking against centralized rules for Swift, SwiftUI, and Foundation Models to ensure modern patterns, safe API usage, and consistent naming are applied correctly.

Can I use these Swift conventions for scaffolding and template creation?

Yes, these Swift conventions support scaffolding and template creation tasks by providing consistent style rules for SwiftUI, SwiftData, and Foundation Models in iOS 26+ projects to accelerate safe iteration.

Does this Swift convention enforcement work with Foundation Models and on-device AI?

Yes, this Swift convention enforcement works with Foundation Models and on-device AI, applying specific patterns to ensure safe, consistent, and maintainable API usage across iOS 26+ projects.

Why do my Swift projects diverge in style and patterns across different frameworks?

Swift projects frequently diverge in style and patterns across SwiftUI, SwiftData, and Foundation Models due to a lack of centralized conventions, which causes maintenance headaches, hidden bugs, and slower iteration.