clean-architecture-review

Validate Clean Architecture adherence in iOS code across Presentation, Domain, and Data layers.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/daispacy/py-claude-marketplace --skill clean-architecture-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-architecture-review
Source: https://github.com/daispacy/py-claude-marketplace/tree/main/py-plugin/skills/clean-architecture-review
Command: npx skills add https://github.com/daispacy/py-claude-marketplace --skill clean-architecture-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your iOS apps adhere to Clean Architecture and MVVM, preventing common structural flaws like tangled layers and incorrect dependency flow. It saves developers from costly refactoring and maintenance headaches by catching issues early.

Core Features & Use Cases

  • Layer Validation: Automatically checks for correct separation of Presentation, Domain, and Data layers, ensuring proper boundaries.
  • Pattern Verification: Confirms MVVM, UseCase, Repository, and Dependency Injection (Swinject) patterns are correctly implemented throughout your codebase.
  • Use Case: When reviewing a new feature or refactoring an existing module, activate this Skill to get an instant report on architectural compliance, identifying critical violations like ViewModels directly calling APIs or containing business logic.

Quick Start

Review the Clean Architecture of the 'Payment' module in my iOS project.

Frequently Asked Questions about clean-architecture-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Clean Architecture in my iOS app?

Clean Architecture validation analyzes your iOS codebase to ensure Presentation, Domain, and Data layers are properly separated with correct dependency flow. It checks MVVM, UseCase, Repository, and dependency injection patterns, then reports compliance scores, violations, and refactoring steps to prevent tangled layers and maintenance issues.

Can I check if my iOS code follows MVVM and dependency injection patterns?

Yes. This validates MVVM implementation by confirming ViewModels don't contain UI logic or direct API calls, ensures UseCase pattern uses protocol + implementation separation, verifies Repository pattern boundaries, and checks constructor-based dependency injection via Swinject throughout your codebase.

What layer violations does Clean Architecture review catch in iOS projects?

It identifies violations like ViewModels calling APIs directly, business logic in the Presentation layer, Domain layer depending on UI frameworks, missing Repository pattern in Data layer, and incorrect dependency direction. Each violation is flagged with actionable refactoring guidance.

How do I know if my iOS module refactoring maintains architectural boundaries?

Run architecture review on your module to get an instant compliance report classifying files into Presentation, Domain, and Data layers, flagging any boundary crossings, and scoring adherence. Use it during refactoring checkpoints to catch issues before they compound.

Does this work with Swinject for dependency injection validation?

Yes. It specifically enforces constructor-based dependency injection patterns using Swinject, verifying that dependencies are properly resolved and injected rather than created inline, ensuring loose coupling and testability across your architecture.

What's the best way to catch architectural flaws before they require major refactoring?

Activate architecture review early during feature development and refactoring cycles. Regular validation catches layer violations, pattern mismatches, and dependency flow issues incrementally, reducing the cost of fixing structural problems later.