magento-api-developer

magento-api-developer is a skill for Claude Code, Codex from maxnorm/magento2-agent-skills. It costs 57 tokens per session (1,274 once invoked), scanned A, original, MIT.

A Magento 2 guide for building REST and GraphQL APIs, which are interfaces that let other software request or change application data. It covers service contracts, data-transfer objects, authentication, and integrations.

In plain words
What is it for?
Use it to design endpoints and GraphQL schemas, implement repositories and data objects, handle authentication, manage nested data, and integrate Magento with other software.
Why use it?
It helps keep Magento APIs consistent, versioned, secure, and usable by websites, mobile apps, headless storefronts, and external systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/maxnorm/magento2-agent-skills/magento-api-developer
Any agent
npx skills add maxnorm/magento2-agent-skills --skill magento-api-developer
Clone the repo
git clone --depth 1 https://github.com/maxnorm/magento2-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for magento-api-developer

README.md
[![agentmods](https://agentmods.dev/badge/skills/maxnorm/magento2-agent-skills/magento-api-developer.svg)](https://agentmods.dev/skills/maxnorm/magento2-agent-skills/magento-api-developer)
Your own site
<a href="https://agentmods.dev/skills/maxnorm/magento2-agent-skills/magento-api-developer"><img src="https://agentmods.dev/badge/skills/maxnorm/magento2-agent-skills/magento-api-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01274
Opus 5 $0.00028 $0.00637
Sonnet 5 $0.00011 $0.00255
Haiku 4.5 $0.00006 $0.00127

Measured 6d ago against content hash 97e311f76e77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

magento-api-developer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/magento-api-developer/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 138 lines · 57 tokens per session scan A 97e311f76e77

Subscribe to this mod's changes

magento-api-developer is a skill published in the GitHub repository maxnorm/magento2-agent-skills (29 stars, last pushed 7mo ago), licensed MIT. It adds 57 tokens to every session and 1,274 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

magento2-backend-dev

This skill should be used when the user asks to "create an API endpoint", "build a REST API", "add a GraphQL resolver", "create a CLI command", "add a cron job", "set up a message queue", "implement a web API", "add a SOAP service", or "create a data provider". Covers Magento 2 backend development: REST/SOAP/GraphQL…

ddtcorex/maestro-skills · 114 tokens

magento2-frontend-dev

This skill should be used when the user asks to "create a Knockout.js component", "add a UI Component", "modify layout XML", "customize a template", "write LESS CSS", "style with the Magento UI library", "add a RequireJS module", "extend JavaScript", "customize checkout", or "modify the cart page". Covers Magento 2…

ddtcorex/maestro-skills · 110 tokens

govard-magento

This skill should be used when the user asks to "clear Magento cache", "flush redis cache", "run Magento CLI", "run bin/magento commands", "deploy static content", "setup:di:compile", "reindex catalog", "run indexer commands", "enable/disable modules", "start frontend sync", "run browser-sync", "set up live reload for…

ddtcorex/maestro-skills · 116 tokens

magento2-dev-core

This skill should be used when the user is creating new Magento 2 modules or customizations, implementing features following Magento architecture, working with Dependency Injection, Repositories, or Plugins, writing secure Magento code, or building backend logic, CLI commands, or cron jobs. Foundation skill for…

ddtcorex/maestro-skills · 89 tokens

magento2-code-review

This skill should be used when the user asks to "review this PR/MR", "review this merge request", "review this module", "audit this module before merge", "review this theme", "audit this theme PR", or wants a "full review before release". Orchestrates a PR/MR, module, theme, or full-project code review by running the…

ddtcorex/maestro-skills · 181 tokens

magento2-security-scan

This skill should be used when the user asks to "run a security audit", "find vulnerabilities", "check for XSS", "check CSRF protection", "validate form security", "run a dependency audit", "check for outdated packages", "run a PCI compliance check", or "do a security review before deploy". Scans Magento 2 code for…

ddtcorex/maestro-skills · 105 tokens