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.5 $0.00029 $0.01610
Sonnet 5.5 $0.00014 $0.00805
Haiku 4.5 $0.00007 $0.00403

Measured 3mo ago against content hash 1cb8cc58fa88, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (25 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 72 tokens to every session and 4,026 once invoked, about $0.0003 per session on Opus 5.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

distributed-events-advanced compared with skills from other repositories

distributed-events-advanced next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
distributed-events-advancedthapaliyabikendra/ai-artifactsSkill258mo agoApache-2.0A72Claude Code
pentesting-rabbitmqxalgorix/xalgorixSkill1.6kyesterdayApache-2.0B88Claude Code, Codex
huawei-cloud-smn-dms-messagehuaweicloud/huaweicloud-devkitSkill71todayApache-2.0A317Claude Code
backend-transactional-outboxj4flmao/agent-skillsSkill4716d agoMITA71Claude Code, Codex
architecture-microservices-patternsj4flmao/agent-skillsSkill4716d agoMITA150Claude Code, Codex
backend-event-driven-architecturej4flmao/agent-skillsSkill4716d agoMITA161Claude Code, Codex
cloud-native-serverless-orchestrationj4flmao/agent-skillsSkill4716d agoMITA92Claude Code, Codex