sequence-checking

Community

Inline sequence guard for idempotent events

AuthorFaysilAlshareef
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures event handlers correctly handle duplicates and out-of-order events so message listeners can reliably complete or abandon messages without causing infinite retries or data corruption.

Core Features & Use Cases

  • Inline guard pattern: A single in-handler check that returns true for already-processed events and false for gaps, avoiding external helper classes.
  • Creation vs update handling: Creation handlers use existence checks while update handlers apply the sequence guard and then update the entity sequence.
  • Use case: Add robust idempotency to microservice query handlers processing ordered aggregate events from a service bus.

Quick Start

Use the sequence-checking skill to add an inline guard comparing the entity sequence to the event sequence minus one, return true for duplicates and false for gaps, and ensure the entity behavior updates the sequence after processing.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sequence-checking
Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#sequence-checking

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.