CtrlK
BlogDocsLog inGet started
Tessl Logo

swiftui-expert-skill

Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, macOS-specific APIs, and iOS 26+ Liquid Glass adoption. Use when building new SwiftUI features, refactoring existing views, reviewing code quality, or adopting modern SwiftUI patterns. Also triggers whenever an Xcode Instruments `.trace` file is referenced (to analyse it) or the user asks to **record** a new trace — attach to a running app, launch one fresh, or capture a manually-stopped session with the bundled `record_trace.py`. A target SwiftUI source file is optional; if provided it grounds recommendations in specific lines, but a trace alone is enough to diagnose hangs, hitches, CPU hotspots, and high-severity SwiftUI updates.

95

1.16x
Quality

92%

Does it follow best practices?

Impact

100%

1.16x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

8%

Profile Settings Feature Modernization

Deprecated API replacement and state modernization

Criteria
Without context
With context

Observable macro

100%

100%

MainActor annotation

0%

100%

@State for owned model

100%

100%

@Bindable for injected observable

100%

100%

Passed value not @State

100%

100%

NavigationStack

100%

100%

navigationTitle modifier

100%

100%

foregroundStyle modifier

100%

100%

onChange without perform

100%

100%

onSubmit instead of onCommit

100%

100%

sensoryFeedback haptics

100%

100%

@Entry macro for environment

100%

100%

100%

9%

Social Feed View for Mosaic App

Performance patterns for large lists and animations

Criteria
Without context
With context

Lazy scroll container

100%

100%

Stable ForEach identity

100%

100%

No AnyView in rows

100%

100%

No inline filtering in ForEach

100%

100%

No heavy body computation

100%

100%

Animation with value param

100%

100%

Extracted row subview

100%

100%

@State private

100%

100%

@Observable model

0%

100%

Passed values not @State

100%

100%

foregroundStyle used

100%

100%

100%

24%

Canvas Drawing App Floating Toolbar

Liquid Glass UI with fallbacks and accessibility

Criteria
Without context
With context

GlassEffectContainer grouping

0%

100%

glassEffect after padding

100%

100%

interactive() on buttons only

50%

100%

#available iOS 26 guard

100%

100%

Material fallback

100%

100%

Button not onTapGesture

100%

100%

accessibilityLabel on icon buttons

100%

100%

Decorative images hidden

100%

100%

@ScaledMetric for sizes

88%

100%

Container spacing matches layout

0%

100%

@State private

100%

100%

Repository
avdlee/swiftui-agent-skill
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.