di-and-architecture

Community

Ensure consistent DI and architecture.

AuthorAdhamHashim
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces consistent Dependency Injection (DI) practices and a clear layering architecture within the Flutter_Base project, preventing manual service instantiation and ensuring maintainability.

Core Features & Use Cases

  • Standardized DI: Ensures all services (Cubits, UseCases, Repositories) are injected using the injector<T>() function, not manually constructed.
  • Layered Architecture Enforcement: Maintains strict separation between Presentation, Domain, and Data layers, defining responsibilities for each.
  • Endpoint Management: Centralizes API endpoints in ApiConstants to avoid hardcoding.
  • Use Case: When adding a new feature, this Skill guides developers to correctly register new Cubits and UseCases with the DI container and structure their code according to the established layers.

Quick Start

Run the build_runner build command to generate necessary injectable files after adding a new Cubit or UseCase.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: di-and-architecture
Download link: https://github.com/AdhamHashim/Flutter_Base/archive/main.zip#di-and-architecture

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.