December 1, 2026
AI-assisted development is becoming a useful part of a developer's workflow. From generating boilerplate code to investigating complex issues, tools such as Claude Code can reduce the time spent on implementation.
However, writing code is only one part of software development.
In Magento and Adobe Commerce, custom functionality needs to work within an established framework, integrate with existing features and remain maintainable long after the original developer has moved on.
We recently used AI-assisted development to build a custom Magento admin UI component. From receiving the client's requirement to opening a pull request, the process took approximately two hours and 45 minutes.
The development time was only part of what we learned. The project also showed how AI could assist with planning, implementation, code reviews and testing, while still relying on a developer to make the important decisions.
The challenge: making Magento product data easier to manage
The client's content team was managing product size guides using HTML tables, often copied from Excel and pasted into a Magento product attribute.
This worked, but it wasn't user-friendly. Editing measurements meant working with HTML, and inconsistencies in the markup could cause problems when the information was displayed on the storefront.
The requirement was to replace this process with a spreadsheet-style editor inside Magento's product edit form. The next screenshot shows the existing HTML editor and the new measurements editor as they appear in the product form.


Content managers needed to manage sizes and measurements, paste information from Excel and preview the resulting table without writing any HTML.
For example, instead of creating table markup by hand, a content manager can copy a complete measurements table from Excel, paste it into the top-left cell of the new editor and have the grid populate the corresponding cells automatically.
The implementation also needed to remain compatible with existing size guides. The legacy HTML table is still used whenever the new measurements field is empty, so products can be migrated gradually without disrupting the storefront.
Why Magento admin UI components can be challenging
Magento's admin interface relies on its UI component framework, which combines Knockout.js, XML configuration and JavaScript components.
The framework is powerful, but it isn't always easy to work with. Building a custom interactive editor involves understanding how Magento handles data binding, form state, validation and saving product attributes.
A component might look correct but fail to save its values. Equally, something that works in isolation might behave differently once it's integrated into the full product edit form.
Modern frontend development has moved towards other frameworks and patterns, yet Magento's admin interface still requires an understanding of its existing architecture. This made the project a good candidate for AI-assisted development.
From requirement to pull request in under three hours
Rather than asking AI to write the component straight away, we started by describing the requirement and asking it to investigate the existing implementation and propose possible solutions.
It suggested three approaches:
- A custom spreadsheet-style editor.
- A larger system for managing shared size charts.
- An implementation using Magento's existing dynamic row components.
The AI recommended the custom editor. It identified the shared-chart solution as a considerably larger piece of work and Magento's standard dynamic rows as too restrictive for the flexibility the client needed.
We chose the custom editor and confirmed Excel paste as an essential feature.
Once the approach was agreed, the AI produced a specification and implementation plan. Development was then divided into smaller tasks, each handled by a coding agent and reviewed independently by another AI agent.
Each task included writing tests, implementing the functionality, running static analysis and addressing review feedback before work moved on to the next one.
By the time the pull request was opened, the work included:
- A spreadsheet-style editor within Magento's product form.
- Excel copy-and-paste functionality, including undo support.
- Validation for missing size or measurement names and duplicate sizes.
- Live previews and support for centimetres or inches.
- JSON-based storage that remains compatible with existing HTML size guides.
- A migration command for converting existing tables into the new format.
The branch contained 15 commits across 49 changed files, with 222 PHP unit tests and 21 JavaScript tests covering the underlying grid logic and paste handling.
From the initial request to the pull request, approximately two hours and 45 minutes had passed.
There is an important caveat. The project already had a size guide module, HTML parsing functionality and testing infrastructure in place, and those foundations contributed to the development speed. The time also doesn't include the staging QA, client documentation or data migration that followed.
Even so, the project showed how quickly a substantial piece of custom functionality can be implemented when AI is used as part of a structured development process.
AI-generated code still needs reviewing
One of the biggest concerns around AI-assisted development is code quality.
AI can generate code that looks reasonable but contains subtle problems. This matters most in frameworks such as Magento, where small implementation details can affect how components behave.
The review process identified several issues during this project:
- Knockout.js data bindings. The generated editor could have appeared to work while failing to save the values entered by the content team.
- Undo functionality. Undoing a paste could have removed changes made after the data was pasted.
- Invalid existing data. The final review found that existing invalid measurement data could prevent unrelated product changes, such as a price update, from being saved.
One of the fixes from that final review introduced another bug, which was caught in the following review.
Each of these problems could have affected the content team or customers if the code had been accepted without proper testing.
AI-generated code should be held to the same quality standards as code written by a developer. It still needs testing, review and validation against the original requirements.
In this case, AI wasn't only responsible for generating code. It also helped review implementations, identify weaknesses and correct problems before the changes reached staging.
What about maintainability?
Development time is easy to measure. Maintainability is much harder.
A feature might take a few hours to build but become expensive to maintain if its implementation is overcomplicated, poorly documented or tightly coupled to other functionality. For this reason, the architecture of an AI-assisted solution matters as much as how quickly it was built.
For the size guide component, the implementation separated the underlying grid functionality from Magento's Knockout.js integration. This meant much of the editor's logic could be tested with standard JavaScript tests, without loading the full Magento admin interface.
Similarly, the data format was handled by a dedicated PHP class, rather than several parts of the module each interpreting the stored JSON in their own way.
The implementation also used Magento's existing extension mechanisms instead of modifying core or vendor files, which keeps the module easier to carry through future Magento upgrades.
Alongside this, the module included documentation covering the data structure, editor behaviour, migration process and known limitations. The code passed Magento coding-standard checks and PHPStan static analysis at level 8.
None of these practices is new. They are established principles of maintainable software development. The difference is that AI helped implement them alongside the feature itself, rather than leaving testing, documentation and code structure as tasks to revisit later.
There are still areas for improvement. The editor's visual integration with Magento's Knockout framework isn't covered by automated UI tests, and the original specification and detailed implementation plan were initially stored outside the repository.
The second point is especially important. Future developers shouldn't need access to the original AI conversation to understand why an implementation was designed in a particular way.
Good architecture, documentation and test coverage provide a strong foundation, but they don't guarantee maintainability. That will only become clear when another developer needs to modify or extend the functionality.
Where AI still falls short
Despite the positive results, the process had its limitations.
One issue involved the editor's styling within the Magento admin. The coding agent had flagged this as something to check, but it couldn't be confirmed through automated tests alone. The styling issue was only verified and corrected after logging into the Magento admin and testing the component in a browser.
This highlighted the difference between code that passes automated checks and functionality that behaves correctly in a live application.
There is also a risk of developers relying on AI-generated solutions without understanding them. AI can produce a large amount of code in a short period, but that doesn't make the resulting implementation easier to understand.
AI can also suggest overly elaborate solutions. Developers still need to recognise when a simpler approach is more appropriate and whether a proposed implementation fits the existing application.
In this project, AI recommended the simpler of the two custom approaches, but a developer still needed to assess that recommendation against the client's requirements.
AI supports developers but doesn't replace engineering judgement
This project shows where AI-assisted development offers the most value.
AI handled a significant amount of the implementation work, but it didn't decide what was best for the client. The developer selected the architecture, confirmed how the component should behave, made decisions about the migration process and assessed whether the finished solution met the requirements.
The AI provided options, wrote code, ran tests and reviewed changes. Each of those activities still needed direction and an understanding of Magento, the existing project and the client's needs.
The project also showed that AI is useful for more than generating code. By assisting with reviews, testing, documentation and investigating older frameworks, it lets developers spend more time on the decisions that matter and less on repetitive implementation work.
For Magento and Adobe Commerce merchants, this creates an opportunity to deliver useful improvements sooner, without treating code quality and maintainability as an afterthought.
There are still limitations. A successful first implementation doesn't prove a solution will remain easy to maintain, and automated checks can't replace testing in a live environment.
With the right development processes and experienced engineers providing direction, AI can help teams build better software more efficiently. Its main value is letting developers spend less time writing code and more time making sure they're building the right solution.
Last updated: December 1, 2026
