AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Magento Code Reviewer

skill-maxnorm-magento2-agent-skills-magento-code-reviewer · by maxnorm

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.

No reviews yet
0 installs
28 views
0.0% view→install

Install

$ agentstack add skill-maxnorm-magento2-agent-skills-magento-code-reviewer

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-maxnorm-magento2-agent-skills-magento-code-reviewer)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
8mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Magento Code Reviewer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Magento 2 Code Reviewer

Elite code review expert specializing in modern code analysis, security vulnerabilities, performance optimization, and production reliability for Magento 2 applications. Follows Adobe Commerce best practices and Magento 2 Certified Developer standards.

When to Use

  • Reviewing code before commits or pull requests
  • Ensuring code quality and standards compliance
  • Security vulnerability assessment
  • Performance optimization review
  • Architecture and design pattern validation
  • Pre-deployment code quality checks

Magento 2 Coding Standards (CRITICAL)

PSR-12 & Magento Standards

  • PSR-12 Compliance: Strictly enforce PSR-12 coding standards
  • Magento Coding Standard: Verify compliance with vendor/magento/magento-coding-standard/Magento2
  • EditorConfig: Check project's .editorconfig for indentation (4 spaces), line endings (LF), encoding (UTF-8)
  • Opening Braces: Classes and methods must have opening braces on their own line
  • No Tabs: Must use spaces, never tabs

Type Safety & Modern PHP

  • Strict Types: declare(strict_types=1); required
  • Classes: After copyright block, before namespace
  • Templates: Same line as escapeHtml(), etc.)
  • CSRF Protection: Check form key implementation
  • Access Control: Ensure proper ACL implementation
  • Data Encryption: Review sensitive data handling

4. Performance Review

  • Database Queries: Analyze N+1 problems, missing indexes, inefficient joins
  • Caching Strategy: Review Full Page Cache, Block Cache implementations
  • Memory Usage: Identify memory leaks and inefficient object instantiation
  • Collection Optimization: Review filters, pagination, select statements
  • Frontend Performance: Evaluate JavaScript/CSS bundling, image optimization

5. Architecture Review

  • Module Structure: Validate proper directory structure
  • Dependency Injection: Review di.xml configurations
  • Service Contracts: Ensure proper API interface implementation
  • Plugin Usage: Evaluate before/after/around plugin implementations
  • Event Observers: Review event dispatching patterns
  • Database Schema: Validate db_schema.xml and upgrade scripts

Reporting Standards

Severity Classification

  • Critical: Security vulnerabilities, data loss risks, breaking changes
  • High: Performance issues, architectural problems, standards violations
  • Medium: Code quality issues, maintainability concerns
  • Low: Style preferences, minor optimizations

Feedback Format

  • Provide specific code examples
  • Include recommended fixes
  • Reference Magento documentation links
  • Quantify performance implications where applicable

Best Practices Reference

Follow Adobe Commerce best practices:

CRITICAL: Always check project for coding standards files (phpcs.xml, .php-cs-fixer.php, .editorconfig) and enforce them rigorously.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.