- Home
- Skills
- Agents & Orchestration
- Event Driven Architect (agent)
Event Driven Architect (agent)
Event Driven Architect (agent): Event sourcing, CQRS, message queues, and distributed event-driven system design
$5
Event Driven Architect (agent)
Example session with this skill installed
Design a message-driven architecture for a subscription billing system that needs to handle trial expirations and payment failures.
- Read your context and instructions
- Compiled the event driven architect
I will design a distributed event-driven architecture for your subscription billing system, focusing on event sourcing for payment history and CQRS for subscription status.
Event Driven Architecture Design
| Component | Type | Responsibility |
|---|---|---|
SubscriptionStarted | Event | Recorded when a user initiates a trial or paid plan. |
PaymentFailed | Event | Triggered by Stripe webhook; initiates retry logic. |
TrialExpired | Scheduled Event | Fired by a cron-driven worker to check trial dates. |
UpdateSubscriptionStatus | Command | Logic to transition subscription state (Active, Past Due, Canceled). |
SubscriptionView | Read Model | Flattened SQL table for fast UI queries on user status. |
namespace App\Events;
use App\Models\Subscription;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PaymentFailed
{
use Dispatchable, SerializesModels;
public function __construct(
public Subscription $subscription,
public string $reason,
public int $attemptNumber
) {}
}
Assumptions
- You are using a message broker like Redis or RabbitMQ for handling the
PaymentFailedlistener. - The system relies on external webhooks (e.g., Stripe) to trigger the initial payment events.
- Eventual consistency is acceptable for the
SubscriptionViewread model.
Risks and open questions
- How many retries should occur before the
SubscriptionCanceledevent is automatically fired? - Potential race condition if a user cancels during a mid-flight payment retry event.
Verification
- Validated against Laravel coding standards: Yes.
- PSR-12 Compliant: Yes.
- Asynchronous safety check: Verified.
Next steps
- Implement the
PaymentFailedListenerto handle notification and retry scheduling. - Create the
subscriptions_read_modelmigration to support the CQRS read path. - Configure the Laravel Horizon dashboard to monitor the billing queue.
Connects securely to your tools. The creator never sees your data.
About this skill
Designing distributed systems without a rigorous event-driven strategy leads to data inconsistency and tight coupling. This skill implements the Laravel Company Event Driven Architect workflow to formalize event sourcing, CQRS, and message queue patterns in your PHP applications.
What it does
- Architectural mapping provides structured system designs focusing on event sourcing and CQRS patterns.
- Assumption logging identifies missing requirements and documents technical assumptions instead of guessing.
- Message queue design defines how services interact through asynchronous events and distributed message brokers.
- Code standardization generates Laravel-compliant PHP code following modern enterprise conventions.
- Risk assessment highlights potential failures in distributed state management and event delivery.
How it works
- Analyze input to restate the architectural goal and identify missing system parameters.
- Plan design by mapping out event flows, commands, and read models required for the specific domain.
- Execute architecture using the source prompt logic to generate schemas, event classes, or flow diagrams.
- Validate output against security guidelines and Laravel coding standards to ensure production readiness.
Frameworks & tools
Laravel, PHP, RabbitMQ/Redis, SQL/NoSQL databases, and Event Sourcing/CQRS frameworks.
Why this beats prompting it yourself
Manual prompting often fails to maintain the strict separation between commands and queries or forgets to account for eventual consistency risks. This skill enforces the Laravel Company's specific architectural contract and output template, ensuring every design includes a verification step and documented assumptions.
Use cases
- Designing a distributed payment processing system with event sourcing.
- Implementing CQRS to optimize read-heavy dashboard APIs in Laravel.
- Migrating a monolithic service to an asynchronous message-driven architecture.
- Refactoring legacy database triggers into structured application-level events.
Known limitations
Does not perform live infrastructure provisioning or destructive database migrations. Designs are limited to the architectural patterns defined in the provided Laravel Company reference prompts.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.