magento/magento2-phpstorm-plugin/magento-inspect
Claude Code and agent skill by magento/magento2-phpstorm-plugin
- community
Checking that the SKILL.md file is still in the repository.
Inspect Magento 2 or Adobe Commerce configuration, discover project CLI wrappers and installed n98-magerun2 commands, configure native magerun MCP access, and analyze backward or upgrade compatibility through the JetBrains Magento MCP tools.
Install
npx vskill@latest install magento/magento2-phpstorm-plugin/magento-inspectSKILL.md
Magento Inspect
Use this skill for Magento or Adobe Commerce configuration, CLI/runtime discovery, and compatibility analysis in an opened JetBrains IDE project.
- For source configuration lookups, use
magento_inspectwith the preferred flow below. - For project command discovery or n98-magerun2 metadata, use the CLI workflow below. Filesystem discovery alone does not require a running container.
- For backward compatibility or upgrade analysis, use
magento_compatibilitywith the compatibility workflow below.
CLI Environment and n98-magerun2
Read this workflow when the task needs shell commands, runtime inspection, or magerun integration. Source-only lookups need no CLI probes.
Select the project runtime
- Call
describe_magento_cli_environmentfor the intended IDE project. Check the configured Magento root, preferred CLI directory, and each script's selection and working directory. - Use the preferred script beside the nearest Docker Compose configuration inside the project. For a project with Compose at its root and Magento in
src/,./bin/magentocomes first;./src/bin/magentois a fallback. Without an in-project Compose directory, use the Magento directory. Do not search arbitrary parent directories or infer ownership from proximity. - Run the returned example syntax from its reported working directory. A displayed project-relative path such as
./src/bin/magentomay have an invocation of./bin/magentowithcwdset tosrc/; do not prependsrc/again. Keep source edits under the configured Magento root. Examples illustrate invocation syntax, not a request to execute the sample operation. - For DDEV, read the parsed project YAML settings and ordered overrides, their source files,
execPrefix, andcwd. Append the intended container command and its arguments toexecPrefix. It carries the configured project name andworking_dir.web;cwdis on the host.docrootis the web document root, whilecomposer_rootcontrolsddev composer. Discovery works without Magerun and does not prove the container or a command is available. Checkconfiguration.statusand coverage before using the prefix. - Use a fallback only when fresh discovery shows the preferred script is absent or no longer eligible. A failed command, stopped container, or missing dependency does not justify changing runtimes. Report the selected runtime and failure; resolve it within the user's task.
If a DDEV command needs interactive permissions, suggest running the CLI environment’s terminalGuidance.command in PhpStorm’s Terminal (IDE console) from terminalGuidance.cwd. This checks PHP through the configured DDEV invocation so the user can handle permission prompts. The IDE process also needs access to DDEV and Docker. Retry the intended operation after access is resolved.
Discover installed magerun commands
Use magento_magerun with typed arguments; it does not take parametersJson.
- Start with
mode: "status". With no project-local Magerun candidate, Magerun uses the shared DDEV CLI environment and looks formagerun2inside the container. It reads files and cached metadata without starting a process. CheckprojectRoot,magentoRoot,selected, andinvocation.detectedmeans a candidate was found;cachedmeans metadata was previously verified. Neither proves that the runtime is available now. A filename such asmagerunorn98-magerundoes not establish Magento 2 compatibility. - If the task needs available commands, use
mode: "commands"with a focusedsearchand a smalllimit(1–100). This verifies n98-magerun2 and reads the installed catalogue, including custom commands. FollownextOffsetonly as needed, keepingsearchandlimitunchanged;nextOffset: nullends pagination. Do not invent capabilities from a version number or a remembered command list. - For a relevant returned name or alias, use
mode: "command_help"withcommandset to that exact name. Read its returned arguments and options. Do not put shell syntax or command arguments incommand.
Example arguments to magento_magerun for finding system-information support:
If the catalogue contains sys:info, inspect its definition:
These modes inspect metadata; they do not execute sys:info or another application command. When the user's task requires execution, append the verified command and arguments to invocation.argv, preserving argument boundaries and invocation.cwd. The returned invocation can use php or a container launcher. Do not substitute a global binary, add a host --root-dir to a container invocation, or run sourceWrapper directly: a wrapper can contain installation/download steps that the metadata tool deliberately bypasses.
Reuse cached metadata while searching, paging, and reading help. It expires after five minutes and is invalidated by relevant local file changes. Use refresh: true when runtime/container contents changed or the user requests a fresh check; do not refresh every page. status with refresh only clears the cache; commands with refresh probes again.
Read status and message in the JSON text, even when MCP isError is absent or false. Successful metadata operations report status: "ok"; detection uses detected or cached. For not_found, invalid_configuration, missing_launcher, missing_installation, runtime_unavailable, unsupported_wrapper, or incompatible_tool, report the blocker without downloading tools, starting services, or trying an alternative runtime merely to obtain metadata. For unknown_command, check the installed catalogue and refresh only if it may have changed. Correct invalid_request arguments before retrying; other probe failures require inspecting the returned message. Host routing/type failures may be plain text or JSON-RPC errors rather than magerun JSON.
Native magerun MCP configuration
Use mode: "mcp_config" only when the task calls for native magerun MCP integration. The tool checks the installed server command and its filter support. With no include, it selects a small set of available inspection commands. If explicit filters are needed, use narrow, space-separated patterns in include and optional exclude, based on the installed catalogue.
For an installation that exposes sys:info, example arguments are:
Preserve the returned configuration command, argument array, cwd, and environment in a client that supports them. serverStarted: false and configurationWritten: false mean the tool only generated settings; report that distinction. Applying settings or starting the server is a separate action within the user's requested scope. If native MCP or filtering is unavailable, explain the limitation rather than guessing a server command or removing filters.
Compatibility Analysis
magento_compatibility requires the JetBrains PHP plugin.
For an upgrade check with a known scope, prefer mode: "upgrade" with the intended projectPath and exactly one moduleName or path. Omit targetVersion only when the user wants the next published feature release; provide the exact version otherwise. This preset defaults ignoreCurrentVersion and explainSuppressed to true, freezes the detected baseline and selected target, and returns the full scope/filter options in each nextCall. Follow nextStep/nextCall through preparation, readiness and analysis without reconstructing requests. outcome: "no_newer_release" means discovery found no newer feature release and no scan started. Verify project identity before continuing. Use the individual modes below when inspecting readiness, catalogs, or all target findings.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/magento-inspect/SKILL.md
Popularity
- Repository stars
- 472
- Repository forks
- 98
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/magento/magento2-phpstorm-plugin/magento-inspect)