magento-infra

magento-infra is a skill for Claude Code, Codex from furan917/magento-ai-toolkit. It costs 38 tokens per session (3,582 once invoked), scanned A, original, MPL-2.0.

A guide for configuring and troubleshooting the services Magento 2 relies on for caching, queues, search, and database access.

In plain words
What is it for?
Use it to set up env.php connections, diagnose cache and session storage, inspect message queues, configure search services, and check database access.
Why use it?
It helps locate connection and configuration problems in Redis, RabbitMQ, OpenSearch, Elasticsearch, MySQL, or MariaDB.

Skill for Claude CodeCodex

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

Good fit Use it to set up env.php connections, diagnose cache and session storage, inspect message queues, configure search services, and check database access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/furan917/magento-ai-toolkit/magento-infra
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 furan917/magento-ai-toolkit --skill magento-infra
Clone the repo
git clone --depth 1 https://github.com/furan917/magento-ai-toolkit

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-infra

README.md
[![agentmods](https://agentmods.dev/badge/skills/furan917/magento-ai-toolkit/magento-infra/github.svg)](https://agentmods.dev/skills/furan917/magento-ai-toolkit/magento-infra)
Your own site
<a href="https://agentmods.dev/skills/furan917/magento-ai-toolkit/magento-infra"><img src="https://agentmods.dev/badge/skills/furan917/magento-ai-toolkit/magento-infra/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-infra

Your own site · 80×15
<a href="https://agentmods.dev/skills/furan917/magento-ai-toolkit/magento-infra"><img src="https://agentmods.dev/badge/skills/furan917/magento-ai-toolkit/magento-infra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00038 $0.03582
Opus 5 $0.00019 $0.01791
Sonnet 5 $0.00008 $0.00716
Haiku 4.5 $0.00004 $0.00358

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

Security

Grade A, and why

magento-infra scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://opensearch:9200/_cluster/health?pretty
skills/magento-infra/SKILL.md · 459 lines

How it starts

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

Skill: magento-infra

Purpose: Configure and troubleshoot Magento 2 infrastructure services — Redis, RabbitMQ, and OpenSearch/Elasticsearch. Compatible with: Any LLM (Claude, GPT, Gemini, local models) Usage: Paste this file as a system prompt, then describe your infrastructure question or issue.


System Prompt

You are a Magento 2 infrastructure specialist. You configure Redis (cache/sessions), RabbitMQ (message queues), OpenSearch/Elasticsearch (search), and MySQL/MariaDB database connections. You know the env.php configuration for each, the CLI commands to diagnose issues, and the differences between self-hosted and cloud-managed services.


Redis

Purpose: Cache backend, session storage, full page cache.

env.php Configuration

'cache' => [
    'frontend' => [
        // Application cache (DB 0)
        'default' => [
            'id_prefix'       => 'site1_',
            'backend'         => 'Magento\\Framework\\Cache\\Backend\\Redis',
            'backend_options' => [
                'server'           => 'redis',       // hostname or IP
                'port'             => '6379',
                'database'         => '0',
                'password'         => '',
                'compress_data'    => '1',
                'compression_lib'  => 'gzip',
                'preload_keys'     => [
                    'EAV_ENTITY_TYPES',
                    'GLOBAL_PLUGIN_LIST',
                    'DB_IS_UP_TO_DATE',
                    'SYSTEM_DEFAULT'
                ]
            ]
        ],
        // Full page cache (DB 1)
        'page_cache' => [
            'id_prefix'       => 'site1_',
            'backend'         => 'Magento\\Framework\\Cache\\Backend\\Redis',
            'backend_options' => [
                'server'        => 'redis',
                'port'          => '6379',
                'database'      => '1',
                'compress_data' => '0'
            ]
        ]
    ]
],
// Sessions (DB 2)
'session' => [
    'save'  => 'redis',
    'redis' => [
        'host'                    => 'redis',
        'port'                    => '6379',
        'password'                => '',
        'timeout'                 => '2.5',
        'database'                => '2',
        'compression_threshold'   => '2048',
        'compression_library'     => 'gzip',
        'log_level'               => '4',
        'max_concurrency'         => '6',
        'break_after_frontend'    => '5',
        'break_after_adminhtml'   => '30',
        'first_lifetime'          => '600',
        'bot_first_lifetime'      => '60',
        'bot_lifetime'            => '7200',
        'disable_locking'         => '0',
        'min_lifetime'            => '60',
        'max_lifetime'            => '2592000'
    ]
]

Read the full file on GitHub · 459 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 · 459 lines · 38 tokens per session scan A bc840d36a927

Subscribe to this mod's changes

magento-infra is a skill published in the GitHub repository furan917/magento-ai-toolkit (34 stars, last pushed 4mo ago), licensed MPL-2.0. It adds 38 tokens to every session and 3,582 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

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-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

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