Event Driven Architect (agent)

    by Laravel Company

    1

    Event Driven Architect (agent): Event sourcing, CQRS, message queues, and distributed event-driven system design

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    ComponentTypeResponsibility
    SubscriptionStartedEventRecorded when a user initiates a trial or paid plan.
    PaymentFailedEventTriggered by Stripe webhook; initiates retry logic.
    TrialExpiredScheduled EventFired by a cron-driven worker to check trial dates.
    UpdateSubscriptionStatusCommandLogic to transition subscription state (Active, Past Due, Canceled).
    SubscriptionViewRead ModelFlattened 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 PaymentFailed listener.
    • The system relies on external webhooks (e.g., Stripe) to trigger the initial payment events.
    • Eventual consistency is acceptable for the SubscriptionView read model.

    Risks and open questions

    • How many retries should occur before the SubscriptionCanceled event 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

    1. Implement the PaymentFailedListener to handle notification and retry scheduling.
    2. Create the subscriptions_read_model migration to support the CQRS read path.
    3. 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

    1. Analyze input to restate the architectural goal and identify missing system parameters.
    2. Plan design by mapping out event flows, commands, and read models required for the specific domain.
    3. Execute architecture using the source prompt logic to generate schemas, event classes, or flow diagrams.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Read Files
    Write Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill eliminates tight coupling and data inconsistency in PHP applications by enforcing strict CQRS (Command Query Responsibility Segregation) and Event Sourcing patterns according to Laravel Company standards.

    The skill is compatible with most major LLMs, though it is optimized for models with strong reasoning capabilities to handle the complex architectural mapping and assumption logging steps.

    You will receive the proprietary architectural workflow, structured output templates, and the full logic set required to guide an AI agent through the design of message-driven Laravel systems.

    Yes, the agent is designed to work with standard Laravel ecosystems, including support for popular message brokers like RabbitMQ or Redis and common Event Sourcing packages.

    While it provides comprehensive schemas, event classes, and flow diagrams, it does not perform live infrastructure provisioning or execute destructive database migrations in your environment.

    Updates are released periodically to align with new Laravel versions and emerging enterprise design patterns; buyers will have access to these revised workflow instructions through the marketplace.

    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.