agentsclimarketplace

Ios performance

Skill ComeOnOliver/skillshub/skills/HoangNguyen0403/agent-skills-standard/ios-performance

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.

Install
npx -y skills add ComeOnOliver/skillshub --skill ios-performance

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Standards for Instruments, Memory Management, and Optimization. Use when profiling iOS apps with Instruments or optimizing memory and rendering. (triggers: **/*.swift, Instruments, Allocations, Leaks, dequeueReusableCell)

SKILL.md

1.5 KB, 281 tokens by cl100k_base, as published. Nobody here has run it

iOS Performance Standards

Priority: P0

Implementation Guidelines

Diagnostic Tools

  • Instruments: Regularly use Allocations and Leaks to detect memory issues.
  • Time Profiler: Identify heavy CPU tasks and Main Thread stalls.
  • Network instrument: Analyze request payload sizes and frequency.

Optimization

  • Table/Collection Views: Always use dequeueReusableCell and keep cellForRowAt logic lightweight.
  • Image Caching: Use SDWebImage or Kingfisher for remote assets to prevent redundant fetching and main-thread decoding. (Note: AsyncImage lacks built-in caching; prioritize third-party for lists).
  • Background threads: Offload expensive work (parsing, encryption) from the Main thread using GCD or Tasks.

Diagnostics

  • Compiler Warnings: Enable SWIFT_TREAT_WARNINGS_AS_ERRORS in Release builds.
  • Static Analyzer: Use Xcode's "Analyze" (Product > Analyze) to find logic errors.

Anti-Patterns

  • No parsing/processing on Main: Use background thread.
  • No redundant cache clears: Let system handle low-memory via AppDelegate.
  • No undetected retain cycles: Use Leaks instrument frequently.

References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.