symfony:message

Generate Symfony Messenger Message and MessageHandler PHP classes.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill symfony-message
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: symfony:message
Source: https://github.com/atournayre/claude-personas/tree/main/symfony/skills/message
Command: npx skills add https://github.com/atournayre/claude-personas --skill symfony-message

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of Symfony Messenger Messages and their corresponding Handlers, streamlining the process of implementing asynchronous or synchronous message processing in your application.

Core Features & Use Cases

  • Message Generation: Creates immutable Message DTOs with promoted readonly properties and getters.
  • Handler Generation: Generates a final class with the #[AsMessageHandler] attribute and an __invoke method.
  • Optional Middleware: Can generate a basic middleware structure for advanced message handling.
  • Use Case: Quickly scaffold the necessary files for a new background job, like processing an uploaded image or sending a welcome email, ensuring adherence to Symfony best practices.

Quick Start

Use the symfony:message skill to generate a new message named ProcessImage with userId and imageUrl properties.

Frequently Asked Questions about symfony:message

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Symfony Messenger message and handler classes automatically?

You can generate Symfony Messenger message and handler classes by using an automated code generator that creates immutable Message DTOs with readonly properties and final Handler classes featuring the #[AsMessageHandler] attribute and an __invoke method.

What is the best way to scaffold a Symfony Messenger handler for async processing?

The best way to scaffold a Symfony Messenger handler for async processing is to generate a final class with the #[AsMessageHandler] attribute and an __invoke method, ensuring your background jobs adhere to Symfony Messenger component best practices automatically.

Can I define custom properties and transport types when creating Symfony Messenger messages?

Yes, you can define custom properties and transport types when creating Symfony Messenger messages. The generation process supports defining message properties, transport configurations, and advanced options like stamps and middleware for your handlers.

Does Symfony Messenger code generation support advanced options like middleware and stamps?

Symfony Messenger code generation does support advanced options like middleware and stamps. It can generate a basic middleware structure for advanced message handling alongside the standard Message and MessageHandler PHP files.

When do I need to generate Symfony Messenger messages and handlers?

You need to generate Symfony Messenger messages and handlers when implementing asynchronous or synchronous message processing for background jobs, such as processing uploaded images or sending welcome emails, to ensure adherence to Symfony best practices.