Swiftui performance audit

From openai/plugins · View interactive version

Swiftui performance audit is an AI agent skill from the GitHub repository openai/plugins. Audit SwiftUI runtime performance from code first. Use when diagnosing slow rendering, janky scrolling, expensive updates, or profiling needs.

How to use this skill

Skill file

SwiftUI Performance Audit

Quick start

Use this skill to diagnose SwiftUI performance issues from code first, then request profiling evidence when code review alone cannot explain the symptoms.

Workflow

  1. Classify the symptom: slow rendering, janky scrolling, high CPU, memory growth, hangs, or excessive view updates.
  2. If code is available, start with a code-first review using references/code-smells.md.
  3. If code is not available, ask for the smallest useful slice: target view, data flow, reproduction steps, and deployment target.
  4. If code review is inconclusive or runtime evidence is required, guide the user through profiling with references/profiling-intake.md.
  5. Summarize likely causes, evidence, remediation, and validation steps using references/report-template.md.

1. Intake

Collect:

Ask the user to classify the issue if possible:

For the full profiling intake checklist, read references/profiling-intake.md.

2. Code-First Review

Focus on:

Use references/code-smells.md for the detailed smell catalog and fix guidance.

Provide:

3. Guide the User to Profile

If code review does not explain the issue, ask for runtime evidence:

Use references/profiling-intake.md for the exact checklist and collection steps.

4. Analyze and Diagnose

5. Remediate

Apply targeted fixes:

Use references/code-smells.md for examples, Observation-specific fan-out guidance, and remediation patterns.

6. Verify

Ask the user to re-run the same capture and compare with baseline metrics.

Summarize the delta (CPU, frame drops, memory peak) if provided.

Outputs

Provide:

Use references/report-template.md when formatting the final audit.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.