distributed-events-advanced

distributed-events-advanced is a skill for Claude Code from thapaliyabikendra/ai-artifacts. It costs 72 tokens per session (4,026 once invoked), scanned A, original, Apache-2.0.

A guide to sending and handling events between ABP microservices. These events let one service notify another about something that happened, such as a new patient being created.

In plain words
What is it for?
Use it to design event handlers, cross-service synchronization, event-driven workflows, and saga patterns, where a longer operation is coordinated across services.
Why use it?
It helps services handle duplicate messages, coordinate work across tenants, trace related operations, and recover from event-delivery problems.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to design event handlers, cross-service synchronization, event-driven workflows, and saga patterns, where a longer operation is coordinated across services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thapaliyabikendra/ai-artifacts --skill distributed-events-advanced
Clone the repo
git clone --depth 1 https://github.com/thapaliyabikendra/ai-artifacts

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for distributed-events-advanced

README.md
[![agentmods](https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced/github.svg)](https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced)
Your own site
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for distributed-events-advanced

Your own site · 80×15
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/distributed-events-advanced.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.04026
Opus 5 $0.00036 $0.02013
Sonnet 5 $0.00014 $0.00805
Haiku 4.5 $0.00007 $0.00403

Measured 6d ago against content hash 1cb8cc58fa88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

distributed-events-advanced scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/distributed-events-advanced/SKILL.md · 668 lines

How it starts

The opening of the file, as written. The whole thing — 668 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Distributed Events Advanced Patterns

Master advanced distributed event patterns for building resilient, scalable ABP microservices architectures.

When to Use This Skill

  • Implementing event handlers that process events from other microservices
  • Building idempotent event processing to handle duplicates
  • Cross-tenant event synchronization
  • Designing event-driven communication patterns
  • Implementing saga/choreography patterns
  • Troubleshooting event delivery issues

Core Concepts

Event Transfer Objects (ETOs)

ETOs are the payload of distributed events. Define them in a shared library accessible by both publisher and subscriber.

// Shared/Etos/PatientCreatedEto.cs
[EventName("patient.created")]  // Optional: explicit event name
public class PatientCreatedEto
{
    public Guid Id { get; set; }
    public Guid? TenantId { get; set; }
    public string Name { get; set; }
    public string Email { get; set; }
    public DateTime CreatedAt { get; set; }

    // Include correlation ID for tracing
    public string CorrelationId { get; set; }
}

ETO Best Practices:

  • Include TenantId for multi-tenant scenarios
  • Include CorrelationId for distributed tracing
  • Use primitive types only (no navigation properties)
  • Version ETOs carefully (add properties, don't remove)

Event Handler Patterns

1. Basic Event Handler

public class PatientCreatedEventHandler :
    IDistributedEventHandler<PatientCreatedEto>,
    ITransientDependency
{
    private readonly ILogger<PatientCreatedEventHandler> _logger;

    public PatientCreatedEventHandler(
        ILogger<PatientCreatedEventHandler> logger)
    {
        _logger = logger;
    }

    public async Task HandleEventAsync(PatientCreatedEto eventData)
    {
        _logger.LogInformation(
            "Processing PatientCreated event: {PatientId}",
            eventData.Id);

        // Handle the event
        await ProcessPatientAsync(eventData);
    }
}

2. Idempotent Event Handler

Read the full file on GitHub · 668 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 668 lines · 72 tokens per session scan A 1cb8cc58fa88

Subscribe to this mod's changes

distributed-events-advanced is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 72 tokens to every session and 4,026 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

backend-transactional-outbox

Use this skill when the user says 'outbox', 'transactional outbox', 'outbox pattern', 'reliable event publishing', 'dual write', 'CDC outbox', 'message relay', 'publish events reliably', 'exactly-once publish', 'debezium outbox'. This skill enforces: event publication in the same DB transaction as business data…

j4flmao/agent-skills · 136 tokens

event-driven-architecture

Event-driven architecture patterns with event sourcing, CQRS, and message-driven communication. Use when designing distributed systems, microservices communication, or systems requiring eventual consistency and scalability.

NickCrew/Claude-Cortex · 39 tokens

Event Sourcing Testing

Testing event sourcing patterns including event store validation, projection testing, saga orchestration, and event versioning compatibility.

PramodDutta/qaskills · 27 tokens

troubleshoot-rabbitmq

Use when diagnosing issues with RabbitMQ: availability, resource alarms, throttling & backpressure, or throughput degradation. Queries Netdata via MCP for node availability status, network partition status, memory alarm status, disk free alarm status, connection flow control state, applies the diagnostic tree from the…

netdata/skills · 74 tokens

event-driven-architecture

Event-Driven Architecture Review: Reviews and designs event-driven systems — Event Sourcing, CQRS, Saga patterns, Domain Events, message brokers, and eventual consistency. Use when the user mentions events, event sourcing, CQRS, saga, choreography vs orchestration, Kafka architecture, event store, projections, read…

camilooscargbaptista/cto-toolkit · 85 tokens

microservice-granularity-optimizer

Right-size microservice boundaries using granularity disintegrators (forces to split: service scope, code volatility, scalability, fault tolerance, security, extensibility) and integrators (forces to combine: database transactions, workflow/choreography coupling, shared code, data relationships). Includes choreography…

bookforge-ai/bookforge-skills · 170 tokens