create-backend-controller

Scaffolds Magento 2 backend admin controllers with ACL, routes, and UI integration.

15|1|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/ProxiBlue/claude-skills --skill create-backend-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-backend-controller
Source: https://github.com/ProxiBlue/claude-skills/tree/main/create-backend-controller
Command: npx skills add https://github.com/ProxiBlue/claude-skills --skill create-backend-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers to create a backend (adminhtml) controller in Magento 2 with proper ACL, routing, authorization, and admin UI integration, reducing boilerplate and ensuring secure admin flows.

Core Features & Use Cases

  • Scaffold Adminhtml controller actions that follow HTTP method interfaces and ACL requirements.
  • Generate supporting configuration: ACL (acl.xml), routes (adminhtml/routes.xml), admin menu (menu.xml), and sample controller actions (Index, Save, MassDelete, Delete).
  • Use cases include building custom admin pages, AJAX endpoints, form handlers, and mass actions within Magento 2 modules.

Quick Start

Create a new Magento 2 module and run this skill to generate a complete Adminhtml backend controller scaffold, including ACL, routes, menu, and sample actions.

Frequently Asked Questions about create-backend-controller

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Magento 2 admin controller with ACL resources?

Creating a Magento 2 admin controller with ACL resources involves scaffolding a strictly typed controller class and defining an acl.xml file. This enforces authorization rules and secures access to your admin pages and endpoints.

What is the best way to scaffold a backend controller for a Magento 2 module?

Scaffolding a backend controller for a Magento 2 module is best done by automating the generation of boilerplate files like routes.xml, menu.xml, and acl.xml. This ensures correct admin route definitions and UI integration while reducing manual coding errors.

Can I generate mass actions and AJAX endpoints for Magento adminhtml?

Yes, you can generate mass actions and AJAX endpoints for Magento adminhtml. The scaffolding process creates sample controller actions including MassDelete and Save, applying HTTP method interfaces to handle these specific backend requests.

Does scaffolding an admin controller include admin menu and routes configuration?

Yes, scaffolding an admin controller includes admin menu and routes configuration. It automatically generates the required menu.xml and adminhtml/routes.xml files to integrate your custom pages into the Magento admin UI and define accessible endpoints.

Why does my Magento 2 admin controller require strictly typed HTTP method interfaces?

Your Magento 2 admin controller requires strictly typed HTTP method interfaces to enforce consistent request handling and secure form processing. This ensures actions like Save or Delete only accept intended HTTP methods, preventing unauthorized access.