
modern-swift-practices
by hieunguyen1053
A collection of specialized skills for AI coding agents in the Apple ecosystem.
SKILL.md
name: modern-swift-practices description: Access and apply modern Swift best practices, including Liquid Glass Design, On-device Intelligence, and Swift 6+ patterns. version: 1.0 license: MIT
Modern Swift Practices
This skill provides access to exclusive technical documentation representing Apple's recommended best practices. It covers the "Liquid Glass" design system, on-device AI integration, and core framework updates found in the latest Xcode tools.
Capabilities
This skill enables you to:
- Adopt Design Standards: Implement the "Liquid Glass" design language across SwiftUI, UIKit, and AppKit consistently.
- Implement Intelligent Features: Correctly integrate on-device LLMs and visual intelligence.
- Follow Modern Patterns: Apply the latest best practices for Swift Concurrency, SwiftData, and Foundation.
- Use Modern Components: Leverage new SwiftUI capabilities like
AlarmKitintegration and 3D charts properly.
Instructions
-
Identify the User's Goal
- designing a new UI -> Check Liquid Glass Design resources.
- adding AI/ML features -> Check Intelligence & AI resources.
- upgrading/refactoring code -> Check Core Framework Updates for best practices.
-
Locate the Resource
- The documentation files are stored in the
resources/directory of this skill. - Use
ls .agent/skills/apple-best-practices/resources/to see available files if unsure.
- The documentation files are stored in the
-
Read and Apply
- Use the
view_filetool to read the specific markdown file. - Extract code snippets and implementation guidelines.
- Apply them to the user's project context to ensure compliance with Apple's standards.
- Use the
Resources Reference
🎨 Liquid Glass Design System
SwiftUI-Implementing-Liquid-Glass-Design.mdUIKit-Implementing-Liquid-Glass-Design.mdAppKit-Implementing-Liquid-Glass-Design.mdWidgetKit-Implementing-Liquid-Glass-Design.md
🧠 Intelligence & AI
FoundationModels-Using-on-device-LLM-in-your-app.md(Running LLMs locally)Implementing-Visual-Intelligence-in-iOS.mdAppIntents-Updates.md
🚀 Core Framework Updates
Swift-Concurrency-Updates.mdSwiftData-Class-Inheritance.mdFoundation-AttributedString-Updates.mdStoreKit-Updates.md
🖥️ SwiftUI & UI Components
SwiftUI-AlarmKit-Integration.mdSwiftUI-New-Toolbar-Features.mdSwiftUI-Styled-Text-Editing.mdSwiftUI-WebKit-Integration.mdSwift-Charts-3D-Visualization.mdWidgets-for-visionOS.md
Examples
Example 1: Implementing Liquid Glass in SwiftUI
User: "Make this button look like the new Apple style." Action: Read
SwiftUI-Implementing-Liquid-Glass-Design.mdto find the correct modifiers and materials.
Example 2: Adding Local LLM Support
User: "I want to use a local model for text generation." Action: Read
FoundationModels-Using-on-device-LLM-in-your-app.mdto understand the recommended model loading pipeline.
Example 3: Modern Concurrency
User: "How should I structure my async code?" Action: Read
Swift-Concurrency-Updates.mdfor the latest patterns.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon