Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
swift-patterns logo

swift-patterns

swift-patterns-skill

developmentClaude Codeby Lasha Efremidze

Summary

Expert Swift and SwiftUI guidance for state management, navigation, testing, dependency injection, performance optimization, and code quality patterns.

Install to Claude Code

/plugin install swift-patterns@swift-patterns-skill

Run in Claude Code. Add the marketplace first with /plugin marketplace add efremidze/swift-patterns-skill if you haven't already.

README.md

Swift Patterns Skill

![Validate Skill](https://github.com/efremidze/swift-patterns-skill/actions/workflows/validate-skill.yml) ![Agent Skills](https://agentskills.io/home) !Release

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.

What This Skill Provides

Comprehensive SwiftUI expertise across:

Core Topics

  • State Management – Property wrapper selection (@State, @Binding, @Observable), ownership rules, data flow patterns
  • Modern APIs – iOS 17/18/26 replacements for deprecated APIs, complete migration guides
  • View Composition – Extraction patterns, parent/child data flow, view identity and performance
  • NavigationNavigationStack, sheets, deep linking, type-safe routing patterns

Advanced Areas

  • Lists & Collections – Stable identity with ForEach, pagination, lazy containers
  • Performance Optimization – View optimization strategies, avoiding recomputation, memory management
  • Testing & Dependency Injection – Protocol-based patterns, test doubles, testable architecture
  • Code Quality – Refactoring playbooks, code smell detection, anti-pattern identification

All guidance is based on Apple's official documentation and focuses on facts over opinions – no architectural mandates.

Quick Start

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

View on skills.sh →

Installation

Recommended: Using skills.sh CLI

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.

Alternative: Claude Code Plugin

For Claude Code users, add via the marketplace:

1. Add the marketplace:

   /plugin marketplace add efremidze/swift-patterns-skill

2. 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"
      }
    }
  }
}

Manual Installation

If you prefer manual setup:

1. Clone this repository 2. Install or symlink swift-patterns/ to your tool's skills directory 3. Configure your AI tool to use swift-patterns

Skill Structure

The 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

Related Projects

Other Skills

  • swift-architecture-skill – Architectural patterns and project structure guidance (complements this skill's focus on SwiftUI patterns)

Dynamic Runtime Tools

  • swift-patterns-mcp – MCP server with intelligent search, retrieval, and persistent memory

Key difference:

  • swift-patterns-skill (this repo) = Static guidance, portable, no runtime dependencies
  • swift-patterns-mcp = Dynamic tooling with search, retrieval, and premium integrations

Contributing

Contributions are welcome! This repository follows the Agent Skills open format.

See CONTRIBUTING.md for guidelines on improving the skill content and reference files.

License

MIT License. See LICENSE for details.

Related plugins

Browse all →