
magento-cronjob-developer
Implements scheduled tasks and background processing for Magento 2. Use when creating cron jobs, scheduling automated tasks, implementing background processing, or automating system operations. Masters cron configuration, job scheduling, error handling, and performance optimization.
- Installs
- 148
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cronjob-developer- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads magento-cronjob-developer automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Magento 2 Cron Job Developer
Expert specialist in creating reliable, efficient scheduled tasks and background processes that automate critical business operations while maintaining system performance and reliability.
When to Use
- Creating scheduled tasks
- Implementing background processing
- Automating system operations
- Building data synchronization jobs
- Implementing maintenance tasks
- Creating notification systems
Cron Job Architecture
- Cron Configuration: Master crontab.xml configuration and job scheduling
- Job Classes: Implement robust job execution classes and error handling
- Schedule Management: Design flexible scheduling patterns and intervals
- Resource Management: Optimize memory and processing resource usage
- Dependency Management: Handle job dependencies and execution order
Cron Development Process
1. Job Planning & Design
- Requirements Analysis: Understand business requirements and execution patterns
- Performance Planning: Plan for expected load and resource requirements
- Error Scenarios: Identify potential failure points and recovery strategies
- Monitoring Strategy: Plan logging, alerts, and performance tracking
- Integration Points: Design integration with existing systems and processes
2. Configuration Setup
- Crontab Configuration: Configure job scheduling in
etc/crontab.xml - Group Organization: Organize jobs into logical groups and categories
- Schedule Definition: Define appropriate execution intervals and timing
- Resource Allocation: Plan memory limits and execution timeouts
- Environment Configuration: Configure for different environments
3. Job Implementation
- Job Class Development: Create robust job execution classes
- Business Logic: Implement core job functionality and operations
- Data Processing: Handle data validation, transformation, and storage
- Error Handling: Implement comprehensive error handling and logging
- Progress Tracking: Create progress monitoring and status reporting
4. Testing & Deployment
- Unit Testing: Test individual job components and logic
- Integration Testing: Test job integration with system components
- Performance Testing: Validate job performance under expected load
- Error Testing: Test error scenarios and recovery mechanisms
- Deployment Strategy: Plan safe deployment and rollback procedures
Cron Configuration
crontab.xml Structure
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
<group id="default">
<job name="vendor_module_job" instance="Vendor\Module\Cron\Job" method="execute">
<schedule>*/5 * * * *</schedule>
</job>
</group>
</config>
Job Class Implementation
<?php
declare(strict_types=1);
namespace Vendor\Module\Cron;
use Psr\Log\LoggerInterface;
class Job
{
/**
* @param LoggerInterface $logger
*/
public function __construct(
private readonly LoggerInterface $logger
) {
}
/**
* Execute cron job
*/
public function execute(): void
{
try {
// Job logic here
$this->logger->info('Cron job executed successfully');
} catch (\Exception $e) {
$this->logger->error('Cron job failed: ' . $e->getMessage());
throw $e;
}
}
}
Specialized Cron Job Types
E-commerce Automation
- Inventory Updates: Automated stock level synchronization and alerts
- Price Updates: Scheduled pricing changes and promotional activations
- Order Processing: Automated order status updates and fulfillment
- Customer Communications: Automated email campaigns and notifications
- Report Generation: Scheduled business reports and analytics
Data Management Jobs
- Data Import/Export: Automated data synchronization with external systems
- Database Maintenance: Scheduled cleanup, optimization, and archiving
- Log Management: Automated log rotation, cleanup, and archiving
- Backup Operations: Scheduled backup creation and validation
- Cache Management: Automated cache warming and invalidation
System Maintenance
- Performance Monitoring: Automated system health checks and alerts
- Security Scans: Scheduled security audits and vulnerability checks
- Update Processes: Automated system and extension updates
- Cleanup Operations: Temporary file cleanup and resource optimization
- Index Management: Automated reindexing and search optimization
Integration Jobs
- API Synchronization: Scheduled data sync with external APIs
- Third-party Updates: Automated integration with external services
- Webhook Processing: Background processing of webhook notifications
- Data Transformation: Automated data transformation and migration
- Notification Delivery: Scheduled notification and alert delivery
Best Practices
Performance
- Batch Processing: Process data in batches to avoid memory issues
- Resource Management: Monitor and limit memory usage
- Execution Time: Set appropriate execution timeouts
- Lock Management: Prevent job overlap and resource conflicts
- Optimization: Optimize queries and data processing
Reliability
- Error Handling: Comprehensive error handling and logging
- Retry Mechanisms: Implement retry logic for transient failures
- Monitoring: Log job execution and errors
- Alerting: Set up alerts for job failures
- Recovery: Implement recovery mechanisms for failed jobs
Security
- Access Control: Ensure proper permissions for job execution
- Data Validation: Validate all input data
- Error Messages: Don't expose sensitive information in error messages
- Logging: Log security-relevant events
- Audit Trail: Maintain audit trails for critical operations
Testing
- Unit Tests: Test job logic in isolation
- Integration Tests: Test job integration with system components
- Performance Tests: Validate job performance under load
- Error Tests: Test error scenarios and recovery
- Schedule Tests: Verify cron schedule configuration
Monitoring & Debugging
Logging
$this->logger->info('Job started');
$this->logger->debug('Processing item: ' . $itemId);
$this->logger->error('Job failed: ' . $exception->getMessage());
Cron Status
# Check cron status
bin/magento cron:status
# Run cron manually
bin/magento cron:run
# Check cron schedule
bin/magento cron:schedule
References
Focus on creating reliable, efficient cron jobs that automate business operations while maintaining system performance and reliability.
FAQ
What does the magento-cronjob-developer skill do?
Implements scheduled tasks and background processing for Magento 2. Use when creating cron jobs, scheduling automated tasks, implementing background processing, or automating system operations. Masters cron configuration, job scheduling, error handling, and performance optimization.
How do I install magento-cronjob-developer?
Run npx skills add https://github.com/maxnorm/magento2-agent-skills --skill magento-cronjob-developer in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/magento-cronjob-developer/ (personal) or .claude/skills/magento-cronjob-developer/ (project).
Which AI agents can use magento-cronjob-developer?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is magento-cronjob-developer safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains magento-cronjob-developer?
It is published by maxnorm in maxnorm/magento2-agent-skills. It has 148 recorded installs.
More from maxnorm/magento2-agent-skills
magento-hyva-specialist
maxnorm/magento2-agent-skills
Develops high-performance Magento 2 storefronts using Hyvä theme framework. Use when working with Hyvä themes, Alpine.js, Tailwind CSS, or modern frontend development. Masters Alpine.js architecture, Tailwind CSS styling, and performance optimization for blazing-fast e-commerce experiences.
magento-code-reviewer
maxnorm/magento2-agent-skills
Reviews Magento 2 code for quality, security, performance, and compliance with PSR-12 and Magento coding standards. Use proactively when reviewing code, before commits, during pull requests, or when ensuring code quality. Enforces strict type declarations, proper dependency injection, security best practices, and performance optimization.
magento-module-developer
maxnorm/magento2-agent-skills
Creates robust, maintainable, and extensible Magento 2 modules following enterprise architecture patterns. Use when developing custom modules, implementing new functionality, creating extensions, or building Magento 2 components. Masters dependency injection, service contracts, repository patterns, and module architecture.
magento-performance-analyst
maxnorm/magento2-agent-skills
Conducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database queries, or improving system scalability. Masters profiling tools, database optimization, and enterprise-scale performance tuning.
magento-frontend-developer
maxnorm/magento2-agent-skills
Creates comprehensive Magento 2 frontend solutions. Use when developing frontend features, working with layout XML, templates, JavaScript, or responsive design. Masters layout XML, template development, JavaScript integration, and performance optimization across all Magento frontend technologies.
magento-xml-specialist
maxnorm/magento2-agent-skills
Creates XML configurations for Magento 2 including layout XML, dependency injection, system configuration, and module definition. Use when working with XML configuration files, layout XML, di.xml, or system.xml. Masters XML schema design, validation, and configuration management.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available