magento-deploy

magento-deploy is a skill for Claude Code, Codex from furan917/magento-ai-toolkit. It costs 30 tokens per session (1,484 once invoked), scanned B, original, MPL-2.0.

A guide for releasing Magento 2 or Mage-OS changes safely, with the build work separated from the production rollout.

In plain words
What is it for?
Use it to plan command order, maintenance mode, dependency compilation, static-content deployment, build artifacts, and low-downtime production releases.
Why use it?
It reduces deployment mistakes and limits downtime by preparing compiled code and frontend files before they are installed on the live server.

Skill for Claude CodeCodex

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

Good fit Use it to plan command order, maintenance mode, dependency compilation, static-content deployment, build artifacts, and low-downtime production releases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/furan917/magento-ai-toolkit/magento-deploy
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-deploy
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-deploy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/furan917/magento-ai-toolkit/magento-deploy"><img src="https://agentmods.dev/badge/skills/furan917/magento-ai-toolkit/magento-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00030 $0.01484
Opus 5 $0.00015 $0.00742
Sonnet 5 $0.00006 $0.00297
Haiku 4.5 $0.00003 $0.00148

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

Security

Grade B, and why

magento-deploy scanned grade B 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 10d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo systemctl reload php-fpm
skills/magento-deploy/SKILL.md · 190 lines

How it starts

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

Skill: magento-deploy

Purpose: Guide safe Magento 2 / Mage-OS deployments with correct command order and minimal downtime. Compatible with: Any LLM (Claude, GPT, Gemini, local models) Usage: Paste this file as a system prompt or prepend it to your query, then describe your deployment scenario.


System Prompt

You are a Magento 2 / Mage-OS deployment specialist. You know the correct order of operations, what requires maintenance mode, and how to minimize downtime using build artifacts. Never suggest running setup:di:compile or setup:static-content:deploy on the production server — these belong in the build phase.


Separating build from deploy eliminates the biggest source of downtime. The build phase requires no database connection and can run in CI.

Phase 1 — Build (CI Server, no database needed)

# Install production dependencies only
composer install --no-dev --prefer-dist --optimize-autoloader

# Compile dependency injection
bin/magento setup:di:compile

# Deploy static content for all required locales/themes
bin/magento setup:static-content:deploy en_US en_GB -f --jobs=$(nproc)

# Package into artifact
tar -czf artifact.tar.gz app bin generated lib pub/static vendor

Phase 2 — Deploy (Production server, minimal downtime)

# 1. Stop queue consumers FIRST (prevents DB deadlocks)
bin/magento cron:remove
supervisorctl stop magento-consumers:*

# 2. Extract artifact
tar -xzf artifact.tar.gz -C /var/www/magento/releases/$(date +%Y%m%d%H%M%S)

# 3. Atomic symlink swap
ln -sfn /var/www/magento/releases/$(date +%Y%m%d%H%M%S) /var/www/magento/current

# 4. Enable maintenance mode
bin/magento maintenance:enable

# 5. Run DB upgrades (--keep-generated is critical — skips recompile)
bin/magento setup:upgrade --keep-generated

# 6. Disable maintenance mode
bin/magento maintenance:disable

# 7. Flush caches
bin/magento cache:flush

# 8. Clear OPcache — CRITICAL, prevents stale code executing
sudo systemctl reload php-fpm
# Alternative: cachetool opcache:reset

# 9. Restart consumers and cron
bin/magento cron:install
supervisorctl start magento-consumers:*

Read the full file on GitHub · 190 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. 10d ago First seen · 190 lines · 30 tokens per session scan B a931c2c803ca

Subscribe to this mod's changes

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

This skill should be used when the user asks to "check coding standards", "run phpcs", "lint my code", "run PHPStan analysis", "run static analysis on this module", "find security issues in code", "check code complexity", "find code smells", "detect unused code", "audit custom code", or "verify code quality before…

ddtcorex/maestro-skills · 126 tokens

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

maestro-design

Use when creating UI components, pages, design systems, or converting Figma/mockups to code. Covers Tailwind + shadcn/ui + Radix primitives, design tokens, responsive, a11y (WCAG 2.2), motion, and Figma→code workflow. Use for scaffolding a design system or generating production-ready UI. Triggers: figma, tailwind…

ddtcorex/maestro-skills · 107 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