AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Swiftui Performance Audit — Скилл для ИИ-агентов | AI Рассвет

    Swiftui Performance Audit

    Audit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps, and to provide guidance for user run Instruments profiling when code review alone is insufficient.

    Скиллы для разработки#GitHub#dimillian/skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add dimillian/skills --skill swiftui-performance-audit
    Скачать ZIP
    Версия
    1.0.0+05ba982bfeb0
    Автор
    Владимир Ломтев
    Репозиторий
    dimillian/skills
    GitHub: dimillian/skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    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:

    • Target view or feature code.
    • Symptoms and exact reproduction steps.
    • Data flow: @State, @Binding, environment dependencies, and observable models.
    • Whether the issue shows up on device or simulator, and whether it was observed in Debug or Release.

    Ask the user to classify the issue if possible:

    • CPU spike or battery drain
    • Janky scrolling or dropped frames
    • High memory or image pressure
    • Hangs or unresponsive interactions
    • Excessive or unexpectedly broad view updates

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

    2. Code-First Review

    Focus on:

    • Invalidation storms from broad observation or environment reads.
    • Unstable identity in lists and ForEach.
    • Heavy derived work in body or view builders.
    • Layout thrash from complex hierarchies, GeometryReader, or preference chains.
    • Large image decode or resize work on the main thread.
    • Animation or transition work applied too broadly.

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

    Provide:

    • Likely root causes with code references.
    • Suggested fixes and refactors.
    • If needed, a minimal repro or instrumentation suggestion.

    3. Guide the User to Profile

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

    • A trace export or screenshots of the SwiftUI timeline and Time Profiler call tree.
    • Device/OS/build configuration.
    • The exact interaction being profiled.
    • Before/after metrics if the user is comparing a change.

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

    4. Analyze and Diagnose

    • Map the evidence to the most likely category: invalidation, identity churn, layout thrash, main-thread work, image cost, or animation cost.
    • Prioritize problems by impact, not by how easy they are to explain.
    • Distinguish code-level suspicion from trace-backed evidence.
    • Call out when profiling is still insufficient and what additional evidence would reduce uncertainty.

    5. Remediate

    Apply targeted fixes:

    • Narrow state scope and reduce broad observation fan-out.
    • Stabilize identities for ForEach and lists.
    • Move heavy work out of body into derived state updated from inputs, model-layer precomputation, memoized helpers, or background preprocessing. Use @State only for view-owned state, not as an ad hoc cache for arbitrary computation.
    • Use equatable() only when equality is cheaper than recomputing the subtree and the inputs are truly value-semantic.
    • Downsample images before rendering.
    • Reduce layout complexity or use fixed sizing where possible.

    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:

    • A short metrics table (before/after if available).
    • Top issues (ordered by impact).
    • Proposed fixes with estimated effort.

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

    References

    • Profiling intake and collection checklist: references/profiling-intake.md
    • Common code smells and remediation patterns: references/code-smells.md
    • Audit output template: references/report-template.md
    • Add Apple documentation and WWDC resources under references/ as they are supplied by the user.
    • Optimizing SwiftUI performance with Instruments: references/optimizing-swiftui-performance-instruments.md
    • Understanding and improving SwiftUI performance: references/understanding-improving-swiftui-performance.md
    • Understanding hangs in your app: references/understanding-hangs-in-your-app.md
    • Demystify SwiftUI performance (WWDC23): references/demystify-swiftui-performance-wwdc23.md

    Требования и возможности

    Источник пакета
    https://github.com/dimillian/skills/tree/05ba982bfeb0d77d3c97d4542b0ee15034d05f84/swiftui-performance-audit

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md50126cfb3f9f3e1938ac...
    agents/openai.yaml24264d8aba830402802...
    references/code-smells.md3753c9834da9bde40952...
    references/demystify-swiftui-performance-wwdc23.md18137cffafe390329347...
    references/optimizing-swiftui-performance-instruments.md1837f3980f725406cd41...

    Частые вопросы

    Как установить Swiftui Performance Audit?
    Используйте команду npx skills add dimillian/skills --skill swiftui-performance-audit или скачайте ZIP-архив.
    Можно ли скачать Swiftui Performance Audit бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add dimillian/skills --skill swiftui-performance-audit
    Скачать ZIP
    Версия
    1.0.0+05ba982bfeb0
    Автор
    Владимир Ломтев
    Репозиторий
    dimillian/skills
    GitHub: dimillian/skills
    Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.