magento-model-developer

Design Magento 2 data models with entities, repositories, and migrations.

26|4|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-model-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-model-developer
Source: https://github.com/maxnorm/magento2-agent-skills/tree/main/skills/magento-model-developer
Command: npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-model-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designs and implements robust Magento 2 data layer architectures to enable scalable, maintainable data models and access layers across modules.

Core Features & Use Cases

  • Entity & Schema Design: Create entity models, resource models, and database schemas using Magento conventions.
  • Repository Pattern: Implement clean data access layers and service contracts for entities.
  • Collection & Performance: Build optimized collections with filters and pagination; plan migrations and data integrity strategies.
  • Use Case: When introducing a new domain entity, such as a custom product attribute, define models, repositories, and migrations to ensure consistency.

Quick Start

Design and implement a scalable Magento 2 data model including entity, resource model, collection, and repository patterns for a new domain entity.

Frequently Asked Questions about magento-model-developer

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

FAQPage Schema
How do I design a scalable Magento 2 data model for a custom entity?

To design a scalable Magento 2 data model, you implement entity models, resource models, and database schemas using Magento conventions, ensuring proper typing and service contracts for data access.

What is the best way to implement the repository pattern in Magento 2?

The repository pattern in Magento 2 is implemented by creating clean data access layers and service contracts for entities, satisfying Magento conventions for repository implementations and data integrity.

When do I need a migration and resource model for a Magento 2 domain entity?

You need a migration and resource model for a Magento 2 domain entity when introducing new schemas or custom attributes, ensuring database consistency and optimized data access across modules.

How do I build optimized collections with filters and pagination in Magento 2?

Building optimized collections in Magento 2 involves configuring resource models and collections with proper filters and pagination to solve data-layer challenges and improve performance.

Does this approach support service contracts and proper typing for Magento 2 repositories?

Yes, this approach supports service contracts and proper typing for Magento 2 repositories, satisfying Magento conventions for Entity, ResourceModel, Collection, and Repository implementations.