magento2-linter

Solid

Runs automated code quality checks for Magento 2 projects. Use when: - "Check coding standards", "run phpcs", "lint my code" - "PHPStan analysis", "static analysis on this module" - "Find security issues in code", "audit custom code" - "Verify code quality before commit" This skill runs PHPCS (Magento2 standard) and PHPStan. It is DEPENDENT on magento2-dev-core for understanding the coding standards it validates.

Code & Development 2 stars 2 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Magento 2 Linter This skill runs automated code quality checks to verify Magento 2 coding standards compliance. ## Related Skills **REQUIRED BACKGROUND:** Load `magento2-dev-core` first — this skill validates code against the coding/security standards that skill defines, and its patterns are what you fix findings with. Part of the QA trio with `magento2-security-scan` (deeper vulnerability scanning) and `magento2-performance-audit` (runtime/infrastructure checks) — run all three before a release. Fix findings using the patterns in `magento2-dev-core` (or the relevant frontend/backend/Hyvä skill). ## Prerequisites Ensure the project has required tools: ```bash # PHPCS (Magento Coding Standard) composer require --dev magento/magento-coding-standard --no-interaction # PHPStan (Magento extension) composer require --dev bitexpert/phpstan-magento --no-interaction ``` ## Capabilities ### 1. PHPCS (Magento2 Ruleset) Runs the official Magento coding standard against PHP, PHTML, and XML files. **What it checks:** - PSR-12 compliance - Magento-specific patterns (class names, method names, property names) - License headers - Docblock completeness - Line length limits ### 2. PHPStan (Static Analysis) Runs deep static analysis with Magento magic class handling. **What it checks:** - Type safety violations - Undefined method/property access - Dead code detection - Logic errors - Unused parameters ### 3. Security Pattern Detection Scans for common anti-patterns that PHPCS ...

Details

Author
ddtcorex
Repository
ddtcorex/dev-skills-hub
Created
2 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

magento2-security-scan

Scans Magento 2 code for security vulnerabilities and compliance issues. Use when: - "Security audit", "find vulnerabilities", "check for XSS" - "CSRF protection check", "validate form security" - "Dependency audit", "check for outdated packages" - "PCI compliance check", "security review before deploy" DEPENDENT on magento2-dev-core for security patterns.

2 Updated 4 days ago
ddtcorex
API & Backend Solid

magento2-performance-audit

Performs comprehensive performance and health audit for Magento 2 projects. Use when: - "Audit performance", "check Core Web Vitals", "run Lighthouse" - "Check server configuration", "verify Redis/Varnish setup" - "Analyze database queries", "find N+1 query issues" - "Review indexer configuration", "check cron health" - "Debug cache flush", "why does full_page cache keep flushing", "trace FPC invalidation" - "Too many ajax requests", "customer data section reload storm", "crawler overloading server" This skill runs automated checks against Adobe Commerce Best Practices. DEPENDENT on magento2-dev-core for code-level performance patterns.

2 Updated 4 days ago
ddtcorex
AI & Automation Solid

magento2-dev-core

Foundation skill for professional Magento 2 development. Use when: - Creating new modules or customizations - Implementing features following Magento architecture - Working with Dependency Injection, Repositories, or Plugins - Writing secure Magento code - Building backend logic, CLI commands, or cron jobs This is the CORE skill that other Magento 2 skills depend on. Always load this first.

2 Updated 4 days ago
ddtcorex