mcpField
I
ios-expert

ios-expert

github.com/raintree-technologyDevelopment49 installs
Repository

About ios-expert

A skill for developers working with Swift and SwiftUI that reviews code, suggests refactors, explains preferred approaches, and offers architecture guidance. It combines coding and UI guidelines with a prescribed project structure and advice on native components, layout, and interaction.

Key features

  1. 01Code review against best practices
  2. 02Refactoring and improvement suggestions
  3. 03Architecture guidance
  4. 04SwiftUI project structure guidance
  5. 05UI layout and interaction guidelines

Use cases

  1. 01Reviewing SwiftUI code for maintainability
  2. 02Refactoring code to follow domain patterns
  3. 03Planning an iOS project structure

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/raintree-technology/claude-starter --skill ios-expert

After installing, type/ios-expertin Claude Code to confirm it loaded.

Details

From the project README

Ios Expert

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. - 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 ### 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.
Example usage: ``` User: "Review this code for ios best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ```

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.

Comments

Markdown supported