What does a good /scaffold-feature command look like for Magento?
Categories:
Claude — Slash-Commands
Three sections. (1) Args: feature name, e.g. VendorRegistry. (2) Steps: explicit list — "Generate etc/module.xml, registration.php, etc/di.xml with the preference, the Api interface, the Repository, the Model, the ResourceModel, the Collection, an etc/db_schema.xml for the table, and a Setup/Patch/Data/Install<Feature>Seed.php stub." (3) Verify: "Run php -l on each PHP file, run bin/magento setup:upgrade, confirm the table exists." The verify step is what makes the command idempotent — without it you'll re-scaffold on top of an existing module and overwrite work.
Was this helpful?