By obadasemary
Clean Architecture template for SwiftUI + SPM apps on Swift 6.2 with default main-actor isolation, @Observable view models, protocol-first modules, service-locator DI, and Swift Testing.
An open-source Agent Skill that scaffolds and enforces a modular Clean Architecture for iOS apps built with SwiftUI and Swift Package Manager on Swift 6.2 with default main-actor isolation.
Install using npx skills:
npx skills add Obadasemary/ios-clean-architecture-skill
Then open your iOS project and ask:
Use the ios-clean-architecture skill to scaffold a new feature module with View, ViewModel, UseCase, Repository, and DI wiring.
The skill will set up layered SPM packages, protocol-first cross-module contracts, @Observable view models, Builder-based feature instantiation, and Swift Testing doubles — following the patterns documented in skills/ios-clean-architecture/SKILL.md.
@MainActor sprinkled across the codebase@Observable — modern state management in place of ObservableObject / @PublishedMockNetworkService, FakeFeedUseCase, SpyRouter-style doubles for isolated component verificationView → ViewModel → UseCase → Repository → NetworkService
Outer layers depend on inner layers, never the reverse. Views never touch repositories directly, view models never touch URLSession directly — every cross-layer call routes through a use case.
@MainActor manually in Swift 6.2 targets with default isolation enabled.URLSession or Repositories directly — route through UseCases..xcworkspace, not .xcodeproj alone.Works with Claude Code, Cursor, Copilot, and 40+ other agents:
npx skills add Obadasemary/ios-clean-architecture-skill
Install globally (available across all projects):
npx skills add Obadasemary/ios-clean-architecture-skill -g
Install to a specific agent only:
npx skills add Obadasemary/ios-clean-architecture-skill -a claude-code
/plugin marketplace add Obadasemary/ios-clean-architecture-skill
/plugin install ios-clean-architecture@ios-clean-architecture
To enable for everyone in a repository, add to your project's Claude Code configuration:
{
"enabledPlugins": {
"ios-clean-architecture@ios-clean-architecture": true
},
"extraKnownMarketplaces": {
"ios-clean-architecture": {
"source": {
"source": "github",
"repo": "Obadasemary/ios-clean-architecture-skill"
}
}
}
}
skills/ios-clean-architecture/ into your agent's skills directory.ios-clean-architecture skill.Useful docs: Claude Code Agent Skills
.claude-plugin/
marketplace.json # one-plugin marketplace catalog
plugin.json # plugin manifest pointing at ./skills/ios-clean-architecture
skills/
ios-clean-architecture/
SKILL.md # the skill content (Swift 6.2, Clean Architecture patterns)
README.md
LICENSE
.gitignore
ObservableObject / @Published to @ObservableIssues and PRs are welcome — especially real-world examples of the patterns applied in production apps, or clarifications to the constraints when Swift / SwiftUI evolve.
MIT. See LICENSE.
Created by Abdelrahman Mohamed (@Obadasemary).
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub obadasemary/ios-clean-architecture-skill --plugin ios-clean-architectureComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Create new skills, improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, or benchmark skill performance with variance analysis.
Unity Development Toolkit - Expert agents for scripting/refactoring/optimization, script templates, and Agent Skills for Unity C# development