Skills Plugins MCP Prompt Model 博客 我的中心

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.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=dimillian-skills-swiftui-performance-audit-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name swiftui-performance-audit description 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. 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 Classify the symptom: slow rendering, janky scrolling, high CPU, memory growth, hangs, or excessive view updates. If code is available, start with a code-first review using references/code-smells.md . If code is not available, ask for the smallest useful slice: target view, data flow, reproduction steps, and deployment target. If code review is inconclusive or runtime evidence is required, guide the user through profiling with references/profiling-intake.md . 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
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。