modular-arsitektur

Generate Laravel module folder structures with Action, DTO, and Repository layers.

Updated May 11, 2026
One-click install
npx skills add https://github.com/irizqi/agent-skills --skill modular-arsitektur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modular-arsitektur
Source: https://github.com/irizqi/agent-skills/tree/main/skills/modular-arsitektur
Command: npx skills add https://github.com/irizqi/agent-skills --skill modular-arsitektur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the lack of consistency and maintainability in large Laravel codebases by enforcing a strict, modular directory structure and separation of concerns.

Core Features & Use Cases

  • Standardized Structure: Enforces a uniform layout including Action, Controller, DTO, and Repository layers for every module.
  • Architecture Review: Provides a checklist to ensure business logic remains decoupled from HTTP controllers.
  • Use Case: When starting a new feature in src/modules, use this skill to generate the required folder hierarchy and ensure your implementation follows the project's architectural standards.

Quick Start

Use the modular-arsitektur skill to generate the folder structure and architecture checklist for a new UserManagement module.

Frequently Asked Questions about modular-arsitektur

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

FAQPage Schema
How do I structure a Laravel module to keep business logic decoupled from HTTP controllers?

To decouple business logic from HTTP controllers in Laravel, structure your modules using strict separation of concerns with Actions, DTOs, and Repositories. This keeps data access and HTTP handling strictly separated from core business logic.

What is the best way to standardize Laravel codebases for maintainability?

The best way to standardize Laravel codebases for maintainability is enforcing a strict modular directory structure within a src/modules workspace, ensuring every feature follows uniform Action, Controller, DTO, and Repository layers.

How do I generate a new Laravel module folder hierarchy and architecture checklist?

You generate a new Laravel module folder hierarchy and architecture checklist by using modular design standards during feature creation. This automatically provides the required uniform layout and a checklist to review your implementation.

Does this modular architecture approach work for refactoring existing Laravel features?

Yes, this modular architecture approach works for refactoring existing Laravel features by facilitating the review and reorganization of business logic, data access layers, and HTTP handling into standardized Actions, DTOs, and Repositories.

When do I need to use DTOs and Repositories in a Laravel modular architecture?

You need to use DTOs and Repositories in a Laravel modular architecture when you want to enforce strict separation of concerns, ensuring that data transfer and data access layers remain completely decoupled from HTTP handling.