magento-feature-developer — скилл для Claude Code
Скилл magento-feature-developer помогает проектировать и внедрять бизнес-функции для Magento 2: от сервисных контрактов и интеграций до тестов. Пригодится при создании модулей и расширении существующей функциональности.
MIT 207 установок ★ 33 обновлён 2026-01-24
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a claude-codeЧто делает magento-feature-developer
Скилл разбирает требования и предлагает структуру решения для Magento 2: модуль, сервисные контракты, DTO и репозитории. Он охватывает бизнес-логику, интеграции со сторонними API, обработку событий и административные настройки. Можно поручить ему спроектировать новый тип товара или процесс обработки заказов.
В рекомендациях также есть обработка ошибок, проверки доступа, кэширование и тестирование. Для проверки функций описаны PHPUnit unit-тесты, интеграционные и функциональные тесты. Это не готовый модуль: скилл задаёт подход к разработке, а код нужно внедрять в проект Magento.
Скилл доступен для Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI и OpenCode. При работе над интеграцией он предлагает учитывать существующие модули и контракты, поэтому проектные ограничения нужно включить в требования.
Какие задачи решает
- спроектировать модуль Magento 2 под бизнес-требования
- добавить сервисный контракт и слой репозиториев
- подключить сторонний API или синхронизацию данных
- покрыть бизнес-логику unit- и интеграционными тестами
Примеры запросов агенту
- Спроектируй модуль Magento 2 для программы лояльности с настройками в админке.
- Добавь интеграцию со сторонним API и опиши сервисный контракт.
- Составь план тестов для новой логики обработки заказов.
Как установить magento-feature-developer
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a claude-code2Вручную: положить файлы
~/.claude/skills/magento-feature-developer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/magento-feature-developer/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a codex2Вручную: положить файлы
.agents/skills/magento-feature-developer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a cursor2Вручную: положить файлы
.cursor/skills/magento-feature-developer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install maxnorm/magento2-agent-skills skills/magento-feature-developer2Вручную: положить файлы
.github/skills/magento-feature-developer/SKILL.md1Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a gemini-cli2Командой платформы
gemini skills install https://github.com/maxnorm/magento2-agent-skills --path skills/magento-feature-developerВручную: положить файлы
.devin/skills/magento-feature-developer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о magento-feature-developer
Как установить magento-feature-developer в Claude Code?
Выполните npx skills add maxnorm/magento2-agent-skills --skill magento-feature-developer -a claude-code. Файл скилла устанавливается в ~/.claude/skills/magento-feature-developer/SKILL.md.
Что делает magento-feature-developer?
Помогает разрабатывать функции Magento 2: проектировать модули, бизнес-логику, сервисные контракты и интеграции, а также планировать тестирование.
Какие тесты предлагает учитывать скилл?
В рекомендациях есть PHPUnit unit-тесты, интеграционные и функциональные проверки, а также тесты производительности и безопасности.
Исходный текст
SKILL.md · MIT
--- name: magento-feature-developer description: Implements business requirements as scalable, maintainable Magento 2 features. Use when developing custom functionality, implementing business logic, creating integrations, or building complex features. Masters service contracts, repository patterns, and enterprise-grade feature implementation. --- # Magento 2 Feature Developer Expert specialist in translating business requirements into robust, scalable technical solutions within the Magento ecosystem following Adobe Commerce best practices. ## When to Use - Implementing new business features - Developing custom functionality - Creating integrations with third-party systems - Building complex business logic - Extending existing Magento functionality ## Feature Development Process ### 1. Discovery & Planning - **Requirements Analysis**: Break down business requirements into technical specifications - **Stakeholder Interviews**: Gather comprehensive requirements from business users - **Technical Analysis**: Assess existing system capabilities and constraints - **Impact Assessment**: Evaluate effects on performance, security, and scalability - **Resource Planning**: Estimate development timeline and requirements ### 2. Architecture Design - **System Design**: Create high-level architecture diagrams and component relationships - **Database Design**: Plan entity relationships, indexes, and data migration strategies - **API Design**: Define service contracts and data transfer objects - **Integration Points**: Identify touchpoints with existing modules and third-party systems - **Performance Planning**: Design for scalability and optimal response times ### 3. Implementation Strategy - **Module Structure**: Organize code following Magento's module conventions - **Service Contracts**: Implement clean API interfaces for feature contracts - **Repository Pattern**: Build data access layers using Magento's repository pattern - **Configuration Management**: Implement admin configuration options where appropriate - **Error Handling**: Build robust error handling and logging mechanisms ### 4. Quality Assurance - **Unit Testing**: Write comprehensive PHPUnit tests for business logic - **Integration Testing**: Test feature integration with core Magento functionality - **Performance Testing**: Ensure features don't degrade system performance - **Security Review**: Validate security compliance and data protection ## Common Feature Types ### E-commerce Features - **Custom Product Types**: Implement specialized product configurations - **Pricing Rules**: Build complex pricing and discount logic - **Inventory Management**: Create advanced inventory tracking and allocation - **Order Processing**: Implement custom order workflows and fulfillment - **Customer Features**: Build loyalty programs, wishlists, and customer dashboards ### Administrative Features - **Reporting & Analytics**: Create custom reports and data visualization - **Bulk Operations**: Implement mass actions and data import/export - **Workflow Automation**: Build automated business processes - **Content Management**: Create custom content types and management interfaces - **User Management**: Implement role-based access and permission systems ### Integration Features - **Third-party APIs**: Connect with external services and platforms - **Data Synchronization**: Build real-time or batch data sync processes - **Webhook Integration**: Implement event-driven integrations - **File Processing**: Handle document uploads, processing, and storage - **Notification Systems**: Build email, SMS, and push notification features ## Development Patterns ### Service Contracts - Create interfaces in `Api/` directory - Implement clean API interfaces - Use data transfer objects (DTOs) for data exchange - Maintain backward compatibility ### Repository Pattern - Separate data access from business logic - Use repositories for all data operations - Implement proper error handling - Support transactions where needed ### Event/Observer Pattern - Dispatch events for extensibility - Implement observers for loose coupling - Use proper event naming conventions - Document event data structure ### Plugin System - Use plugins to extend functionality - Prefer before/after plugins over around plugins - Document plugin execution order ## Best Practices ### Code Organization - **Modular Design**: Keep features self-contained within dedicated modules - **Interface Segregation**: Use small, focused interfaces - **Dependency Injection**: Leverage Magento's DI container - **Configuration Management**: Use XML configurations for flexibility - **Namespace Organization**: Follow PSR-4 autoloading standards ### Performance Considerations - **Lazy Loading**: Implement lazy loading for expensive operations - **Caching Strategy**: Utilize appropriate cache types - **Database Optimization**: Use efficient queries and proper indexing - **Frontend Optimization**: Minimize JavaScript/CSS footprint - **Resource Management**: Monitor memory usage and execution time ### Security - **Input Validation**: Implement comprehensive input validation - **Output Escaping**: Ensure proper output sanitization - **CSRF Protection**: Implement form key validation - **Access Control**: Enforce proper permission checking - **Data Encryption**: Handle sensitive data appropriately ### Maintenance & Extensibility - **Backward Compatibility**: Ensure features work across Magento version upgrades - **Extension Points**: Provide hooks for other developers to extend features - **Configuration Options**: Allow customization without code modifications - **Migration Scripts**: Provide smooth upgrade paths - **Documentation**: Maintain comprehensive technical and user documentation ## Testing Strategy - **Unit Tests**: Test individual classes and methods - **Integration Tests**: Test module integration with core - **Functional Tests**: End-to-end test scenarios - **Performance Tests**: Validate performance under load - **Security Tests**: Test authentication, authorization, and data protection ## References - [Adobe Commerce Extension Development](https://developer.adobe.com/commerce/php/development/) - [Best Practices](https://developer.adobe.com/commerce/php/best-practices/) - [Service Contracts](https://developer.adobe.com/commerce/php/development/components/service-contracts/) Focus on creating features that meet immediate business needs while providing a foundation for future growth and customization.
© maxnorm · MIT · maxnorm/magento2-agent-skills