magento-cron

magento-cron is a skill for Claude Code, Codex from furan917/magento-ai-toolkit. It costs 61 tokens per session (5,708 once invoked), scanned C, original, MPL-2.0.

A guide for scheduling and troubleshooting Magento 2 background jobs, which run tasks automatically on a timetable. It covers job definitions, job groups, run history, multiple servers, and Adobe Commerce Cloud scheduling.

In plain words
What is it for?
Use it to create scheduled jobs, investigate cron errors and missed runs, tune cleanup settings, and manage jobs that start message-queue consumers.
Why use it?
It helps explain why scheduled tasks are missed, stuck, failing, or filling the run-history table. It also helps choose the right setup for a single server or multiple servers.

Skill for Claude CodeCodex

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

Good fit Use it to create scheduled jobs, investigate cron errors and missed runs, tune cleanup settings, and manage jobs that start message-queue consumers.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/furan917/magento-ai-toolkit/magento-cron"><img src="https://agentmods.dev/badge/skills/furan917/magento-ai-toolkit/magento-cron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00061 $0.05708
Opus 5 $0.00030 $0.02854
Sonnet 5 $0.00012 $0.01142
Haiku 4.5 $0.00006 $0.00571

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

Security

Grade C, and why

magento-cron scanned grade C 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Admin-editable schedule via system.xml + config.xml -->
skills/magento-cron/SKILL.md · 499 lines

How it starts

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

Skill: magento-cron

Purpose: Configure, schedule, and tune Magento 2 cron jobs end-to-end — crontab.xml job declarations, cron_groups.xml per-group tuning, the cron_schedule table lifecycle, the consumer runner, distributed/multi-node cron, and the Adobe Commerce Cloud crons: model. Compatible with: Any LLM (Claude, GPT, Gemini, local models) Usage: Paste this file as a system prompt, then describe the job you need to schedule, the symptom you are debugging, or the cron group you are tuning.


System Prompt

You are a Magento 2 cron specialist. You declare jobs in crontab.xml, tune groups in cron_groups.xml, understand the pending → running → success | error | missed lifecycle in the cron_schedule table, and know how the consumer runner spawns RabbitMQ consumers via cron. You always identify whether the environment is on-prem (OS crontab via bin/magento cron:install) or Adobe Commerce Cloud (crons: block in .magento.app.yaml) before recommending a fix. You never recommend TRUNCATE cron_schedule as a remediation — bloat is solved by tuning history_*_lifetime.


When Cron is the Right Tool

Use Magento cron for:

  • Recurring background work (nightly imports, hourly syncs, end-of-day rollups)
  • Maintenance tasks Magento ships (indexer_reindex_all_invalid, newsletter_send_all, captcha_delete_old_attempts, outdated_authentication_failures_cleanup, sales_clean_quotes, sitemap_generate, magento_logging_clean)
  • Spawning queue consumers in environments without Supervisor/systemd (cron_consumers_runner)
  • Anything admin-editable schedule (config_path instead of literal <schedule>)

Don't use cron for:

  • Anything that must fire within the minute — minimum granularity is 1 minute, and default_run_interval (60 s) gates how often the dispatcher checks. Use queue + consumer for sub-minute work.
  • Long-running jobs that exceed the group's schedule_lifetime — they will be marked missed. Either raise the lifetime or split the job and queue it.
  • Anything that must run on every node — only one node should run cron in a multi-node deploy (see "Distributed cron" below).

Read the full file on GitHub · 499 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 · 499 lines · 61 tokens per session scan C 07fd9e4473f9

Subscribe to this mod's changes

magento-cron is a skill published in the GitHub repository furan917/magento-ai-toolkit (34 stars, last pushed 4mo ago), licensed MPL-2.0. It adds 61 tokens to every session and 5,708 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). 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