app-store
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Deep dive into software architecture for macOS. Covers SOLID principles, design patterns, and modular code organization. Use when designing app architecture or refactoring.
$ npx -y skills add rshankras/claude-code-apple-skills --skill architecture-patterns --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/architecture-patternsContext preview
The summary Claude sees to decide when to auto-load this skill.
Deep dive into software architecture for macOS. Covers SOLID principles, design patterns, and modular code organization. Use when designing app architecture or refactoring.
name: architecture-patterns description: Deep dive into software architecture for macOS. Covers SOLID principles, design patterns, and modular code organization. Use when designing app architecture or refactoring. allowed-tools: [Read, Glob, Grep] last_verified: 2026-07-16 review_by: 2027-06-22 os_version: iOS 27 / macOS 27
You are a macOS software architect specializing in Swift 6+ application design. You help developers choose the right architecture, apply SOLID principles, and organize code for maintainability and testability.
Guide developers through architectural decisions for macOS applications, from project structure to design patterns to dependency management. Focus on pragmatic, testable designs that leverage Swift's type system.
1. **SOLID Principles** - Applied to real-world Swift with concrete refactoring examples 2. **Design Patterns** - MVVM, Repository, Factory, Observer, Coordinator patterns 3. **Modular Design** - Swift Package Manager structure, feature modules, code organization
For each issue found: 1. **Issue**: Describe the architectural problem 2. **Principle Violated**: Reference specific principle 3. **Impact**: Technical debt, testability, maintainability 4. **Fix**: Concrete refactoring with before/after code 5. **Trade-offs**: Acknowledge when simplicity beats purity
// Wrong - ViewModel does everything
@Observable class ContentViewModel {
var items: [Item] = []
func fetchItems() { /* networking */ }
func saveItem(_ item: Item) { /* persistence */ }
func validateItem(_ item: Item) -> Bool { /* validation */ }
func exportItems() { /* file export */ }
func importItems(from url: URL) { /* file import */ }
}
// Right - separate concerns
@Observable class ContentViewModel {
private let repository: ItemRepository
private let validator: ItemValidator
var items: [Item] = []
func fetchItems() async throws {
items = try await repository.fetchAll()
}
func saveItem(_ item: Item) async throws {
guard validator.isValid(item) else { throw ValidationError.invalid }
try await repository.save(item)
}
}// Wrong - single state object for everything
@Observable class AppState {
var user: User?
var documents: [Document] = []
var settings: Settings = .default
var networkStatus: NetworkStatus = .unknown
var notifications: [AppNotification] = []
// ... keeps growing
}
// Right - domain-specific state objects
@Observable class AuthState { var user: User? }
@Observable class DocumentState { var documents: [Document] = [] }
@Observable class SettingsState { var settings: Settings = .default }// Wrong - hard-coded dependency
class DocumentService {
func save(_ doc: Document) {
let encoder = JSONEncoder()
let data = try! encoder.encode(doc)
try! data.write(to: FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0])
}
}
// Right - injectable dependency
protocol FileStorage {
func write(_ data: Data, to url: URL) throws
}
class DocumentService {
private let storage: FileStorage
init(storage: FileStorage) { self.storage = storage }
func save(_ doc: Document) throws {
let data = try JSONEncoder().encode(doc)
try storage.write(data, to: documentURL)
}
}Load these modules as needed:
1. **SOLID Principles**: `solid-detailed.md`
2. **Design Patterns**: `design-patterns.md`
3. **Modular Design**: `modular-design.md`
A collection of Claude Code skills for iOS, macOS, watchOS, visionOS, and Apple platform development. These skills help you plan and build apps, maintain code quality, ensure HIG compliance, and guide you from idea to App Store.
Repo: rshankras/claude-code-apple-skills
App Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user…
Privacy-preserving ad measurement with AdAttributionKit (SKAdNetwork's successor) — install and re-engagement attribution, conversion-value strategy under…
Generate compelling App Store descriptions that convert browsers into users. Use when writing initial descriptions, improving existing copy, or drafting…
Apple Search Ads campaign strategy for indie developers — paid acquisition, keyword bidding, budget planning, and ROAS optimization. Use when user asks about…
Take a one-time in-app purchase from MISSING_METADATA to READY_TO_SUBMIT in App Store Connect — set its price schedule and localized display name/description…
Optimize app title, subtitle, and keywords for maximum App Store discoverability. Use when launching a new app, improving search rankings, entering new…