ADD: mage ai command for AI assisted development setup#47
Open
allrude wants to merge 1 commit into
Open
Conversation
Prepares a Magento project for working with an AI coding agent: - local only git repository with a Magento aware .gitignore, so that vendor/, generated/ and app/etc/env.php are never committed - CLAUDE.md describing the deploy mode, the package-source symlink setup, and the selected code stack - package-source/*/* composer path repository, for roots that did not come from mage install - magento2-lsp MCP server registered at user scope Magento is the base. The frontend stack (luma, hyva, nft or none) and the Nebula admin theme are asked separately and default to whatever is already installed, so nothing project specific is assumed. Every step is idempotent and reports what it skipped, so the command is safe to run on an existing project. Also available as an optional prompt at the end of mage create. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
mage ai, a command that prepares a Magento project for working with an AI coding agent.What it does
git initif absent, plus a Magento aware.gitignore. Local only, no remote is ever added.CLAUDE.mdpackage-sourcesymlink setup, and the selected frontend stack.package-source/*/*composer path repository exists.Design notes
Magento is the base, and the frontend stack is asked separately (
luma,hyva, or none), defaulting to whateveris_hyva_installedreports.CLAUDE.mdonly documents the layer the project actually has, since a file describing a stack the project does not use is worse than no file.The
.gitignorematters more than it looks.app/etc/env.phpholds the database credentials and the crypt key, so agit add .on a fresh Magento root before any ignore rules exist is a credential leak waiting to happen.Every step is idempotent and reports what it skipped, so the command is safe on an existing project. It is also offered as an optional prompt at the end of
mage create, defaulting to no.npmandclaudeare called directly rather than through$NPM_CLI, because the MCP server has to live on the host even under Warden.Not included
mageitself is not rebuilt here. Per the history, the built artifact is only regenerated on Release commits.