design-patterns

Explain SOLID principles and design patterns with Kotlin code examples.

1|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/maichanchinh/claude-skills --skill design-patterns-maichanchinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: design-patterns
Source: https://github.com/maichanchinh/claude-skills/tree/main/skills/design-patterns
Command: npx skills add https://github.com/maichanchinh/claude-skills --skill design-patterns-maichanchinh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write cleaner, more maintainable, and scalable Kotlin Android applications by providing guidance on SOLID principles and essential design patterns.

Core Features & Use Cases

  • SOLID Principles: Understand and apply Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles.
  • Core Design Patterns: Implement Repository, MVVM, and Clean Architecture patterns effectively.
  • Quick Reference: Access concise explanations and use cases for Creational, Structural, and Behavioral patterns.
  • Use Case: When designing a new feature, ensure adherence to SOLID principles and choose the most appropriate design patterns for robust architecture.

Quick Start

Explain the Single Responsibility Principle with a Kotlin code example.

Frequently Asked Questions about design-patterns

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

FAQPage Schema
How do I apply SOLID principles in Kotlin Android development?

To apply SOLID principles in Kotlin Android, you structure classes to honor Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. This Skill provides concise explanations and Kotlin code examples for each principle.

What is the best way to implement Repository and MVVM patterns in Kotlin?

Implementing Repository and MVVM patterns in Kotlin involves separating data sources from UI logic. This Skill guides you through architectural best practices to structure features using these patterns effectively.

When do I need to use creational, structural, or behavioral design patterns in Android?

You need creational, structural, or behavioral design patterns in Android when designing new features that require robust architecture. This Skill offers use-case scenarios to help you choose the most appropriate pattern.

How does Clean Architecture fit into a scalable Kotlin application?

Clean Architecture fits into a scalable Kotlin application by enforcing separation of concerns through distinct layers. This Skill facilitates understanding of Clean Architecture alongside MVVM and Repository patterns for maintainable code.

Can I get a quick reference for Kotlin code examples of design patterns?

Yes, you can access a quick reference for Kotlin code examples of design patterns. This Skill covers creational, structural, and behavioral patterns with concise explanations and specific use-case scenarios.