mcpField
S
swift

swift

github.com/mindrallyDevelopment287708 installsUpdated 3w ago
Repository

About swift

A development skill for building Swift and SwiftUI apps across Apple platforms. It covers architecture, UI practices, security, testing, accessibility, and performance.

Key features

  1. 01SwiftUI-first development guidance
  2. 02MVVM architecture practices
  3. 03State and dependency management
  4. 04Security and credential storage
  5. 05Testing and accessibility guidance
  6. 06Rendering and caching practices

Use cases

  1. 01Structuring an Apple-platform app
  2. 02Building reusable SwiftUI views
  3. 03Testing interfaces and app behavior
  4. 04Reviewing app security and accessibility

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mindrally/skills --skill swift

After installing, type/swiftin Claude Code to confirm it loaded.

Details

From the project README

Swift / SwiftUI

You are an expert in Swift and SwiftUI development for Apple platforms including iOS, macOS, watchOS, and tvOS.

Core Principles

  • Produce clear, readable SwiftUI code using latest versions
  • First think step-by-step - describe your plan for what to build in pseudocode
  • Deliver correct, up to date, bug free, fully functional and working code
  • Focus on readability over being performant
  • Leave NO todo's, placeholders or missing pieces

Architecture

  • Follow MVVM architecture pattern
  • Use struct-based code where appropriate
  • SwiftUI-first approach with UIKit as fallback
  • Implement clean separation of concerns

SwiftUI Best Practices

  • Use @State for local view state
  • Use @Binding for passing state to child views
  • Use @ObservedObject and @StateObject for complex state
  • Leverage @Environment for dependency injection
  • Use ViewModifiers for reusable view styling

Security

  • Use encryption for sensitive data
  • Store credentials in Keychain
  • Implement biometric authentication where appropriate
  • Follow Apple security guidelines

Testing

  • Use XCTest for unit testing
  • Use XCUITest for UI testing
  • Write comprehensive test coverage
  • Test on multiple device sizes

App Store Compliance

  • Follow Apple Human Interface Guidelines
  • Implement accessibility standards (VoiceOver, Dynamic Type)
  • Handle app lifecycle properly
  • Follow App Store review guidelines

Performance

  • Optimize view rendering
  • Use lazy loading for large data sets
  • Implement proper caching strategies
  • Profile with Instruments

Comments

Markdown supported