
magento-api-developer
Designs and implements REST and GraphQL APIs for Magento 2. Use when developing APIs, creating service contracts, building headless commerce solutions, or integrating with external systems. Masters service contracts, data transfer objects, authentication, and enterprise-grade API architecture.
- Installs
- 241
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-api-developer- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads magento-api-developer automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Magento 2 API Developer
Expert specialist in designing and implementing robust, scalable REST and GraphQL APIs that serve as reliable data interfaces for headless commerce, mobile applications, and third-party integrations.
When to Use
- Developing REST or GraphQL APIs
- Creating service contracts
- Building headless commerce solutions
- Integrating with external systems
- Implementing API authentication and authorization
- Designing data transfer objects
API Architecture
Service Contracts
- Design clean, versioned API interfaces
- Create data transfer objects (DTOs) for data exchange
- Implement repository pattern for data access
- Maintain backward compatibility
REST API Design
- Implement RESTful endpoints following industry best practices
- Use proper HTTP methods (GET, POST, PUT, DELETE)
- Design consistent URL structures
- Implement proper status codes
GraphQL Implementation
- Build efficient GraphQL schemas and resolvers
- Optimize query complexity
- Implement proper caching strategies
- Handle nested relationships efficiently
API Development Process
1. API Planning & Design
- Requirements Analysis: Gather API requirements from stakeholders
- Data Modeling: Design data structures and entity relationships
- Endpoint Architecture: Plan REST endpoints and GraphQL schema structure
- Security Design: Plan authentication, authorization, and data protection
- Performance Planning: Design for scalability and optimal response times
2. Service Contract Definition
- Interface Design: Create comprehensive service interfaces in
Api/directory - Data Contract Specification: Define DTOs and data structures
- Error Handling: Design consistent error response patterns
- Validation Rules: Implement robust input validation and sanitization
- Documentation: Create comprehensive API documentation
3. Implementation Development
- Endpoint Implementation: Build REST controllers and GraphQL resolvers
- Business Logic: Implement service layer business logic
- Data Access: Create repository implementations for data operations
- Response Formatting: Ensure consistent response structures
- Error Handling: Implement comprehensive error handling and logging
4. Testing & Quality Assurance
- Unit Testing: Write comprehensive tests for service and repository layers
- Integration Testing: Test complete API workflows and data flow
- Performance Testing: Validate API performance under load
- Security Testing: Test authentication, authorization, and data protection
- Documentation Testing: Ensure API documentation accuracy
API Types
E-commerce REST APIs
- Product Management: Product CRUD operations, catalog management
- Order Processing: Order creation, updates, and fulfillment workflows
- Customer Management: Customer registration, authentication, and profile management
- Inventory Operations: Stock management, reservations, and availability
- Payment Processing: Payment method integration and transaction handling
GraphQL Schema Development
- Product Queries: Efficient product data retrieval with nested relationships
- Cart Operations: Shopping cart mutations and real-time updates
- Customer Queries: Customer data and order history with fine-grained control
- Search Resolvers: Advanced search and filtering capabilities
- Performance Optimization: Query complexity analysis and caching strategies
Administrative APIs
- Admin Operations: Backend management and configuration APIs
- Bulk Operations: Mass data import/export and batch processing
- Reporting APIs: Data analytics and business intelligence endpoints
- System Configuration: Dynamic configuration management APIs
- User Management: Admin user and role management interfaces
Advanced Techniques
Performance Optimization
- Query Optimization: Efficient database queries and N+1 problem resolution
- Caching Strategies: Implement API response caching and cache invalidation
- Pagination: Efficient large dataset pagination and cursor-based navigation
- Field Selection: Allow clients to specify required fields for optimization
- Batch Operations: Implement batch endpoints for bulk operations
Security Implementation
- Authentication Methods: OAuth 2.0, JWT tokens, and API key management
- Authorization Patterns: Role-based and resource-based access control
- Rate Limiting: Implement API throttling and abuse prevention
- Input Validation: Comprehensive input sanitization and validation
- CORS Management: Proper cross-origin resource sharing configuration
Error Handling & Monitoring
- Consistent Error Responses: Standardized error format and HTTP status codes
- Logging Strategy: Comprehensive API request and error logging
- Monitoring Integration: API performance and health monitoring
- Alert Systems: Automated alerting for API issues and anomalies
- Debugging Tools: Debug logging and request tracing capabilities
Best Practices
Design Principles
- Resource-Oriented Design: Design APIs around resources and collections
- Stateless Operations: Ensure API operations are stateless and idempotent
- Consistency: Maintain consistent naming, patterns, and response formats
- Simplicity: Provide simple, intuitive interfaces for common operations
- Flexibility: Design for extensibility and future requirements
Documentation & Developer Experience
- Interactive Documentation: Provide Swagger/OpenAPI interactive documentation
- Code Examples: Include practical examples in multiple programming languages
- SDKs & Libraries: Provide client libraries for popular programming languages
- Sandbox Environment: Offer testing environments for API consumers
- Developer Support: Establish support channels and community resources
References
Focus on creating APIs that meet current integration needs while providing a foundation for future digital commerce innovations.
FAQ
What does the magento-api-developer skill do?
Designs and implements REST and GraphQL APIs for Magento 2. Use when developing APIs, creating service contracts, building headless commerce solutions, or integrating with external systems. Masters service contracts, data transfer objects, authentication, and enterprise-grade API architecture.
How do I install magento-api-developer?
Run npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-api-developer in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magento-api-developer/ (personal) or .claude/skills/magento-api-developer/ (project).
Which AI agents can use magento-api-developer?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is magento-api-developer safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains magento-api-developer?
It is published by maxnorm in maxnorm/magento2-agent-skills. It has 241 recorded installs.
More from maxnorm/magento2-agent-skills
magento-hyva-specialist
maxnorm/magento2-agent-skills
Develops high-performance Magento 2 storefronts using Hyvä theme framework. Use when working with Hyvä themes, Alpine.js, Tailwind CSS, or modern frontend development. Masters Alpine.js architecture, Tailwind CSS styling, and performance optimization for blazing-fast e-commerce experiences.
magento-code-reviewer
maxnorm/magento2-agent-skills
Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.
magento-module-developer
maxnorm/magento2-agent-skills
Creates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new functionality, creating extensions, or building Magento 2 components. Masters dependency injection, service contracts, repository patterns, and module architecture.
magento-performance-analyst
maxnorm/magento2-agent-skills
Conducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database queries, or improving system scalability. Masters profiling tools, database optimization, and enterprise-scale performance tuning.
magento-frontend-developer
maxnorm/magento2-agent-skills
Creates comprehensive Magento 2 frontend solutions. Use when developing frontend features, working with layout XML, templates, JavaScript, or responsive design. Masters layout XML, template development, JavaScript integration, and performance optimization across all Magento frontend technologies.
magento-xml-specialist
maxnorm/magento2-agent-skills
Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.