coreex-subscriber-e2e

Creates a complete CoreEx event or command subscriber end-to-end including contract, handler, orchestration, and tests.

28|8|Updated Feb 21, 2022
One-click install
npx skills add https://github.com/Avanade/CoreEx --skill coreex-subscriber-e2e-avanade
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: coreex-subscriber-e2e
Source: https://github.com/Avanade/CoreEx/tree/main/.github/skills/coreex-subscriber-e2e
Command: npx skills add https://github.com/Avanade/CoreEx --skill coreex-subscriber-e2e-avanade

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Adding a new event or command subscriber to a CoreEx solution normally requires coordinating many separate pieces — DTO contracts, database migrations, repositories, application services, the subscriber handler itself, and integration tests — while remembering which pieces apply to which messaging scenario. This Skill orchestrates that entire vertical slice in one guided workflow so nothing is missed and no question is asked twice. ## Core Features & Use Cases - Scenario-aware orchestration: Detects whether the subscriber is a command handler, an event-data-sync replication, or a business-process choreography, and runs only the applicable L1 skills (contract, migration, repository, app-service, subscriber, tests). - Upfront context gathering: Reads the solution's AGENTS.md Feature Configuration (messaging-provider, outbox-enabled, data-provider, rop-enabled) and batches all remaining questions into a single interview turn. - Validation and guardrails: Verifies the build, confirms subscriber discovery via AddSubscribersUsing<T>(), and enforces rules such as skipping repositories for event-data-sync scenarios. - Use Case: You need a new subscriber for the products.product.modified event that replicates data into a local store. The Skill gathers the subject and scenario, invokes the contract, subscriber, and test skills in order, and finishes with a validated build. ## Quick Start Ask the assistant to add a new subscriber for a given event or command subject to your CoreEx Subscribe host and specify whether it is a command, event-data-sync, or business-process scenario.

Frequently Asked Questions about coreex-subscriber-e2e

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

FAQPage Schema
How do I add a new event subscriber to a CoreEx solution?▼

Invoke this workflow with the event subject and scenario type. It gathers all context upfront, then runs the applicable L1 skills in order — contract, optional migration and repository, app-service, subscriber handler, and integration tests — finishing with a build validation.

What subscriber scenarios does CoreEx support?▼

CoreEx supports three subscriber scenarios: command handlers that trigger app-service actions, event-data-sync subscribers that replicate data via an IXxxSyncAdapter, and business-process choreography subscribers that orchestrate multi-step processes with local persistence.

When should I use coreex-subscriber instead of the end-to-end workflow?▼

Use coreex-subscriber directly when modifying an existing subscriber handler. Use the end-to-end workflow only when adding a brand-new subscriber that needs the full vertical slice of contract, orchestration, and tests.

Does the subscriber need manual registration in Program.cs?▼

No. CoreEx discovers all classes decorated with the [Subscribe] attribute automatically through AddSubscribersUsing<T>(), so no manual registration in the Subscribe host Program.cs is required.

Why is the app-service step skipped for event-data-sync subscribers?▼

Event-data-sync subscribers call the IXxxSyncAdapter directly, which owns local persistence. Adding an intermediate app-service or a parallel repository would split responsibility incorrectly and add no value.