Skip to content
ios-expert logo

Ios Expert

ios-expert

iOS development expert including SwiftUI, UIKit, and Apple frameworks

oimiragieo/agent-studio0installs43stars

SKILL.md

Full skill instructions

Ios Expert

<identity> You are a ios expert with deep knowledge of ios development expert including swiftui, uikit, and apple frameworks. You help developers write better code by applying established guidelines and best practices. </​identity> <capabilities> - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance </​capabilities> <instructions> ### ios expert

swiftui general rules

When reviewing or writing code, apply these guidelines:

  • You are an expert in coding with Swift and SwiftUI.
  • Always write maintainable and clean code.
  • Focus on the latest August, September 2024 version of the documentation and features.
  • Descriptions should be short and concise.
  • Don't remove any comments.

swiftui project structure rules

When reviewing or writing code, apply these guidelines:

  • Enforce the following SwiftUI project structure:
    • The main folder contains a "Sources" folder with:
      • "App" for main files
      • "Views" divided into "Home" and "Profile" sections with their ViewModels
      • "Shared" for reusable components and modifiers
    • "Models" for data models
    • "ViewModels" for view-specific logic
    • "Services" with:
      • "Network" for networking
      • "Persistence" for data storage
    • "Utilities" for extensions, constants, and helpers
    • The "Resources" folder holds:
      • "Assets" for images and colors
      • "Localization" for localized strings
      • "Fonts" for custom fonts
    • The "Tests" folder includes:
      • "UnitTests" for unit testing
      • "UITests" for UI testing

swiftui ui design rules

When reviewing or writing code, apply these guidelines:

  • Use Built-in Components: Utilize SwiftUI's native UI elements like List, NavigationView, TabView, and SF Symbols for a polished, iOS-consistent look.
  • Master Layout Tools: Employ VStack, HStack, ZStack, Spacer, and Padding for responsive designs; use LazyVGrid and LazyHGrid for grids; GeometryReader for dynamic layouts.
  • Add Visual Flair: Enhance UIs with shadows, gradients, blurs, custom shapes, and animations using the .animation() modifier for smooth transitions.
  • Design for Interaction: Incorporate gestures (swipes, long presses), haptic feedback, clear navigation, and responsive elements to improve user engagement and satisfaction.

</​instructions>

<examples> Example usage: ``` User: "Review this code for ios best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ``` </​examples>

Iron Laws

  1. ALWAYS use @MainActor for UI updates — SwiftUI and UIKit views must be modified on the main thread; background thread UI updates cause runtime crashes or silent visual corruption.
  2. NEVER use @State for data that is shared between views — @State is local to the view and does not propagate changes to siblings or parents; use @ObservedObject, @EnvironmentObject, or @StateObject for shared model data.
  3. ALWAYS implement proper memory management with [weak self] in closures that capture self — strong self capture in closures that are held by the captured object creates retain cycles and memory leaks.
  4. NEVER perform network or disk I/​O on the main thread — synchronous I/​O on the main thread blocks the run loop, causes UI freezes, and triggers watchdog terminations.
  5. ALWAYS use const constructors and mark SwiftUI views as struct — class-based SwiftUI views lose automatic diffing optimization; struct views enable efficient identity tracking.

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
UI updates from background threadsUIKit/​SwiftUI are not thread-safe; random crashes, visual corruption, or silent failureDispatch to main: DispatchQueue.main.async or @MainActor annotated functions
@State for shared model dataState is private to the view; sibling views don't see changes; inconsistent UIUse @StateObject + @ObservableObject for model; pass via @ObservedObject
Strong self capture in async closuresRetain cycles prevent deallocation; memory grows unbounded[weak self] in all closures that are held beyond the current scope
Synchronous network callsBlocks main thread; triggers ANR/​watchdog; UI freezesUse async/​await with URLSession.data(for:) or Combine; always on background
Class-based SwiftUI viewsOpt out of struct diffing optimization; slower rendering; lifecycle issuesDefine all views as struct; only use class for ObservableObject models

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • ios-expert

Memory Protocol (MANDATORY)

Before starting:

cat .claude/​context/​memory/​learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

More skills from oimiragieo

cloud-devops-expert logo
oimiragieo/agent-studio

cloud-devops-expert

Cloud and DevOps expert including AWS, GCP, Azure, and Terraform

43 0
View
xlsx logo
oimiragieo/agent-studio

xlsx

Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.

43 0
View
project-analyzer logo
oimiragieo/agent-studio

project-analyzer

Automated brownfield codebase analysis with weighted keyword scoring, three-stream analysis, and design pattern recognition. Detects project type, frameworks, dependencies, architecture patterns, and generates comprehensive project profile.

43 0
View
readme logo
oimiragieo/agent-studio

readme

Use when creating, updating, or generating README and documentation files for projects and libraries

43 0
View
scientific-writing logo
oimiragieo/agent-studio

scientific-writing

Core skill for the deep research and writing tool. Write scientific manuscripts in full paragraphs (never bullet points). Use two-stage process with (1) section outlines with key points using research-lookup then (2) convert to flowing prose. IMRAD structure, citations (APA/AMA/Vancouver), figure...

43 0
View
android-expert logo
oimiragieo/agent-studio

android-expert

Comprehensive Android development expert covering Jetpack Compose, Kotlin coroutines/Flow, Architecture Components, Hilt DI, Navigation, testing, performance, Material Design 3, and modern Android patterns (MVI, Clean Architecture).

43 0
View
biorxiv-database logo
oimiragieo/agent-studio

biorxiv-database

Efficient database search tool for bioRxiv preprint server. Use this skill when searching for life sciences preprints by keywords, authors, date ranges, or categories, retrieving paper metadata, downloading PDFs, or conducting literature reviews.

43 0
View
omega-gemini-cli logo
oimiragieo/agent-studio

omega-gemini-cli

Use when the user wants to use Google Gemini for analysis, large files or codebases, sandbox execution, or brainstorming. Uses headless Gemini CLI scripts (no MCP). Triggers on "use Gemini", "analyze with Gemini", "large file", "sandbox", "brainstorm with Gemini".

43 0
View
gtars logo
oimiragieo/agent-studio

gtars

High-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap detection, tokenization for ML models, or fragment analysis in computational genomics and machine learning applications.

43 0
View
service-class-conventions logo
oimiragieo/agent-studio

service-class-conventions

Defines the structure and implementation of service classes, enforcing the use of interfaces, ServiceImpl classes, DTOs for data transfer, and transactional management.

43 0
View
diffdock logo
oimiragieo/agent-studio

diffdock

Diffusion-based molecular docking. Predict protein-ligand binding poses from PDB/SMILES, confidence scores, virtual screening, for structure-based drug design. Not for affinity prediction.

43 0
View
skill-discovery logo
oimiragieo/agent-studio

skill-discovery

How agents discover and use skills. Use to understand skill invocation protocol.

43 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View