magento-xml-specialist

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

A guide to writing Magento 2 XML configuration files, which control page layouts, dependency injection, administration settings, modules, and database schemas.

In plain words
What is it for?
Use it to build layout XML, di.xml, system.xml, module.xml, or db_schema.xml files, including plugins, injected values, admin fields, and validation.
Why use it?
It helps you create configuration that follows Magento's required structure and can be validated correctly. It also reduces guesswork when connecting components or changing store settings.

Skill for Claude CodeCodex

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

Good fit Use it to build layout XML, di.xml, system.xml, module.xml, or db_schema.xml files, including plugins, injected values, admin fields, and validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maxnorm/magento2-agent-skills/magento-xml-specialist
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.

Any agent
npx skills add maxnorm/magento2-agent-skills --skill magento-xml-specialist
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-xml-specialist

README.md
[![agentmods](https://agentmods.dev/badge/skills/maxnorm/magento2-agent-skills/magento-xml-specialist/github.svg)](https://agentmods.dev/skills/maxnorm/magento2-agent-skills/magento-xml-specialist)
Your own site
<a href="https://agentmods.dev/skills/maxnorm/magento2-agent-skills/magento-xml-specialist"><img src="https://agentmods.dev/badge/skills/maxnorm/magento2-agent-skills/magento-xml-specialist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for magento-xml-specialist

Your own site · 80×15
<a href="https://agentmods.dev/skills/maxnorm/magento2-agent-skills/magento-xml-specialist"><img src="https://agentmods.dev/badge/skills/maxnorm/magento2-agent-skills/magento-xml-specialist.svg" alt="Reviewed on agentmods" width="80" 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 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 17 Feb 2026
How audits are shown
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.00507
Opus 5 $0.00028 $0.00253
Sonnet 5 $0.00011 $0.00101
Haiku 4.5 $0.00006 $0.00051

Measured 12d ago against content hash a64862555c59, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

magento-xml-specialist 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 12d 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-xml-specialist/SKILL.md · 63 lines

How it starts

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

Magento 2 XML Specialist

Expert specialist in creating comprehensive, well-structured XML configurations that form the backbone of Magento 2 module architecture.

When to Use

  • Creating layout XML files
  • Configuring dependency injection (di.xml)
  • Setting up system configuration (system.xml)
  • Defining module structure (module.xml)
  • Creating database schemas (db_schema.xml)

XML Configuration Types

Layout XML

  • Layout Instructions: Expert in layout instructions, containers, and blocks
  • Page Layouts: Create custom page layouts
  • Layout Updates: Implement layout modifications
  • Block Configuration: Configure blocks and containers

Dependency Injection (di.xml)

  • Type Configuration: Configure types and preferences
  • Virtual Types: Create virtual types for flexibility
  • Plugin Configuration: Configure plugins (before/after/around)
  • Argument Injection: Configure constructor arguments

System Configuration (system.xml)

  • Admin Configuration: Create admin configuration interfaces
  • Field Types: Configure various field types
  • Scope Management: Handle store/website scope configurations
  • Validation: Implement configuration validation

Module Definition (module.xml)

  • Module Declaration: Declare modules and dependencies
  • Version Management: Manage module versions
  • Dependencies: Define module dependencies

Database Schema (db_schema.xml)

  • Table Definition: Define database tables
  • Column Definition: Define columns and data types
  • Indexes: Create database indexes
  • Constraints: Define constraints and relationships

Best Practices

  • Schema Validation: Always validate XML against schemas
  • Namespace Management: Proper XML namespace usage
  • Documentation: Add XML comments for clarity
  • Inheritance: Understand configuration inheritance
  • Performance: Optimize XML parsing and loading

References

Read the full file on GitHub · 63 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. 12d ago First seen · 63 lines · 57 tokens per session scan A a64862555c59

Subscribe to this mod's changes

magento-xml-specialist 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 507 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

magento-agent-api-builder

Autonomously generate a complete Magento 2 REST or GraphQL API from a plain-language spec — service contracts, repository, webapi.xml, and GraphQL schema with resolvers.

furan917/magento-ai-toolkit · 43 tokens

magento-agent-module-generator

Autonomously generate a complete, production-ready Magento 2 module from a plain-language spec — all files, directory structure, service contracts, and database schema.

furan917/magento-ai-toolkit · 38 tokens

magento-agent-amqp

Autonomously diagnose Magento 2 message queue problems — backlog growth, stuck consumers, broker connectivity, DLQ overflow — and scaffold new queues (communication, topology, consumer, publisher) from a specification. Produces an AMQP Report with root cause and fix.

furan917/magento-ai-toolkit · 59 tokens

magento-amqp

Configure Magento 2 message queues with AMQP (RabbitMQ, AmazonMQ), DB adapter, and all four required XML files. Use when building async processing, bulk operations, or decoupled architectures.

furan917/magento-ai-toolkit · 46 tokens

magento-cache

Build and manage custom Magento 2 cache types using TagScope, cache.xml, and cache tags. Use when creating cacheable data structures, custom cache identifiers, or diagnosing cache invalidation issues.

furan917/magento-ai-toolkit · 43 tokens