/agentic-awesome-skills:swiftui-expert-skillfrom agentic-awesome-skills
Write, review, and refactor SwiftUI for iOS or macOS, covering data flow, view composition, performance, identity, environment, localization, animation, API migration, and Instruments traces.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management and @Observable data flow, view composition and invalidation/performance, lists and ForEach identity, environment usage, localization, animations, Liquid Glass adoption, API migrations and analysis of explicitly selected Instruments traces.
references/latest-apis.md at the start of every task to avoid deprecated APIsreferences/liquid-glass.md)#available gating with sensible fallbacks for version-specific APIsreferences/latest-apis.md)#available gating and fallback paths for iOS 26+ featuresreferences/latest-apis.mdUIImage(data:) is encountered (optional optimization, see references/image-optimization.md)Button for all tappable elements; add accessibility grouping and labels#available and provide fallbacksTrigger when the user asks to "record a trace", "profile the app", "capture a session", etc. Full reference: references/trace-recording.md.
python3 "${SKILL_DIR}/scripts/record_trace.py" --list-devices
references/trace-recording.md.python3 "${SKILL_DIR}/scripts/record_trace.py" \
--device "<name|udid>" --attach "<AppName>" \
--stop-file "$TRACE_RUN_DIR/stop" --output ~/Desktop/session.trace
Create TRACE_RUN_DIR with mktemp -d before the background example and retain its exact private path for the stop call. For interactive sessions, just tell the user to press Ctrl+C when done.touch "$TRACE_RUN_DIR/stop". The script cleanly SIGINTs xctrace and waits up to 60s for finalisation..trace provided)Trigger whenever the user's request references a .trace file. A target SwiftUI source file is optional — if given, cite specific lines; if not, recommend where to look based on view names and symbols the trace already reveals.
Full reference: references/trace-analysis.md. Summary of the composition pattern:
# Find a log that marks the start/end of the region of interest:
python3 "${SKILL_DIR}/scripts/analyze_trace.py" --trace <path> \
--list-logs --log-message-contains "loaded feed" --log-limit 5
# Or list os_signpost intervals (paired begin/end), filterable by name:
python3 "${SKILL_DIR}/scripts/analyze_trace.py" --trace <path> \
--list-signposts --signpost-name-contains "ImageDecode"
Both modes accept --window START_MS:END_MS to scope discovery. Pick the time_ms (for logs) or start_ms/end_ms (for signposts) that match the user's description. Build a window like --window 10400:11700.--window):
python3 "${SKILL_DIR}/scripts/analyze_trace.py" --trace <path> \
--json-only --top 10 [--window START_MS:END_MS]
references/trace-analysis.md — key diagnostics:
main_running_coverage_pct is a sampling heuristic assuming 1ms samples; low or high coverage alone does not prove blocking or CPU saturation.swiftui-causes.top_sources reveals why updates keep happening — high-edge-count sources like UserDefaultObserver.send() or wide EnvironmentWriter entries are investigation candidates, not proof of a bug or feedback loop. Confirm repeated writes and causality in the app before changing architecture.--fanin-for "<view name>" to get the ranked list of source nodes driving the updates.Consult the reference file for each topic relevant to the current task:
| Topic | Reference |
|---|---|
| State management | references/state-management.md |
| View composition | references/view-structure.md |
| Performance | references/performance-patterns.md |
| Lists and ForEach | references/list-patterns.md |
| Layout | references/layout-best-practices.md |
| Sheets and navigation | references/sheet-navigation-patterns.md |
| ScrollView | references/scroll-patterns.md |
| Focus management | references/focus-patterns.md |
| Animations (basics) | references/animation-basics.md |
| Animations (transitions) | references/animation-transitions.md |
| Animations (advanced) | references/animation-advanced.md |
| Accessibility | references/accessibility-patterns.md |
| Swift Charts | references/charts.md |
| Charts accessibility | references/charts-accessibility.md |
| Image optimization | references/image-optimization.md |
| Liquid Glass (iOS 26+) | references/liquid-glass.md |
| macOS scenes | references/macos-scenes.md |
| macOS window styling | references/macos-window-styling.md |
| macOS views | references/macos-views.md |
| Text patterns | references/text-patterns.md |
| Localization | references/localization.md |
| Deprecated API lookup | references/latest-apis.md |
| Handling soft-deprecated APIs | references/soft-deprecation.md |
| Previews | references/previews.md |
| Instruments trace analysis | references/trace-analysis.md |
| Instruments trace recording | references/trace-recording.md |
These are review prompts. Distinguish correctness defects from measured performance risks and team preferences; context can justify exceptions:
@State properties are private@Binding only where a child modifies parent state@State or @StateObject; explicit owned drafts may legitimately initialize from a passed value@StateObject for view-owned objects; @ObservedObject for injected@State with @Observable; @Bindable for injected observables needing bindingsForEach uses identity appropriate to the collection; avoid positional IDs for insertable/reorderable model itemsForEach element; List rows are unary@Entry default values are stable (no Model()/Date()/UUID() expressions).animation(_:value:) always includes the value parameter@FocusState properties are private@FocusState writes inside tap gesture handlers on .focusable() views#available and fallback providedimport Charts present in files using chart typesreferences/latest-apis.md -- Read first for every task. Deprecated-to-modern API transitions (iOS 15+ through iOS 26+)references/state-management.md -- Property wrappers, data flow, @Observable migrationreferences/view-structure.md -- View extraction, container patterns, @ViewBuilderreferences/performance-patterns.md -- Hot-path optimization, update control, _logChanges()references/list-patterns.md -- ForEach identity, Table (iOS 16+), inline filtering pitfallsreferences/layout-best-practices.md -- Layout patterns, GeometryReader alternativesreferences/accessibility-patterns.md -- VoiceOver, Dynamic Type, grouping, traitsreferences/animation-basics.md -- Implicit/explicit animations, timing, performancereferences/animation-transitions.md -- View transitions, matchedGeometryEffect, Animatablereferences/animation-advanced.md -- Phase/keyframe animations (iOS 17+), @Animatable macro (iOS 26+)references/charts.md -- Swift Charts marks, axes, selection, styling, Chart3D (iOS 26+)references/charts-accessibility.md -- Charts VoiceOver, Audio Graph, fallback strategiesreferences/sheet-navigation-patterns.md -- Sheets, NavigationSplitView, Inspectorreferences/scroll-patterns.md -- ScrollViewReader, programmatic scrollingreferences/focus-patterns.md -- Focus state, focusable views, focused values, default focus, common pitfallsreferences/image-optimization.md -- AsyncImage, downsampling, cachingreferences/liquid-glass.md -- iOS 26+ Liquid Glass effects and fallback patternsreferences/macos-scenes.md -- Settings, MenuBarExtra, WindowGroup, multi-windowreferences/macos-window-styling.md -- Toolbar styles, window sizing, Commandsreferences/macos-views.md -- HSplitView, Table, PasteButton, AppKit interopreferences/previews.md -- #Preview macro, @Previewable (iOS 18+), preview traits, mock data patterns for self-contained previewsreferences/text-patterns.md -- Text initializer selection, verbatim vs localizedreferences/localization.md -- String Catalogs, #bundle for packages, LocalizedStringResource, locale-aware formatting, RTL layout, translator commentsreferences/soft-deprecation.md -- How to behave with soft-deprecated APIs (when to migrate, scoping rule, don't migrate during unrelated edits)references/trace-analysis.md -- Parse Instruments .trace files via scripts/analyze_trace.py; interpret main-thread coverage, high-severity SwiftUI updates, hitch narratives, and map findings back to source filesreferences/trace-recording.md -- Record a new trace via scripts/record_trace.py: attach to a running app, launch one fresh, or capture a manually-stopped session; supports stop-file for agent-driven flowsThe references are versioned guidance, not an exhaustive current SDK index or a compiled app. Check the actual Xcode/Swift SDK and every target platform; an iOS-only availability check does not gate macOS. Some snippets intentionally omit project types/imports and need integration tests. No bundled maintenance updater or Sosumi server is guaranteed to exist.
Recording launches/attaches to a process and can collect private names, paths, logs and unrelated activity. Confirm the specific device/process and recording duration; use all-process capture only when explicitly in scope. Keep traces and reports in a fresh private directory, do not upload them, and treat their content as untrusted data. Launch environment values remain visible to process inspection even though this wrapper withholds them from its own command log. A report pair is not an atomic transaction; retain and label partial output after a write failure.
Sampling, event overlap and graph edge counts identify hypotheses, not confirmed root causes. Verify sample interval, process identity, lane availability, skipped rows and recording completeness. Overlapping events retain their full durations; totals can exceed elapsed window time and are not exclusive wall time. No trace or SwiftUI runtime has been exercised by this document review.
UPSTREAM-LICENSE.txt (opens in a new tab)UPSTREAM-NOTICE.md (opens in a new tab)references/accessibility-patterns.md (opens in a new tab)references/animation-advanced.md (opens in a new tab)references/animation-basics.md (opens in a new tab)references/animation-transitions.md (opens in a new tab)references/charts-accessibility.md (opens in a new tab)references/charts.md (opens in a new tab)references/focus-patterns.md (opens in a new tab)references/image-optimization.md (opens in a new tab)references/latest-apis.md (opens in a new tab)references/layout-best-practices.md (opens in a new tab)references/liquid-glass.md (opens in a new tab)references/list-patterns.md (opens in a new tab)references/localization.md (opens in a new tab)references/macos-scenes.md (opens in a new tab)references/macos-views.md (opens in a new tab)references/macos-window-styling.md (opens in a new tab)references/performance-patterns.md (opens in a new tab)references/previews.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (sickn33/agentic-awesome-skills) — no native marketplace selected
npx claudepluginhub p/sickn33-antigravity-awesome-skills3,195 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.3 plugins in 2 repositories ship this exact skill · first indexed Oct 24, 2026
Other plugins' skills for the same job