Review, refactor, or build SwiftUI features with correct state management, modern API usage, optimal view composition, navigation patterns, performance optimization, and testing best practices.
Add this skill
npx mdskills install efremidze/swift-patternsComprehensive SwiftUI review and refactoring framework with clear workflows, decision trees, and extensive reference materials
A comprehensive Swift/SwiftUI knowledge base for AI coding tools, following the Agent Skills standard.
Provides expert guidance on state management, navigation, view composition, performance optimization, and modern SwiftUI API usage to help AI assistants generate better SwiftUI code.
Comprehensive SwiftUI expertise across:
@State, @Binding, @Observable), ownership rules, data flow patternsNavigationStack, sheets, deep linking, type-safe routing patternsForEach, pagination, lazy containersAll guidance is based on Apple's official documentation and focuses on facts over opinions – no architectural mandates.
Install with a single command:
npx skills add https://github.com/efremidze/swift-patterns-skill --skill swift-patterns
Then use it in your AI assistant:
Review my SwiftUI view for state management issues
The easiest way to install:
npx skills add https://github.com/efremidze/swift-patterns-skill --skill swift-patterns
This installs the skill and makes it available to your AI assistant.
For Claude Code users, add via the marketplace:
Add the marketplace:
/plugin marketplace add efremidze/swift-patterns-skill
Install the skill:
/plugin install swift-patterns@swift-patterns-skill
Or configure for your team in .claude/settings.json:
{
"enabledPlugins": {
"swift-patterns@swift-patterns-skill": true
},
"extraKnownMarketplaces": {
"swift-patterns-skill": {
"source": {
"source": "github",
"repo": "efremidze/swift-patterns-skill"
}
}
}
}
If you prefer manual setup:
swift-patterns/ to your tool's skills directoryswift-patternsThe skill follows a progressive disclosure model—core workflows in SKILL.md, detailed guidance in references/:
swift-patterns/
SKILL.md # Entry point: workflow routing, quick refs, review checklist
references/
state.md # Property wrappers, ownership, @Observable patterns
navigation.md # NavigationStack, sheets, deep linking
view-composition.md # View extraction, data flow patterns
lists-collections.md # ForEach identity, List vs LazyVStack
scrolling.md # Pagination, scroll position management
concurrency.md # .task modifier, async lifecycle
performance.md # View optimization, lazy loading strategies
testing-di.md # Dependency injection, test doubles
patterns.md # Container views, ViewModifiers, PreferenceKeys
modern-swiftui-apis.md # iOS 17/18/26 API replacements and migration
refactor-playbooks.md # Step-by-step refactoring guides
workflows-review.md # Review methodology and standards
workflows-refactor.md # Refactoring methodology, invariants
code-review-refactoring.md # Code smells, anti-patterns, quality checks
Key difference:
Contributions are welcome! This repository follows the Agent Skills open format.
See CONTRIBUTING.md for guidelines on improving the skill content and reference files.
MIT License. See LICENSE for details.
Install via CLI
npx mdskills install efremidze/swift-patternsSwift Patterns is a free, open-source AI agent skill. Review, refactor, or build SwiftUI features with correct state management, modern API usage, optimal view composition, navigation patterns, performance optimization, and testing best practices.
Install Swift Patterns with a single command:
npx mdskills install efremidze/swift-patternsThis downloads the skill files into your project and your AI agent picks them up automatically.
Swift Patterns works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.