
magento-issue-debugger
Systematically investigates, diagnoses, and resolves complex Magento 2 technical problems. Use when debugging issues, investigating bugs, analyzing performance problems, resolving errors, or troubleshooting system failures. Masters log analysis, performance profiling, and root cause analysis.
- Installs
- 256
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-issue-debugger- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads magento-issue-debugger automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Magento 2 Issue Debugger
Expert specialist in systematically investigating, diagnosing, and resolving complex technical problems across all layers of the Magento stack.
When to Use
- Debugging production issues
- Investigating bugs and errors
- Analyzing performance problems
- Resolving system failures
- Troubleshooting integration issues
- Diagnosing cache or indexing problems
Debugging Methodologies
Systematic Investigation
- Problem Assessment: Establish consistent steps to reproduce the problem
- Environment Documentation: Catalog system configuration and environment details
- Impact Analysis: Determine scope, frequency, and business impact
- Timeline Analysis: Establish when the issue started and what changed
- Isolation Testing: Disable modules and features to isolate the issue
Root Cause Analysis
- Hypothesis Testing: Form and test theories methodically
- Data Collection: Gather logs, configuration, and performance metrics
- Code Analysis: Review recent code changes and related modules
- Database Investigation: Check for data corruption or migration issues
- Deep Dive: Dig deep to find underlying causes rather than treating symptoms
Issue Investigation Process
1. Problem Assessment
- Issue Reproduction: Establish consistent steps to reproduce
- Environment Documentation: Catalog system configuration
- Impact Analysis: Determine scope and business impact
- Timeline Analysis: Establish when issue started
- User Impact: Understand how issue affects different user types
2. Data Collection
- Log Gathering: Collect relevant logs from all system components
- Magento logs:
var/log/ - PHP error logs
- Web server logs (Apache/Nginx)
- Database slow query logs
- Magento logs:
- Configuration Review: Examine module configurations and system settings
- Code Analysis: Review recent code changes and related modules
- Database Investigation: Check for data corruption or migration issues
- Performance Metrics: Gather timing and resource usage data
3. Systematic Debugging
- Debug Mode: Enable Magento debug mode for detailed error reporting
bin/magento deploy:mode:set developer - Xdebug Integration: Use step-through debugging for complex logic issues
- Profiling Tools: Use Blackfire, XHProf, or similar tools for performance issues
- Database Debugging: Enable query logging and analyze database interactions
- Isolation Testing: Disable modules to isolate the issue
4. Resolution Implementation
- Fix Development: Implement appropriate fixes based on root cause analysis
- Testing Strategy: Develop comprehensive test plans for verification
- Rollback Planning: Prepare rollback procedures for production fixes
- Documentation: Document findings, solutions, and prevention strategies
- Monitoring Setup: Implement monitoring to prevent issue recurrence
Common Issue Categories
Performance Issues
- Slow Page Loading: Identify bottlenecks in frontend and backend processing
- Database Performance: Optimize queries, indexes, and database configuration
- Memory Issues: Debug memory leaks and high memory usage
- Cache Problems: Resolve cache invalidation and cache warming issues
- Frontend Performance: Debug JavaScript errors and CSS rendering issues
Functional Bugs
- Checkout Issues: Debug payment processing, shipping, and order placement
- Product Display: Resolve catalog, search, and product page problems
- Admin Panel Issues: Fix backend functionality and configuration problems
- Extension Conflicts: Identify and resolve module compatibility issues
- API Problems: Debug REST and GraphQL API endpoints
System-Level Issues
- Installation Problems: Resolve setup and upgrade issues
- Configuration Errors: Fix system and module configuration problems
- File Permission Issues: Resolve file system and directory permission problems
- Cron Job Failures: Debug scheduled task execution problems
- Email Issues: Resolve email sending and template problems
Security Issues
- Access Control: Debug permission and ACL issues
- Authentication Problems: Resolve login and session issues
- CSRF Failures: Debug form key validation problems
- SQL Injection: Identify and fix vulnerable queries
- XSS Vulnerabilities: Fix output escaping issues
Debugging Tools & Techniques
Log Analysis
- Magento Logs:
var/log/exception.log,var/log/system.log - PHP Error Logs: Check PHP-FPM or Apache error logs
- Web Server Logs: Analyze Apache/Nginx access and error logs
- Database Logs: Review slow query logs and database errors
- Custom Logging: Implement custom logging for specific issues
Performance Profiling
- Blackfire: Performance profiling and optimization
- XHProf: PHP profiling tool
- New Relic: APM monitoring
- Database Profiling: Enable query logging
- Frontend Profiling: Browser DevTools performance analysis
Debugging Commands
# Enable developer mode
bin/magento deploy:mode:set developer
# Clear cache
bin/magento cache:clean
bin/magento cache:flush
# Reindex
bin/magento indexer:reindex
# Check compilation
bin/magento setup:di:compile
# Check static content
bin/magento setup:static-content:deploy
# Check database
bin/magento setup:db:status
Code Debugging
- Xdebug: Step-through debugging
- var_dump/die: Quick debugging (remove before production)
- Magento Logger: Use
\Psr\Log\LoggerInterfacefor logging - Exception Handling: Proper exception catching and logging
- Error Reporting: Configure error reporting levels
Best Practices
Prevention
- Comprehensive Testing: Write unit, integration, and functional tests
- Code Reviews: Regular code reviews to catch issues early
- Monitoring: Implement monitoring and alerting
- Logging: Comprehensive logging strategy
- Documentation: Maintain clear documentation
Resolution
- Root Cause: Always fix root cause, not symptoms
- Testing: Test fixes thoroughly before deployment
- Documentation: Document the issue and resolution
- Communication: Communicate with stakeholders
- Monitoring: Monitor after fix deployment
References
Focus on systematic investigation to identify root causes and implement lasting solutions.
FAQ
What does the magento-issue-debugger skill do?
Systematically investigates, diagnoses, and resolves complex Magento 2 technical problems. Use when debugging issues, investigating bugs, analyzing performance problems, resolving errors, or troubleshooting system failures. Masters log analysis, performance profiling, and root cause analysis.
How do I install magento-issue-debugger?
Run npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-issue-debugger in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magento-issue-debugger/ (personal) or .claude/skills/magento-issue-debugger/ (project).
Which AI agents can use magento-issue-debugger?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is magento-issue-debugger safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains magento-issue-debugger?
It is published by maxnorm in maxnorm/magento2-agent-skills. It has 256 recorded installs.
More from maxnorm/magento2-agent-skills
magento-hyva-specialist
maxnorm/magento2-agent-skills
Develops high-performance Magento 2 storefronts using Hyvä theme framework. Use when working with Hyvä themes, Alpine.js, Tailwind CSS, or modern frontend development. Masters Alpine.js architecture, Tailwind CSS styling, and performance optimization for blazing-fast e-commerce experiences.
magento-code-reviewer
maxnorm/magento2-agent-skills
Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.
magento-module-developer
maxnorm/magento2-agent-skills
Creates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new functionality, creating extensions, or building Magento 2 components. Masters dependency injection, service contracts, repository patterns, and module architecture.
magento-performance-analyst
maxnorm/magento2-agent-skills
Conducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database queries, or improving system scalability. Masters profiling tools, database optimization, and enterprise-scale performance tuning.
magento-frontend-developer
maxnorm/magento2-agent-skills
Open the skill to read its SKILL.md instructions.
magento-xml-specialist
maxnorm/magento2-agent-skills
Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.