magento-agent-api-builder

Generate Magento 2 REST and GraphQL APIs from plain-language specs.

32|3|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-agent-api-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-agent-api-builder
Source: https://github.com/furan917/magento-ai-toolkit/tree/main/agent-skills/magento-agent-api-builder
Command: npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-agent-api-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Magento API builder translates plain-language specs into a complete Magento 2 API stack, saving time while conforming to Magento conventions.

Core Features & Use Cases

  • Generates service contracts, repositories, and data models
  • Creates REST (webapi.xml) and optional GraphQL schema with resolvers
  • Supports common CRUD workflows and Magento PHPDoc standards

Quick Start

Describe your entity and required operations, and the agent will generate all necessary Magento 2 API files.

Frequently Asked Questions about magento-agent-api-builder

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

FAQPage Schema
How do I generate a Magento 2 REST API from a plain-language spec?

To generate a Magento 2 REST API, provide an entity name, fields, and operations to auto-build service contracts, repositories, webapi.xml routes, and data models with proper PHPDoc from your plain-language spec.

Can I automatically create a Magento 2 GraphQL schema and resolvers for custom entities?

Yes, you can generate a Magento 2 GraphQL schema with resolvers for custom entities by providing your entity specifications, which also creates the necessary interfaces, models, resource models, and collections.

What do I need to provide to auto-generate Magento 2 CRUD module code?

You need to provide the entity name, field definitions, required CRUD operations, and authentication model; otherwise, it defaults to admin token authentication for standard admin access during Magento 2 module code generation.

Does the Magento 2 API builder generate dependency injection wiring and ACL rules?

Yes, the Magento 2 API builder generates dependency injection wiring and ACL rules alongside REST routes, GraphQL schemas, and repository implementations to ensure full Magento compatibility and functional CRUD workflows.

What is the best way to scaffold Magento 2 service contracts and repositories quickly?

The best way to scaffold Magento 2 service contracts and repositories is translating plain-language specs into interface definitions, implementations, and data models automatically, conforming to Magento conventions without manual boilerplate coding.