convez.ai
Skill
SwiftyJourney

swiftui-expert-skill

SwiftyJourney/swiftui-expert-skill

Ver no GitHub
InicialPluginScore · de 0 a 100

Write, review and improve SwiftUI: state, composition, performance, animations, accessibility and iOS 26 Liquid Glass - Agent Skill

Instalação

$npx convez-ai SwiftyJourney/swiftui-expert-skill

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
3
Forks
0
Acompanhando
0
Saúde
50%
Último commit
há 3 meses
Versão
—
Issues abertas
1
Contribuidores
1

README

A tradução para o português deste README ainda está na fila.

SwiftUI Expert Agent Skill

License: MIT Agent Skills

A Claude Code skill that guides writing, reviewing, and improving SwiftUI code — correct state management, modern APIs, view composition, performance, animations, accessibility, and iOS 26+ Liquid Glass styling.

Who is this for?

iOS developers who want AI-assisted guidance on:

  • Choosing the right property wrapper (@State, @Binding, @Observable, @Bindable)
  • Extracting and composing views following best practices
  • Replacing deprecated APIs with modern equivalents (iOS 18/26)
  • Optimizing performance and list identity
  • Loading data correctly (.task/.task(id:), offloading heavy work with @concurrent)
  • Applying correct animation and gesture patterns
  • Building custom layouts with the Layout protocol
  • Structuring app lifecycle and scenes, and persisting state (@AppStorage/@SceneStorage/SwiftData)
  • Adding accessibility and adaptive layout
  • Adopting Liquid Glass (iOS 26+) following HIG

Installation

Install via skills.sh:

npx skills add SwiftyJourney/swiftui-expert-skill

Compatible Agents

What the Skill Covers

AreaTopics
State & Data FlowProperty wrappers, persistence (@AppStorage/@SceneStorage/SwiftData/PreferenceKey), data loading (.task/.task(id:), @concurrent)
View Structure & LayoutComposition and extraction, list identity, the custom Layout protocol
Modern APIs & NavigationiOS 18/26 replacements, NavigationStack/NavigationSplitView, scroll, text & localization
App StructureApp protocol, scenes, WindowGroup, scenePhase
PerformanceStructural identity, view-update cost, AsyncImage/image optimization
Animation & InteractionImplicit/explicit, transitions, PhaseAnimator/KeyframeAnimator, gestures
Accessibility & PlatformSemantic styling, @ScaledMetric, VoiceOver, iOS 26 Liquid Glass

Quick Start

Try these prompts:

Review this SwiftUI view for state management issues.
This view body is 200 lines. Help me break it down.
Update this code to use modern SwiftUI APIs.

The agent will follow the skill's workflow decision tree, reference the correct guide, provide corrected code, and explain why each pattern is preferred.

Skill File Structure

SKILL.md                            # Hub: behavior contract, diagnostic table, reference router
references/
├── state-management.md             # Property wrapper selection guide
├── data-persistence.md             # @AppStorage, @SceneStorage, SwiftData, PreferenceKey
├── data-loading-and-tasks.md       # .task/.task(id:) entry points, @concurrent, cancellation
├── view-composition.md             # View extraction rules and patterns
├── layout-protocol.md              # Layout negotiation, custom Layout, alignment guides
├── modern-apis.md                  # iOS 18/26 API replacements
├── performance-patterns.md         # Optimization techniques and anti-patterns
├── list-patterns.md                # Stable identity, ForEach, LazyVStack
├── navigation-patterns.md          # NavigationStack, programmatic navigation
├── app-lifecycle-and-scenes.md     # App protocol, scenes, WindowGroup, scenePhase
├── animation-basics.md             # withAnimation, implicit/explicit
├── animation-transitions.md        # AnyTransition, matched geometry
├── animation-advanced.md           # PhaseAnimator, KeyframeAnimator
├── gestures.md                     # Gesture types, @GestureState, composition & precedence
├── scroll-patterns.md              # scrollPosition, scrollTargetBehavior
├── text-formatting.md              # AttributedString, formatting, localization
├── image-optimization.md           # AsyncImage, caching strategies
├── accessibility-patterns.md       # Semantic styling, @ScaledMetric, VoiceOver
└── liquid-glass.md                 # iOS 26 Liquid Glass API and HIG guidance

Related Skills

Credits

  • Natalia Panferova (Nil Coalescing) — "SwiftUI Fundamentals" and "The SwiftUI Way", which informed the patterns, performance, layout, gesture, and lifecycle guidance
  • Matteo Manferdini — SwiftUI view composition methodology
  • Apple — SwiftUI documentation, WWDC sessions, and Human Interface Guidelines

License

MIT — see LICENSE.

Ver o original no GitHub

Bom para

Relacionados