Collection of Claude Code Subagents for Magento 2 development. Optimizes workflows for developers, merchants, and agencies. Integrates with Magento 2 backend, Git, and CI/CD pipelines. Accelerates development, debugging, and customization.
git clone https://github.com/rubenzantingh/claude-code-magento-agents.gitMagento 2 Claude Code Agents is a comprehensive collection of 30+ expert agents organized into 7 functional categories: core development, frontend development, backend development, performance and security, language specialists, infrastructure, and ecommerce specialists. Each agent provides deep domain expertise for specific aspects of Magento 2 development and can delegate to specialists automatically through a hierarchical architecture. The agents include tool access for search, system operations, and complex workflow orchestration, enabling developers and agencies to optimize workflows across code review, theme creation, API development, performance analysis, deployment automation, and more. Designed for enterprise environments, these agents follow current industry standards and Magento best practices.
1. **Prepare Your Environment** - Ensure you have Claude Code installed and configured with access to your Magento 2 project - Verify your project is a valid Magento 2 installation with proper file permissions - Install the `claude-code-magento-agents` extension via your AI assistant's plugin system 2. **Configure the Agents** - Open your project in your preferred IDE or terminal - Load the `claude-code-magento-agents` suite using your AI assistant's command interface - Verify the agents have proper access to your Magento 2 codebase and database - Set your working branch using `git checkout [BRANCH_NAME]` before starting 3. **Execute Tasks** - Use the prompt template to define your specific task (e.g., create a module, debug an issue, optimize performance) - Specify your Magento mode (developer/production) to ensure appropriate debugging and caching behavior - Include your test command to verify changes after implementation - Monitor the AI agents' progress through your terminal or IDE output 4. **Review and Validate** - After the agents complete their tasks, review all generated files and changes - Run your specified test command to verify functionality - Check the git status to review all modified files before committing - Use `php bin/magento setup:di:compile` if you modified dependency injection configurations 5. **Commit and Deploy** - Commit all changes with descriptive messages using `git commit -m "[YOUR_COMMIT_MESSAGE]"` - Push your changes to your specified branch - For complex tasks, consider creating a pull request for team review - Deploy to your staging environment for further testing before production release **Pro Tips:** - Always work in a feature branch to isolate changes - Use the `developer` mode for debugging and the `production` mode for final testing - Include database operations in your test commands to verify schema changes - For UI-related tasks, specify both backend and frontend file paths in your prompt
Code review and debugging across Magento 2 projects
Frontend theme development using Hyvä and Luma frameworks
Backend API and cron job development
Performance optimization through caching and indexing analysis
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/rubenzantingh/claude-code-magento-agentsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use the claude-code-magento-agents to [TASK] for my Magento 2 [STORE_URL] project. The project root is located at [PROJECT_PATH]. Ensure all changes are committed to the [BRANCH_NAME] branch with descriptive commit messages. Include [MAGENTO_MODE] (developer/production) in your approach. Verify the changes work by running [TEST_COMMAND] after implementation.
### Magento 2 Development Task: Implement Custom Product Attribute
**Project Context:**
Store URL: `https://fictional-fashion.com`
Project Path: `/home/user/projects/fashion-store`
Magento Mode: Developer
Branch: `feature/custom-attribute-implementation`
Test Command: `php bin/magento setup:upgrade && php bin/magento cache:clean`
**Task Execution:**
1. **Agent Deployment:**
- Activated the `claude-code-magento-agents` suite with the `attribute_manager` subagent
- Loaded the project configuration from `/home/user/projects/fashion-store/app/etc/env.php`
- Verified Magento version compatibility (Magento 2.4.6)
2. **Attribute Creation:**
- Generated a custom product attribute `fashion_color_swatch` with the following specifications:
```json
{
"attribute_code": "fashion_color_swatch",
"frontend_label": "Fashion Color Swatch",
"frontend_input": "select",
"source_model": "Magento\Eav\Model\Entity\Attribute\Source\Table",
"backend_type": "int",
"is_required": false,
"is_user_defined": true,
"is_global": true,
"is_visible": true,
"is_searchable": true,
"is_filterable": true,
"is_comparable": true,
"is_visible_on_front": true,
"used_in_product_listing": true,
"option": {
"values": [
"Crimson Red",
"Emerald Green",
"Midnight Blue",
"Golden Yellow"
]
}
}
```
- Applied the attribute to the `Default` attribute set
- Generated the necessary upgrade scripts in `/home/user/projects/fashion-store/app/code/Fictional/Fashion/Setup/UpgradeData.php`
3. **Code Generation:**
- Created a new module `Fictional_Fashion` with registration file and module.xml
- Implemented a custom product grid column renderer at `/home/user/projects/fashion-store/app/code/Fictional/Fashion/Block/Adminhtml/Product/Helper/Form/ColorSwatch.php`
- Added frontend templates for the swatch display in `/home/user/projects/fashion-store/app/design/frontend/Fictional/fashion/Magento_Catalog/templates/product/view/color-swatch.phtml`
4. **Database Updates:**
- Executed the upgrade script via CLI: `php bin/magento setup:upgrade`
- Verified the new attribute exists in `eav_attribute` table with ID `150`
- Confirmed the attribute options are properly stored in `eav_attribute_option` and `eav_attribute_option_value` tables
5. **Frontend Integration:**
- Modified the product detail page template to display the color swatch below the product name
- Added CSS styling for the swatch display in `/home/user/projects/fashion-store/app/design/frontend/Fictional/fashion/web/css/fashion.css`
- Implemented JavaScript to handle swatch selection and update the product image accordingly
6. **Testing & Validation:**
- Verified the attribute appears in the Magento admin panel under Stores > Attributes > Product
- Tested attribute display on product pages for both configurable and simple products
- Confirmed the swatch selection updates the product image as expected
- Checked that the attribute is properly indexed for search and filtering
7. **Version Control:**
- Committed changes with message: "feat: add custom color swatch attribute for fashion products"
- Pushed to `feature/custom-attribute-implementation` branch
- Included all relevant files:
- `app/code/Fictional/Fashion/`
- `app/design/frontend/Fictional/fashion/`
- `app/etc/config.php` (updated)
- `composer.json` (updated)
**Results:**
- The new `Fashion Color Swatch` attribute is now available for all products
- Customers can visually select colors that update the product image
- The attribute is fully searchable and filterable in the catalog
- Admin users can manage color options through the standard Magento attribute interface
**Next Steps:**
- Deploy to staging environment for further testing
- Create a product attribute set specifically for fashion items
- Consider implementing bulk attribute assignment for existing productsSafe collectibles marketplace
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
The AI automation platform built for everyone
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan