---
title: "Implement, review, and optimize SwiftUI code with trace-backed diagnostics"
description: "Guide SwiftUI implementation and refactoring with current Apple patterns, then analyze Instruments traces to diagnose hangs, hitches, and expensive view updates."
verification: "security_reviewed"
source: "https://github.com/AvdLee/SwiftUI-Agent-Skill/tree/main/swiftui-expert-skill"
author: "Antoine van der Lee"
publisher_type: "individual"
category:
  - "Library & API Reference"
framework:
  - "Custom Agents"
---

# Implement, review, and optimize SwiftUI code with trace-backed diagnostics

Guide SwiftUI implementation and refactoring with current Apple patterns, then analyze Instruments traces to diagnose hangs, hitches, and expensive view updates.

## Prerequisites

Xcode Instruments traces; SwiftUI source files; custom skill-capable agent client

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
Copy the skill folder into your agent client’s local skills path, then invoke it for SwiftUI implementation, review, or .trace analysis tasks.
```

## Documentation

- https://github.com/AvdLee/SwiftUI-Agent-Skill

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/implement-review-and-optimize-swiftui-code-with-trace-backed-diagnostics/)
